Hi everyone,
I've been maintaining an open-source `llama.cpp` fork dedicated specifically to **NVIDIA Tesla V100 (Volta / SM70)** GPUs — both x86_64 and IBM Power9 AC922 (`ppc64le`). Today I just shipped **v2.0.2** (`v100-2.0.2`).
- GitHub: Due to security issues, the address link cannot be published. Please search on GitHub for: 1115714829/llama.cpp-v100
- For specific Docker synchronization support, please refer to the GitHub introduction page
---
### First, answering the inevitable question: *"What quant & did you cut corners on precision?"*
**No 1-bit/2-bit tricks, no lossy FP16 reductions, no fast-math shortcuts.** Every number below is measured under **strict zero precision loss** (verified via full operator tests, greedy T=0 byte-exact checks, and PPL/KLD checks):
- **Qwen3.8-Flash-Next (MoE)**: `Unsloth UD-Q4_K_XL` (~**111 GB** full weights, *not* Q2/IQ2) + **`q8_0` KV cache** + `shared-Q8_0` MTP draft (`Q4_K_M` draft on 2×16GB).
- **Qwen3.8-27B (Dense)**: **`Q8_0`** (~29 GB) + **`q8_0` KV cache** + DFlash2 (`F16` / `Q8_0`) on 4–6 GPUs (`UD-Q4_K_M` + `q4_0` KV on 2×16GB).
- **Zero tuning environment variables required**: all published numbers are straight out of the box with standard CLI flags.
---
### Measured 200K Context Benchmarks (Single Stream, 262K ctx, `-b 4096 -ub 4096`)
#### 1. Pure 200K Prefill Peak (No Speculation, Zero Env Vars)
| Hardware | 200K Prefill (tok/s) |
|---|---:|
| **8 × V100-SXM2-32GB** (x86_64, dual 4-GPU NVLink2 islands) | **11,240 tok/s** |
| **6 × V100-SXM2-32GB** (x86_64) | **9,401 tok/s** |
| **6 × V100-SXM2-16GB** (IBM AC922, POWER9, NVLink2) | **9,372 tok/s** |
| **4 × V100-SXM2-32GB** (x86_64, all-to-all NVLink2) | **6,664 tok/s** |
#### 2. Qwen3.8-Flash-Next (UD-Q4_K_XL, 111 GB) + MTP-3 Speculative Decoding
| GPUs | Platform | 200K Prefill | Decode @ 200K | Code Edit / New Code / Prose Decode |
|---|---|---:|---:|---|
| **6 × 32 GB** | x86_64 (NVLink2) | **7,597 tok/s** | **89.5 tok/s** | **130.4** (166.7 w/ lookup) / **120.2** / **67.3 tok/s** |
| **4 × 32 GB** | x86_64 (NVLink2) | **5,771 tok/s** | **66.6 tok/s** | **126.6** (139.2 w/ lookup) / **116.8** / **66.2 tok/s** |
| **6 × 16 GB** | IBM AC922 (NVLink2) | **7,412 tok/s** | **60.6 tok/s** | **118.8** / **111.1** / **64.5 tok/s** |
| **4 × 16 GB** | IBM AC922 (NVLink2) | **4,755 tok/s** | **69.5 tok/s** | **92.7** / **90.0** / **65.8 tok/s** |
| **2 × 16 GB** | IBM AC922 (same socket) | **2,528 tok/s** | **36.4 tok/s** | **49.5** / **51.8** / **39.2 tok/s** *(ub 2048)* |
*(We also tested x86 16GB PCIe 3.0 2/4/6-GPU configs and dense 27B + DFlash2 up to **1M context** on 6×16GB — full tables are in the README.)*
---
### What's Actually Under the Hood in 2.0.2
**Volta (SM70)-native kernels**: custom `mma.m8n8k4` / WMMA prompt attention & QSA indexer kernels, fused W4A16 prompt experts, `q8_0` & `Q2_K–Q6_K` skinny decode kernels, native `q8_0` & `q4_0` KV attention kernels, and SM70 hardware execution for modern `FP8` / `NVFP4` / `MXFP4` formats.
**Unified 3-tier placement (runs 111 GB MoE down to 32 GB host RAM)**: automatically tiers experts across **VRAM → Host RAM → Fast Disk** without quant downgrade or context shrinkage, with strict OS headroom accounting (never counts swap, avoids host OOM freezes). Works from **1 to 8 GPUs**, including odd/non-divisor counts (3/5/6/7 GPUs).
**Dual specialized speculative pipelines**: **MTP** (+ optional bounded suffix lookup) for MoE, **DFlash2** for dense 27B (up to 512K–1M context via YaRN).
**Built-in offline telemetry WebUI**: zero-CDN, zero-Node.js UI compiled right into `llama-server` with light/dark Chinese/English interface, live prefill/decode tok/s charts, per-message stats, thinking effort toggles, and real-time per-GPU VRAM / util / temp / power (W) via runtime `dlopen` NVML.
**Multimodal & decode-first concurrency**: GPU `mmproj` for images/PDFs/video + `--prefill-pace` so incoming long prompts don't stall active decoding slots.
---
### Quick Start (Example: 6 × V100, Qwen3.8-Flash-Next + MTP-3)
```bash
./build/bin/llama-server \
-m /models/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf \
--model-draft /models/mtp-Qwen3.8-Flash-Next-shared-Q8_0.gguf \
--spec-type draft-mtp --spec-draft-n-max 3 \
--expert-profile flash-next-profile.txt \
--split-mode layer -c 262144 -np 1 -fa on \
-ctk q8_0 -ctv q8_0 -b 4096 -ub 4096 --port 8080
```
---
### Current Limitations & What I'm Working on Next
Being upfront about what isn't done yet:
- Please use **`-np 1`** when running MoE with **MTP** enabled (multi-slot `-np > 1` works fine without MTP; fixing the MTP multi-slot draft-ring assert is on the next-release list).
- Under pure layer split (`PP=6`), 200K prefill saturates all GPUs, but single-stream decode is still limited by serial stage execution. **Next release is already in progress**: hybrid **`PP=2 × intra-island TP+EP`** + ordered FP32 NVLink fused `AllReduce+Residual+RMSNorm` + async PLE prefetching to push speculative decode past **200+ tok/s** on V100s (for both MoE and dense 27B).
If you still have V100s (SXM2, PCIe, 16GB, 32GB, x86, or AC922) sitting in a homelab or rack, I'd genuinely love your feedback, benchmarks on weird setups, issues, and PRs!