Godzilla is a high-performance, specialized fork of beellama.cpp / llama.cpp engineered for extreme long-context inference (
Godzilla introduces the "Six Flags over Texas" orthogonal context stack, combining 6 independent optimization technologies to run 512K context windows inside 64 GB System RAM:
| Flag | Technology | Mechanism | Target Impact |
|---|---|---|---|
| Flag 1 | SnapKV / PyramidKV | Positional KV token pruning & attention sink windowing | 512K |
| Flag 2 | DFlash / DSpark | Speculative draft sidecar verification |
25.5 |
| Flag 3 | TurboQuant / MXFP4 | Sub-4bit micro-exponent KV cache quantization (turbo4) |
268 GB |
| Flag 4 | Chunked Prefill | Ring-Attention prompt ingestion in 4K chunks (-ub 512) |
< 8.5 GB peak VRAM prompt ingestion |
| Flag 5 | YaRN RoPE Scaling | Runtime rotary position frequency scaling | Positional precision retention at 512K tokens |
| Flag 6 | CUDA UVM / RAM-KV | Unified virtual memory PCIe 4.0 paging (--kv-ram) |
< 36 GB System RAM physical footprint |
Forces the KV cache onto GPU VRAM even when model weights are offloaded to System RAM (-ngl 0 / -ngl 1), enabling ultra-fast token decoding on VRAM-constrained systems.
- Full support for native MTP draft headers (
--spec-type draft-mtp). - Built-in
convert_hf_to_gguf.pytensor remapping patch automatically maps Qwen 3.6mtp_layer/mtp_layerstensor prefixes out-of-the-box.
./llama-server \
-m /path/to/model.gguf \
--port 8080 \
-ngl 99 -fa on \
-c 524288 \
--kv-ram \
-ctk q4_0 -ctv q4_0 \
--triattention-stats /path/to/model.triattention \
--triattention-budget 2048 --triattention-window 128 \
-ub 512 \
--rope-scaling yarn --rope-freq-scale 0.25./llama-server \
-m /path/to/model.gguf \
-ngl 1 \
--kv-vram-only \
-fa on \
-c 65536./llama-server \
-m /path/to/target.gguf \
--spec-type dflash \
--spec-draft-model /path/to/draft.gguf \
--spec-draft-n-max 8 \
--spec-dflash-cross-ctx 512cmake -S . -B build -G Ninja `
-DGGML_CUDA=ON `
-DGGML_NATIVE=ON `
-DGGML_CUDA_FA=ON `
-DGGML_CUDA_FA_ALL_QUANTS=ON `
-DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --parallel --target llama-server llama-clicmake -B build \
-DGGML_CUDA=ON \
-DGGML_NATIVE=ON \
-DGGML_CUDA_FA=ON \
-DGGML_CUDA_FA_ALL_QUANTS=ON \
-DCMAKE_BUILD_TYPE=Release
cmake --build build -jcmake -B build -DGGML_METAL=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build -j| Milestone | Status |
|---|---|
Single-branch Godzilla integration line (godzilla) |
β Executed |
| TriAttention integration (CLI, runtime, CUDA scoring) | β Executed |
| KV stack integration (TurboQuant/TCQ + KVarN surfaces) | β Executed |
| DFlash + adaptive controllers + loop guard | β Executed |
--kv-vram-only GPU memory allocator |
β Executed |
| "Six Flags over Texas" 512K context optimization stack | β Executed |
- docs/SIX_FLAGS_OVER_TEXAS.md β 6-Layer Orthogonal Context Stack Architecture
- docs/TRIATTENTION.md β TriAttention Covariance Eviction Guide
- docs/TRIATTENTION-API.md β C++ Engine API Reference
- docs/PROFILES.md β Candidate Profile Benchmarks
- docs/QUANT-GOD.md β Weight & KV Quantization Extensions
- docs/beellama-features.md β Inherited DFlash & BeeLlama Features
| Area | Lineage & Upstream Credit |
|---|---|
| Base Engine & DFlash | Anbeeld/beellama.cpp |
| TurboQuant & TCQ | TheTom/llama-cpp-turboquant, spiritbuun/buun-llama-cpp |
| TriAttention | domvox / atomicmilkshake integration via buun lineage |
| Quantization Extensions | ik_llama.cpp |