v0.4.4 LIVE · GLM-5.3-Flash (320B) on 1× NVIDIA DGX Spark · Apache-2.0

320B frontier models.
One desktop box.

Lex4 is a sub-4-bit Trellis-L14 format (.lex4), zero-doorbell O_DIRECT NVMe pager, and Blackwell SM121a inference engine. Run 2-Spark MoE models on a single 128 GB workstation at 99.4% of GB10 DRAM speed-of-light—with 262K context, 20.1 s boot load, and zero swap.

zero-dep host CLI
$curl -fsSL https://raw.githubusercontent.com/lex4-dev/lex4/main/install.sh | bash && lex4 up --preset balanced
Built, quantized (12,096 experts), and benchmarked 100% locally on desktop NVIDIA DGX Sparks · Apple Silicon Metal planned
Lex4 L4 Titanium Emblem
lex4 v0.4.4 · SM121a
GB10 DRAM Bandwidth Roofline 232.6 / 234.1 GB/s (99.4%)
9/10
Coding (83 GB)
262K
Context · 8 GiB KV
20.1s
O_DIRECT Boot
347,255 FP8 KV tokens 246 RTAQ pins · +0 MiB swap
Verified 1× DGX Spark Measurements

Half the hardware. None of the 2-bit brain damage.

One .lex4 Checkpoint · Zero Restarts

Pick your RAM preset, then dial speed vs. exact quality per prompt.

Every request can shift between resident-only fast (0 GB NVMe), warm adaptive balanced, and 100% full-checkpoint exact waves—automatically via the Lex4 Smart Proxy or manually with /fast, /balanced, and /exact.

1. Startup RAM Preset (1× 128 GB DGX Spark)
2. Per-Request Live Mode Dial
balanced (83 GB / 262K) · Balanced Mode
Warm adaptive NVMe paging + full CUDA graphs + 246 RTAQ pins
X-Lex4-Mode: balanced
133.2 GB .lex4 (3.50 bpw) Placement 83.5 GB RAM (62.7%) · 49.7 GB NVMe (37.3%)
Measured Decode
28.3 tok/s
Avg TTFT / Free RAM
0.76s · 9.9 GiB
Measured Accuracy
32/40 (80.0%)
Prompt prefix: /balanced write a thread-safe LRU cache 438 GB / 40 tasks
Engine Architecture

Built from PTX up—not a wrapper.

01 · CODEC 3.50 bpw · 133.2 GB · 4096B aligned

5-Tier Trellis-L14 Format (.lex4)

Universal 2-stage Hessian convex-RD encoder compresses 328 GB of MoE experts (42 layers × 288 experts = 12,096 experts) to 133.2 GB with <1% perplexity drift unpaged (+0.27% code, +0.91% prose). Every expert payload is 4096-byte aligned for zero-copy O_DIRECT NVMe DMA.

02 · PAGER 13.12 GB/s O_DIRECT · 0 Swap

Zero-Doorbell O_DIRECT QD=4 NVMe Pager

Shannon entropy water-filling locks unpredictable early layers in RAM and pages spiky deep layers via zero-copy O_DIRECT libc.pread (QD=4 + 12 rolling wave slots, 10.5× faster than buffered I/O). Keeps full CUDA graphs on fast & balanced and drops 83.5 GB boot load to 20.1 seconds.

03 · SILICON

SM121a Speed-of-Light Kernels

Zero-spill (STACK:0) fused decode GEMV + direct PTX mma.m16n8k32 + cooperative BF16 GEMV hitting 98.0%–99.4% of GB10's 234.1 GB/s DRAM roof.

04 · SPECULATION

2-Gear Adaptive DFlash2

Hysteresis depth controller shifts live between d=2 (chat) and d=7 (coding, math, tools) with zero CUDA graph breaks, hitting up to 36–45 tok/s.

05 · THINKING

246 RTAQ Termination Pins

Pins the 246 MoE experts responsible for clean </think> closure into fixed RAM slots at 0.00 GB extra memory, lifting 83 GB coding to 9/10 with 0 exact math truncations.

Roadmap

  • LIVEBlackwell SM121a (DGX Spark): 99.4% DRAM roofline, O_DIRECT QD=4 pager, live mode dial, zero-dep CLI, pre-compiled container & PyPI package.
  • NEXTMore .lex4 Frontier MoE Checkpoints: DeepSeek, Qwen-MoE, Kimi, and Llama-4 quantized with our open Apache-2.0 encoder.
  • NEXTCommercial-Clean Speculative Decoding: Native MTP / Apache-2.0 drafter support for full enterprise speed.
  • NEXTApple Silicon (Metal / MLX): Bringing .lex4 sub-4-bit MoE + NVMe paging to unified-memory Mac Studio & MacBook Pro.

Crystal-Clear Open Core & Licensing

  • APACHE-2.0Lex4 Engine, Kernels, .lex4 Format, Encoder, CLI & Proxy: 100% open source on github.com/lex4-dev/lex4. Commercial use permitted.
  • COMMERCIAL OKGLM-5.3-Flash-LEX4-3.5bpw: Quantized from NVIDIA GLM-5.3-Flash-FP4-Local (zai-org/GLM-5.3-Flash, MIT) under the NVIDIA Open Model Agreement.
  • OPTIONALDFlash2 Drafter: Fetched directly from Hugging Face (incoai/GLM-5.3-Flash-DFlash2, CC-BY-NC-ND-4.0, personal/research only). Pass --no-drafter for a 100% commercial-clean stack.