Repository navigation
Releases
Releases · lex4-dev/lex4
Lex4 v0.4.4 — 320B Frontier MoE on 1× DGX Spark
Lex4 v0.4.4 (Initial Public Release)
The sub-4-bit inference engine & .lex4 format for desktop frontier AI.
Run the 320B-parameter GLM-5.3-Flash MoE on a single 128 GB NVIDIA DGX Spark (Blackwell GB10 / SM121a) at 20–45 tok/s with 262K context, zero swap, and a live per-request fast / balanced / exact NVMe dial.
Highlights
.lex4Trellis-L14 Format & Apache-2.0 Encoder: Compresses 328 GB of MoE experts to 133.2 GB (3.50 bpw, 4096BO_DIRECTaligned) with< 1%perplexity delta at full residency.- Blackwell SM121a PTX/MMA Kernels: Zero-spill unified decode GEMV + direct PTX
mma.m16n8k32hitting 98.0%–99.4% of GB10's 234.1 GB/s physical DRAM roofline. - Zero-Doorbell
O_DIRECTQD=4NVMe Pager: Shannon entropy water-filling + 246 RTAQ termination-expert pins (0.00 GBextra RAM) + 20.1s boot load + 12-slot rolling exact-mode wave staging. - Live Per-Request Mode Dial: Switch between
fast(0 GBNVMe,~0.4–0.5sTTFT),balanced(28–39 tok/s), andexact(100%full-checkpoint parity,12/14cold hard math) via/fast,/balanced,/exactchat prefixes,lex4_modeAPI param, or automatic smart routing. - Zero-Dependency CLI & Pre-Compiled Container:
pip install lex4(orinstall.sh) + pre-compiledghcr.io/lex4-dev/lex4:sparkimage with seeded SM121ab12xcache and optional--with-webuiOpen WebUI launcher.
Quick Start (1× DGX Spark)
pipx install lex4 # or: curl -fsSL https://raw.githubusercontent.com/lex4-dev/lex4/main/install.sh | bash
lex4 up --preset balancedArtifacts
- Weights (Hugging Face): Lex4-dev/GLM-5.3-Flash-LEX4-3.5bpw (NVIDIA Open Model Agreement)
- Container (GHCR):
ghcr.io/lex4-dev/lex4:spark&ghcr.io/lex4-dev/lex4:0.4.4-spark