Skip to content

Lex4 v0.4.4 — 320B Frontier MoE on 1× DGX Spark

Latest

Choose a tag to compare

@lex4-dev lex4-dev released this 05 Dec 00:31

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

  • .lex4 Trellis-L14 Format & Apache-2.0 Encoder: Compresses 328 GB of MoE experts to 133.2 GB (3.50 bpw, 4096B O_DIRECT aligned) with < 1% perplexity delta at full residency.
  • Blackwell SM121a PTX/MMA Kernels: Zero-spill unified decode GEMV + direct PTX mma.m16n8k32 hitting 98.0%–99.4% of GB10's 234.1 GB/s physical DRAM roofline.
  • Zero-Doorbell O_DIRECT QD=4 NVMe Pager: Shannon entropy water-filling + 246 RTAQ termination-expert pins (0.00 GB extra RAM) + 20.1s boot load + 12-slot rolling exact-mode wave staging.
  • Live Per-Request Mode Dial: Switch between fast (0 GB NVMe, ~0.4–0.5s TTFT), balanced (28–39 tok/s), and exact (100% full-checkpoint parity, 12/14 cold hard math) via /fast, /balanced, /exact chat prefixes, lex4_mode API param, or automatic smart routing.
  • Zero-Dependency CLI & Pre-Compiled Container: pip install lex4 (or install.sh) + pre-compiled ghcr.io/lex4-dev/lex4:spark image with seeded SM121a b12x cache and optional --with-webui Open 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 balanced

Artifacts

  • 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