Project Maya Runs 321B GLM-5.3-Flash on a Single Workstation GPU
Project Maya runs the 321B-parameter GLM-5.3-Flash on a single or dual NVIDIA GPU rig by streaming experts from VRAM, RAM, and NVMe.
Takeaways
- Project Maya runs the 321B-parameter GLM-5.3-Flash MoE on consumer NVIDIA rigs by tiering experts across VRAM, RAM, and NVMe SSD.
- Ships Maya-S, a 96.5 GB GGUF quant retaining 97.9% of FP8 zero-shot accuracy on ARC, HellaSwag, WinoGrande, PIQA.
- Hits up to 40 tokens/s decode and 440 tokens/s prompt on two Tesla V100 32 GB cards with 30 GB RAM.
- Minimum spec: NVIDIA compute 7.0+, 32 GB RAM, ~100 GB free on fast NVMe, Linux x86-64 with CUDA 12.x.
- Serves OpenAI and Anthropic-compatible APIs locally, works with Claude Code via
ANTHROPIC_BASE_URL. - Built on Strata and llama.cpp, MIT licensed; no Windows or WSL2 support yet.
Project Maya is an MIT-licensed inference stack that runs the 321-billion-parameter GLM-5.3-Flash mixture-of-experts model on Linux workstations. Its minimum target is one compatible NVIDIA GPU, 32 GB of system RAM, and a fast NVMe SSD, bringing a model that typically requires hundreds of gigabytes of accelerator memory within reach of local development hardware.
The project combines a custom inference engine, an OpenAI-compatible API, an Anthropic-compatible API, a browser dashboard, and quantization tools behind one setup script. Maya builds on Strata, rewriting its inference engine for GLM-5.3-Flash while retaining Strata’s server and dashboard.
| Component | Project detail |
|---|---|
| Model | GLM-5.3-Flash, 321B total parameters and about 18B active per token |
| Maximum context | Up to 1 million tokens, subject to configured memory limits |
| Quantized model | 96.5 GB Maya-S GGUF |
| Minimum GPU | NVIDIA compute capability 7.0 or newer |
| Host platform | Linux with at least 32 GB RAM and fast NVMe storage |
| Concurrency | One active request |
The model spills across three storage tiers
GLM-5.3-Flash uses a mixture-of-experts architecture, which divides parts of the network into specialized parameter groups called experts. A router selects a subset for each token, so the model activates about 18B of its 321B parameters at a time. The complete set of weights still needs storage, and Maya distributes those weights across GPU memory, system RAM, and SSD.
- GPU tier: Holds the most frequently selected experts, filling the available VRAM.
- RAM tier: Stores the next most active experts and allows CPU threads to compute some expert operations in place.
- SSD tier: Keeps the remaining experts on NVMe and loads them through memory-mapped and direct-I/O paths when requested.
Maya records which experts a workload selects and uses that history to warm the GPU cache. Repeated workloads can therefore keep their commonly used experts in faster memory while less active weights remain on the SSD.
Maya-S cuts the weights to 96.5 GB
The project distributes Maya-S, a 96.5 GB GGUF quantization of GLM-5.3-Flash. Quantization stores weights at lower precision to reduce capacity and bandwidth requirements, with some loss of numerical accuracy.
Maya-S was calibrated on 128 sequences of 2,048 tokens using GLM’s chat template. The calibration material included reasoning traces, web code, and tool calls. The tooling collected statistics layer by layer from the FP8 model and generated a separate importance matrix for each expert.
The routed experts’ gate and up projections use GPTQ-style error-feedback rounding. According to the project’s evaluation, this reduces expert output error by about 25% compared with plain importance-weighted rounding at the same size.
| Model component | Quantization |
|---|---|
| Routed expert gate and up projections | IQ2_XXS with error-feedback rounding |
| Down projections in the first and last four MoE layers | IQ3_XXS |
| Other expert down projections | IQ2_S |
| Attention and shared experts | Q6_K |
| Small KDA projections and DSA indexer | Q8_0 |
| Routers and normalization weights | F32 |
| NextN draft layer | Q2_K and Q3_K |
These names identify GGUF quantization formats with different precision and compression characteristics. The NextN draft layer supports speculative decoding on a second GPU, where a smaller draft stage proposes tokens for the main model to verify.
Quality remains close, with measurable gaps
The project reports that Maya-S retains 97.9% of the FP8 model’s aggregate zero-shot accuracy across ARC, HellaSwag, WinoGrande, and PIQA. Its token-level evaluation shows larger differences, especially in exact tool-call syntax and passages that the FP8 model appears to have memorized.
| Measure | Result | Interpretation |
|---|---|---|
| Zero-shot score retention | 97.9% of FP8 | Aggregate result across four benchmarks |
| Top-token agreement with FP8 | 83.3% | Both models selected the same highest-probability token |
| KL divergence from FP8 | 0.428 | Lower values indicate closer probability distributions |
| Next-token accuracy | 68.8% | FP8 scored 71.5% on the same evaluation |
Agreement was highest on chat and reasoning text and lowest on tool-call formats and memorized text. A separate long-generation check produced 14 responses ranging from 6,000 to 14,000 tokens, including three.js scenes, canvas animations, a Portuguese plan, and a proof. The project observed no repeated passages in that sample when using temperature 1.0 or greedy decoding.
Published speeds reach 40 tokens per second
The project’s reference benchmark used two 32 GB Tesla V100 GPUs connected over PCIe 3.0, a Xeon E5-2690 v4 processor, 30 GB of RAM, and one NVMe SSD. Reported peak throughput reached 40 tokens per second during generation and 440 tokens per second while processing prompts.
| Phase | Reported peak |
|---|---|
| Prompt processing | 440 tokens per second |
| Token generation | 40 tokens per second |
Maya attributes its context-length behavior to an attention selection step that scales linearly with the number of input tokens. In the project’s tests, a conversation containing 60,000 tokens maintained its generation speed. The architecture supports contexts up to 1 million tokens, although practical limits depend on the selected context setting and available memory.
Installation compiles for the local GPU
Installation begins with cloning the repository and running its setup script:
git clone https://github.com/mw00/project-maya.git && cd project-maya
./setup.sh
During the first run, the script inspects the machine, asks which GPUs and context size to use, creates a .venv, installs Python dependencies, pins a specific llama.cpp commit, and compiles the engine for the selected GPU. Compilation takes about 10 to 30 minutes, while the full setup takes an estimated 20 to 40 minutes plus model download time.
The installer also downloads the 96.5 GB model, verifies it with SHA-256 checks, and builds an approximately 1 GB pack index. Those two artifacts require about 97.5 GB of storage, excluding source code, build files, optional components, and working headroom. The script can also compile the vision encoder.
After launch, the browser dashboard listens on http://127.0.0.1:8080. OpenAI-compatible clients use the /v1 base path, while Anthropic-compatible clients send requests to /v1/messages. Claude Code can connect by setting ANTHROPIC_BASE_URL to the local server.
Reasoning effort can be set to off, low, medium, or high. Maya caps each reasoning block at 32,000 tokens.
Hardware and concurrency set clear limits
- NVIDIA GPU required: The engine needs compute capability 7.0 or newer, beginning with the Tesla V100 generation.
- Linux required: The loader depends on Linux memory mapping and
O_DIRECT. - Windows and WSL2 unsupported: The project reports that WSL2’s GPU driver pins only about 1 GB of host memory, while Maya needs to pin tens of gigabytes.
- Serial request handling: The server processes one request at a time and queues additional requests.
- Heavy RAM use: Maya pins most available system memory for its expert cache, reducing the memory available to other applications while the engine runs.
- Fast local storage required: Cold experts stream from disk, making NVMe latency and throughput part of inference performance.
Project Maya makes 300B-scale local inference practical for private, low-concurrency workloads by combining aggressive quantization with GPU, RAM, and SSD caching. Its constraints include Linux-only operation, substantial memory and storage use, serial request processing, and weaker fidelity around exact tool-call formatting. Those boundaries make it most suitable for local experimentation, long-form generation, coding assistance, and research workloads that can tolerate quantization drift.