Instructions to use Hakureirm/rwkv7-sglang-w4gptq-1.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RWKV
How to use Hakureirm/rwkv7-sglang-w4gptq-1.5b with RWKV:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Finalize model card (accuracy notes) for public release
Browse files
README.md
CHANGED
|
@@ -1,21 +1,41 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# RWKV-7 G1 1.5B — int4 GPTQ for rwkv-sglang
|
| 9 |
|
| 10 |
-
Hand-written **weight-only int4** (GPTQ-calibrated
|
| 11 |
-
G1 1.5B, for the
|
|
|
|
| 12 |
|
| 13 |
-
- **Accuracy:** GPTQ (wikitext-calibrated) lambada 0.639 vs 0.672 fp16
|
| 14 |
-
+1.6pt over calibration-free RTN; kernel output is bit-identical to
|
|
|
|
| 15 |
- **Speed:** faster than fp16 at every batch size ≤ 32 on an RTX 3090 (1.03–1.56× decode),
|
| 16 |
via a hand-written int4 GEMV / small-M GEMM / tensor-core GEMM family (JIT, Turing→Blackwell).
|
| 17 |
- **VRAM:** checkpoint 1.2 GB vs 2.9 GB fp16 (~2.4×); serve VRAM −950 MiB at bsz1.
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
## Format & loading (important)
|
| 20 |
Not a drop-in HuggingFace checkpoint. Weights are group-wise (GROUP=64) symmetric int4
|
| 21 |
(`.qweight` + `.scale`); they load **only** through the rwkv-sglang overlay:
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: BlinkDL/rwkv7-g1
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- rwkv
|
| 7 |
+
- rwkv7
|
| 8 |
+
- int4
|
| 9 |
+
- gptq
|
| 10 |
+
- quantized
|
| 11 |
---
|
| 12 |
|
| 13 |
# RWKV-7 G1 1.5B — int4 GPTQ for rwkv-sglang
|
| 14 |
|
| 15 |
+
Hand-written **weight-only int4** (GPTQ-calibrated, symmetric, group 64) quantization of
|
| 16 |
+
BlinkDL's RWKV-7 "Goose" G1 1.5B, for the
|
| 17 |
+
[rwkv-sglang](https://github.com/Hakureirm/rwkv-sglang) serving overlay.
|
| 18 |
|
| 19 |
+
- **Accuracy (perplexity-style):** GPTQ (wikitext-calibrated) lambada 0.639 vs 0.672 fp16
|
| 20 |
+
(−3.34pt), recovering +1.6pt over calibration-free RTN; kernel output is bit-identical to
|
| 21 |
+
the offline dequant.
|
| 22 |
- **Speed:** faster than fp16 at every batch size ≤ 32 on an RTX 3090 (1.03–1.56× decode),
|
| 23 |
via a hand-written int4 GEMV / small-M GEMM / tensor-core GEMM family (JIT, Turing→Blackwell).
|
| 24 |
- **VRAM:** checkpoint 1.2 GB vs 2.9 GB fp16 (~2.4×); serve VRAM −950 MiB at bsz1.
|
| 25 |
|
| 26 |
+
## ⚠️ Accuracy warning — multi-step reasoning (read before use)
|
| 27 |
+
|
| 28 |
+
Perplexity-style metrics understate int4's damage to multi-step reasoning **at this model
|
| 29 |
+
size**. On MATH500 (avg@64, 32,000 rollouts) this checkpoint scores **14.98% vs fp16's
|
| 30 |
+
40.60% (−25.6pt)** — the quantized model tends to lose the thread mid-derivation and run to
|
| 31 |
+
the token cap (57.7% truncation vs fp16's 14.2%). This is a 1.5B-specific fragility, not a
|
| 32 |
+
property of the scheme itself: the identical symmetric GPTQ at 7.2B costs only −3.1pt on the
|
| 33 |
+
same ruler (see [rwkv7-sglang-w4gptq-7.2b](https://huggingface.co/Hakureirm/rwkv7-sglang-w4gptq-7.2b)).
|
| 34 |
+
|
| 35 |
+
**Recommendation:** treat this checkpoint as a memory-footprint tool for non-reasoning
|
| 36 |
+
workloads. For reasoning-heavy use at 1.5B, use the int8 w8g64 tier instead (greedy-exact,
|
| 37 |
+
no measurable accuracy cost) — int4 is not the lossless tier at this size.
|
| 38 |
+
|
| 39 |
## Format & loading (important)
|
| 40 |
Not a drop-in HuggingFace checkpoint. Weights are group-wise (GROUP=64) symmetric int4
|
| 41 |
(`.qweight` + `.scale`); they load **only** through the rwkv-sglang overlay:
|