Repository navigation
prism-b12220-41c86f7
Faster defaults
- NVIDIA Hopper (H100, H200): PTQ1_0 and PQ2_0 prompt processing runs on faster kernels by default, with identical output (+28% PTQ1_0 and +19% PQ2_0 measured on H200). Set
GGML_CUDA_PREFILL_OPT=0to go back to the previous kernels, orGGML_CUDA_PREFILL_OPT=1to try them on other NVIDIA GPUs. - Apple GPUs: the 2 to 8 token batches used by speculative decoding run on a new exact PTQ1_0 kernel by default. Set
GGML_METAL_VERIFY_OPT=0to turn it off. - Arm CPUs: PQ2_0 weights are repacked for NEON at load, for faster CPU prompt processing and generation.
- NVIDIA: PTQ1_0 prompt processing on the general MMQ path applies each block scale once per 128 weights, a few percent faster. Results can differ from before in the last bits of rounding (#411).
- NVIDIA: flash attention for prompt batches of 64 or more tokens is faster for models with 6 query heads per KV head, most of all at long context. Results can differ from before in the last bits of rounding (#410).
- x86 CPUs with AVX-512 VBMI (Ice Lake and later, Zen 4 and later): faster PQ2_0 CPU matrix multiplication (#437).
- Apple GPUs without the Metal tensor path (M1 to M4): 2 and 3 token PQ2_0 batches used by speculative decoding run on a new multi-column kernel.
GGML_METAL_PQ2_0_MULTICOL_WIDE=1also uses it for 4 to 8 tokens, andGGML_METAL_PQ2_0_MULTICOL_DISABLE=1turns it off (#293). - Vulkan on Intel Xe1 iGPUs such as the Arc 140T (Arrow Lake-H): PTQ1_0 uses the integer dot product mat-vec (1.3 to 8.8 tok/s measured) (#274).
- SYCL: faster concat, get_rows and few-row f16/bf16 mat-vec, which shortens recurrent-layer decode steps (#326).
New
pq2_0m, a 2-bit KV cache type (-ctk pq2_0m -ctv pq2_0m) that uses 22 to 44% less memory than q4_0. Metal does not support it yet.- Lean prefill for the MTP draft head (
LLAMA_MTP_PREFILL_LEAN=1, opt-in). - Sampling: top-k with repetition, frequency or presence penalties now uses a fast exact path instead of sorting the whole vocabulary (#444).
- Server:
--checkpoint-every-nt Nsaves context checkpoints inside a long message (off by default). - New opt-in kernels for CUDA, Metal and SYCL.
pq1_0, the Q1_0 binary format at group size 64, for tensors whose width is a multiple of 64 but not of 128.llama-quantizefalls back from q1_0 to pq1_0 for exactly those tensors. Supported on CPU, CUDA and Metal (#253).- Server:
--spec-draft-window Nkeeps only the last N rows in the draft (MTP) context, so a draft pass costs the same at any depth (off by default) (#320). - CUDA:
GGML_CUDA_OP_TIMING=1(withGGML_CUDA_DISABLE_GRAPHS=1) prints a per-op GPU time breakdown (#323).
Fixes
- iOS and iPadOS: Metal now splits each graph into 8 command buffers, so long prompt batches are no longer stopped by the system (
llama_decodereturning -3). - Metal: fixed
GGML_ASSERT(buf_src)in the batched scheduler uploads. - Metal: mat-muls on the
pq2_0mtype are now reported as unsupported and fall back, instead of aborting. - CUDA: hardened the Hadamard q8_1 fusions, and kept softcap and very large shapes off the head-size-72 attention pad path.
- Single-sequence plain decode now uses the gathered recurrent state rows, which is faster and exact.
- SYCL: PTQ1_0 and PQ2_0 scratch buffers now use the device allocator, which fixes DEVICE_LOST on dual-GPU setups without P2P (#384).
- Models whose
prism.hadamardlist names tensors the loader skipped (for example the MTP head with speculative decoding off) now load (#372). gguf_dspark_to_dflash.pyis executable again (#269).- N-gram cache drafting no longer reads out of bounds when the history is only a few tokens long, and it no longer allocates a new input buffer for each draft (#435, #436).
- Qwen3-Coder style chat parsing now requires the closing
</think>before a response-format JSON body (#440). scripts/bench-models.shnow stops and returns an error when a benchmark fails (#434).
Builds
- CUDA release zips now ship Turing (RTX 20, GTX 16) as machine code. This fixes the CUDA 13.3 zip on drivers older than 13.3 for those cards.
- CUDA 13.3 zips now include A100 and H100/H200 machine code, so they also run on drivers older than 13.3 (#443).
- ROCm/HIP builds now include gfx1035 and gfx1103 (Radeon 680M and 780M).
- Windows CPU builds are now compiled with OpenMP and ship
libomp.dll.
Pre-built binaries (PrismML fork with Q1_0 1-bit quantization support).
macOS/iOS:
- macOS Apple Silicon (arm64)
- macOS Apple Silicon (arm64, KleidiAI enabled)
- macOS Intel (x64)
- iOS XCFramework
Android:
Linux (CPU):
Linux (CUDA):
Linux (Vulkan):
Linux (AMD):
Windows (CPU):
Windows (CUDA):
- Windows x64 (CUDA 12.4) - CUDA runtime DLLs
- Windows x64 (CUDA 13.3) - CUDA runtime DLLs
- Windows arm64 (CUDA 13.4) - CUDA runtime DLLs
Intel GPU (SYCL, oneAPI 2025.3.3):
- Ubuntu 24.04 x64 (SYCL FP32)
- Ubuntu 24.04 x64 (SYCL FP16)
- Windows x64 (SYCL backend and runtime DLLs): extract over the Windows x64 CPU package from this release.
- Linux requires matching oneAPI runtime libraries. Both platforms require an Intel GPU driver. See the included SYCL-RELEASE.md. Builds are compiled on GitHub-hosted runners, without GPU inference validation.
Windows (Vulkan/HIP):