RWKV-7 G1 7.2B β int4 RTN for rwkv-sglang (fits a 16 GB card)
Hand-written weight-only int4 (calibration-free RTN, symmetric, group 64) quantization of BlinkDL's RWKV-7 "Goose" G1 7.2B, for the rwkv-sglang serving overlay. Same on-disk format and same serving kernel as the GPTQ sibling β identical speed, RTN gives up some accuracy in exchange for needing no calibration data.
- Accuracy: greedy decoding is token-for-token EXACT on the oracle fixture (8/8), measured on a real T4 (16 GB): 32.9 tok/s bsz1, 6.7 GB peak. lambada β2.64pt vs fp16 (the GPTQ sibling halves that to β1.28pt). MATH500 avg@64 was measured on the GPTQ sibling (61.08% vs fp16's 64.18%, β3.1pt), not on this RTN build β prefer rwkv7-sglang-w4gptq-7.2b as the primary 7.2B int4 checkpoint; this RTN build is the calibration-free baseline.
- Runs a 7.2B model on a 16 GB GPU: checkpoint 4.6 GB (vs 14.4 GB fp16).
- Speed: int4 decode faster than fp16 at small batch on every tested arch (identical to the GPTQ sibling β same kernel).
Where this fits
This checkpoint loads through the rwkv-sglang overlay. Native RWKV-7 support is being upstreamed into SGLang β see sgl-project/sglang#30115; once that lands the overlay is no longer required.
If you want RWKV-7 without quantization or a custom runtime, the same base weights are
also published in standard HuggingFace layout β plain safetensors, ordinary config.json,
no trust_remote_code:
| 0.1B | rwkv7-0.1b-hf |
| 0.4B | rwkv7-0.4b-hf |
| 1.5B | rwkv7-1.5b-hf |
| 2.9B | rwkv7-2.9b-hf |
| 7.2B (G1) | rwkv7-g1h-7.2b-hf |
| Pile 168M | rwkv7-168m-pile-hf |
Transformers support for the architecture itself is open as huggingface/transformers#47780.
Format & loading (important)
Not a drop-in HuggingFace checkpoint. Group-wise (GROUP=64) symmetric int4
(.qweight + .scale); loads only through the rwkv-sglang overlay:
bash scripts/deploy.sh # from github.com/Hakureirm/rwkv-sglang, built against sglang v0.5.10.post1 β newer releases need the overlay rebased
RWKV_W4=1 python -m sglang.launch_server --model-path <this-dir> --dtype float16 \
--trust-remote-code --disable-radix-cache --mem-fraction-static 0.8
LoRA/norm/embedding/head stay full precision. Base model Β© BlinkDL (Bo Peng), Apache-2.0.
- Downloads last month
- -
Model tree for Hakureirm/rwkv7-sglang-w4rtn-7.2b
Base model
BlinkDL/rwkv7-g1