OpenMOSE commited on
Commit
44a68e3
·
verified ·
1 Parent(s): f2c497b

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -6,6 +6,7 @@ language:
6
  - en
7
  - zh
8
  base_model:
 
9
  - RWKV/RWKV7-G1l-7.2B-20261031
10
  - RWKV/RWKV7-G1l-13.3B-20261031
11
  tags:
@@ -23,12 +24,13 @@ tags:
23
 
24
  - **What a sidecar is:** a small add-on network that reads the frozen base model's hidden states and proposes the next few tokens. The base model then verifies all of them in a single forward pass.
25
  - **Quality:** the output distribution is exactly the base model's. The sidecar changes only speed.
26
- - **Speed:** with [RWKV-Infer-Next](#usage-with-rwkv-infer-next), single-stream decoding becomes **1.8–2.1× faster**. That includes the 13.3B model on a single 16 GB GPU.
27
 
28
  | Folder | Base model | Base layers / width | Tapped layers | Training tokens | Size (bf16) |
29
  |---|---|---|---|---|---|
30
- | `RWKV7-G1l-7.2B-20261031/` | [RWKV/RWKV7-G1l-7.2B-20261031](https://huggingface.co/RWKV/RWKV7-G1l-7.2B-20261031) | 32 / 4096 | 9, 19 | 300M | 496 MB (247.6M params) |
31
- | `RWKV7-G1l-13.3B-20261031/` | [RWKV/RWKV7-G1l-13.3B-20261031](https://huggingface.co/RWKV/RWKV7-G1l-13.3B-20261031) | 61 / 4096 | 17, 36 | 270M | 496 MB (247.6M params) |
 
32
 
33
  > A sidecar works **only with the base model it was trained on**. Same width is not enough: a sidecar trained for the 7.2B
34
  > model loads on the 13.3B model but gives no speed-up (1.03 tokens per forward). `mtp.json` records the base model,
@@ -40,20 +42,37 @@ Setup:
40
  - Engine: RWKV-Infer-Next, int6 weights.
41
  - Workload: single stream, 6 chat prompts (Japanese chat, proofreading, translation, English chat, code, Chinese), greedy and sampled.
42
 
 
 
43
  | Base model | GPUs | GPU memory used | Without MTP | With this sidecar | Speed-up |
44
  |---|---|---|---|---|---|
45
- | G1l 7.2B | **one 16 GB GPU** | 9.4 GB | 117 tok/s | **226–228 tok/s** | **1.9×** |
46
- | G1l 7.2B | two 16 GB GPUs (tensor parallel) | ≈ 5 GB each | 140 tok/s | **252–258 tok/s** | **1.8×** |
47
- | G1l 13.3B | **one 16 GB GPU** (`--max-batch 16`) | 14.5 GB | 63–64 tok/s | **136 tok/s** | **2.1×** |
48
- | G1l 13.3B | two 16 GB GPUs (tensor parallel) | ≈ 9 GB each | 78 tok/s | **154 tok/s** | **2.0×** |
 
 
49
 
50
  - **The 13.3B model with its sidecar fits one 16 GB GPU** in int6. Cap the concurrent sequences at 16 (`--max-batch 16`); the default of 32 reserves recurrent state and CUDA graphs that do not fit.
 
51
  - The two-GPU rows are PCIe GPUs without P2P.
52
 
53
- - **By task:** acceptance is highest on proofreading (7.2B: 274–339 tok/s; 13.3B: ≈ 220 tok/s), and lowest on English chat and Chinese (7.2B ≈ 200 tok/s; 13.3B 109–118 tok/s).
54
- - **Training length:** speed-ups grow with training.
55
- - 7.2B: 1.4× after 25M tokens, 1.8× after 300M.
56
- - 13.3B: 1.5× after 30M, 1.7× after 90M, 2.0× after 270M.
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
  ## Architecture
59
 
@@ -121,7 +140,7 @@ Every emitted token is a sample from the base model given the accepted prefix, s
121
 
122
  ## Usage with RWKV-Infer-Next
123
 
124
- RWKV-Infer-Next (an inference server for RWKV-7):
125
  - tensor parallel, continuous batching on CUDA graphs, int6 / int8 / bf16 weights;
126
  - OpenAI-compatible API, chat templates, thinking and tool calls, WebUI.
127
 
@@ -129,6 +148,7 @@ It downloads the base model and the matching sidecar from this repository automa
129
 
130
  ```bash
131
  pip install -r requirements.txt
 
132
  python -m rwkv_next --model RWKV/RWKV7-G1l-7.2B-20261031 --tp 1 # one 16 GB GPU
133
  python -m rwkv_next --model RWKV/RWKV7-G1l-13.3B-20261031 --tp 1 --max-batch 16 # one 16 GB GPU
134
  python -m rwkv_next --model RWKV/RWKV7-G1l-13.3B-20261031 --tp 2 # two GPUs
@@ -160,8 +180,9 @@ mv /tmp/mtp/RWKV7-G1l-7.2B-20261031 /path/to/RWKV7-G1l-7.2B-20261031/mtp
160
 
161
  ```
162
  index.json which folder serves which base model
163
- RWKV7-G1l-7.2B-20261031/mtp.safetensors drafter weights (bf16) + draft_vocab (int64)
164
- RWKV7-G1l-7.2B-20261031/mtp.json {"meta": {...}}
 
165
  RWKV7-G1l-13.3B-20261031/...
166
  ```
167
 
 
6
  - en
7
  - zh
8
  base_model:
9
+ - RWKV/RWKV7-G1l-2.9B-20261031
10
  - RWKV/RWKV7-G1l-7.2B-20261031
11
  - RWKV/RWKV7-G1l-13.3B-20261031
12
  tags:
 
24
 
25
  - **What a sidecar is:** a small add-on network that reads the frozen base model's hidden states and proposes the next few tokens. The base model then verifies all of them in a single forward pass.
26
  - **Quality:** the output distribution is exactly the base model's. The sidecar changes only speed.
27
+ - **Speed:** with [RWKV-Infer-Next](#usage-with-rwkv-infer-next), single-stream decoding becomes **1.8–2.3× faster**. That includes the 13.3B model on a single 16 GB GPU.
28
 
29
  | Folder | Base model | Base layers / width | Tapped layers | Training tokens | Size (bf16) |
30
  |---|---|---|---|---|---|
31
+ | `RWKV7-G1l-2.9B-20261031/` | [RWKV/RWKV7-G1l-2.9B-20261031](https://huggingface.co/RWKV/RWKV7-G1l-2.9B-20261031) | 32 / 2560 | 9, 19 | 1.0B | 208 MB (103.6M params) |
32
+ | `RWKV7-G1l-7.2B-20261031/` | [RWKV/RWKV7-G1l-7.2B-20261031](https://huggingface.co/RWKV/RWKV7-G1l-7.2B-20261031) | 32 / 4096 | 9, 19 | 1.0B | 496 MB (247.6M params) |
33
+ | `RWKV7-G1l-13.3B-20261031/` | [RWKV/RWKV7-G1l-13.3B-20261031](https://huggingface.co/RWKV/RWKV7-G1l-13.3B-20261031) | 61 / 4096 | 17, 36 | 1.0B | 496 MB (247.6M params) |
34
 
35
  > A sidecar works **only with the base model it was trained on**. Same width is not enough: a sidecar trained for the 7.2B
36
  > model loads on the 13.3B model but gives no speed-up (1.03 tokens per forward). `mtp.json` records the base model,
 
42
  - Engine: RWKV-Infer-Next, int6 weights.
43
  - Workload: single stream, 6 chat prompts (Japanese chat, proofreading, translation, English chat, code, Chinese), greedy and sampled.
44
 
45
+ Speeds are the mean over the 6 prompts, greedy / sampled.
46
+
47
  | Base model | GPUs | GPU memory used | Without MTP | With this sidecar | Speed-up |
48
  |---|---|---|---|---|---|
49
+ | G1l 2.9B | **one 16 GB GPU** | 5.1 GB | 240 / 230 tok/s | **436 / 443 tok/s** | **1.8–1.9×** |
50
+ | G1l 2.9B | two 16 GB GPUs (tensor parallel) | ≈ 4 GB each | 205 / 204 tok/s | **403 / 382 tok/s** | **1.9–2.0×** |
51
+ | G1l 7.2B | **one 16 GB GPU** | 9.4 GB | 119 / 116 tok/s | **243 / 249 tok/s** | **2.0–2.1×** |
52
+ | G1l 7.2B | two 16 GB GPUs (tensor parallel) | ≈ 6 GB each | 141 / 140 tok/s | **269 / 275 tok/s** | **1.9–2.0×** |
53
+ | G1l 13.3B | **one 16 GB GPU** (`--max-batch 16`) | 14.6 GB | 64 / 63 tok/s | **143 / 143 tok/s** | **2.2–2.3×** |
54
+ | G1l 13.3B | two 16 GB GPUs (tensor parallel) | ≈ 9.5 GB each | 78 / 76 tok/s | **162 / 162 tok/s** | **2.1×** |
55
 
56
  - **The 13.3B model with its sidecar fits one 16 GB GPU** in int6. Cap the concurrent sequences at 16 (`--max-batch 16`); the default of 32 reserves recurrent state and CUDA graphs that do not fit.
57
+ - **The 2.9B model is faster on one GPU** than split over two, with or without MTP.
58
  - The two-GPU rows are PCIe GPUs without P2P.
59
 
60
+ - **By task** (greedy, one GPU): acceptance is highest on proofreading and code, and lowest on English chat and Chinese.
61
+
62
+ | Base model | Proofreading | Code | Japanese chat | Translation | Chinese | English chat |
63
+ |---|---|---|---|---|---|---|
64
+ | 2.9B | 559 | 498 | 426 | 407 | 402 | 323 tok/s |
65
+ | 7.2B | 268 | 239 | 256 | 253 | 231 | 211 tok/s |
66
+ | 13.3B | 171 | 156 | 142 | 154 | 117 | 115 tok/s |
67
+
68
+ - **Training length:** speed-ups grow with training. The 1.0B-token sidecars replace the earlier ones. Measured in the same session on one GPU (greedy / sampled):
69
+
70
+ | Base model | Earlier sidecar | This sidecar (1.0B tokens) | Gain |
71
+ |---|---|---|---|
72
+ | 7.2B | 300M tokens: 226 / 223 tok/s | 243 / 249 tok/s | +7–12% |
73
+ | 13.3B | 270M tokens: 136 / 133 tok/s | 143 / 143 tok/s | +5–7% |
74
+
75
+ Earlier checkpoints: 7.2B gave 1.4× after 25M tokens; 13.3B gave 1.5× after 30M and 1.7× after 90M.
76
 
77
  ## Architecture
78
 
 
140
 
141
  ## Usage with RWKV-Infer-Next
142
 
143
+ [RWKV-Infer-Next](https://github.com/OpenMOSE/RWKV-Infer-Next) (an inference server for RWKV-7):
144
  - tensor parallel, continuous batching on CUDA graphs, int6 / int8 / bf16 weights;
145
  - OpenAI-compatible API, chat templates, thinking and tool calls, WebUI.
146
 
 
148
 
149
  ```bash
150
  pip install -r requirements.txt
151
+ python -m rwkv_next --model RWKV/RWKV7-G1l-2.9B-20261031 --tp 1 # one GPU (≈ 5 GB)
152
  python -m rwkv_next --model RWKV/RWKV7-G1l-7.2B-20261031 --tp 1 # one 16 GB GPU
153
  python -m rwkv_next --model RWKV/RWKV7-G1l-13.3B-20261031 --tp 1 --max-batch 16 # one 16 GB GPU
154
  python -m rwkv_next --model RWKV/RWKV7-G1l-13.3B-20261031 --tp 2 # two GPUs
 
180
 
181
  ```
182
  index.json which folder serves which base model
183
+ RWKV7-G1l-2.9B-20261031/mtp.safetensors drafter weights (bf16) + draft_vocab (int64)
184
+ RWKV7-G1l-2.9B-20261031/mtp.json {"meta": {...}}
185
+ RWKV7-G1l-7.2B-20261031/...
186
  RWKV7-G1l-13.3B-20261031/...
187
  ```
188
 
RWKV7-G1l-13.3B-20261031/mtp.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "meta": {
3
  "model": "RWKV7-G1l-13.3B-20261031",
4
- "tokens": 270139392,
5
  "target": "kl",
6
  "kind": "attn",
7
  "n_embd": 4096,
 
1
  {
2
  "meta": {
3
  "model": "RWKV7-G1l-13.3B-20261031",
4
+ "tokens": 999981056,
5
  "target": "kl",
6
  "kind": "attn",
7
  "n_embd": 4096,
RWKV7-G1l-13.3B-20261031/mtp.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:52127e5a5a54eb89fed0d078a6366d1b8308be02f23fc6a118b36c8188c0780f
3
  size 495676568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8df0d8cac916d827c34a12653b679ece6e854213870e9e36515c96258388ad2c
3
  size 495676568
RWKV7-G1l-2.9B-20261031/mtp.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "meta": {
3
+ "model": "RWKV7-G1l-2.9B-20261031",
4
+ "tokens": 999981056,
5
+ "target": "kl",
6
+ "kind": "attn",
7
+ "n_embd": 2560,
8
+ "ctx": 512,
9
+ "depth": 3,
10
+ "fuse_layers": [
11
+ 9,
12
+ 19
13
+ ],
14
+ "dd": true,
15
+ "n_layer": 32,
16
+ "base_model": "RWKV7-G1l-2.9B-20261031",
17
+ "format": "rwkv-mtp",
18
+ "version": 1
19
+ }
20
+ }
RWKV7-G1l-2.9B-20261031/mtp.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad9f16909401d6289b74e54057378b7e3c70b3639802d723720def2d4f266f92
3
+ size 207759504
RWKV7-G1l-7.2B-20261031/mtp.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "meta": {
3
  "model": "RWKV7-G1l-7.2B-20261031",
4
- "tokens": 299991040,
5
  "target": "kl",
6
  "kind": "attn",
7
  "n_embd": 4096,
 
1
  {
2
  "meta": {
3
  "model": "RWKV7-G1l-7.2B-20261031",
4
+ "tokens": 999981056,
5
  "target": "kl",
6
  "kind": "attn",
7
  "n_embd": 4096,
RWKV7-G1l-7.2B-20261031/mtp.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:12680872a0b3444cb85a4743576d54f949baaf24f99e8e48e35dcd70d40c682a
3
  size 495676568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a6297a7e942dddead4cfcb1b399527fe5f1d83a6547710fa05f07ac21fac69a
3
  size 495676568
g1l-mtp/13.3b/mtp-kl-attn-d3-fuse-dd.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:187967b2bfe31b97c7cd6a52809343851210cb99791b2187c84643670221e8e6
3
  size 495684541
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce06ea9b23082cc11641997303e9fef2a630d877be9cc96ac2a44bb8e7a26281
3
  size 495684541
g1l-mtp/2.9b/mtp-kl-attn-d3-fuse-dd.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3af5b67ca3aa66927ab30ef50ccb36766058b9b761bf471d1588406e4e36237d
3
+ size 207767485
g1l-mtp/7b/mtp-kl-attn-d3-fuse-dd.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c20316854e3d0e8e5e31f28865f6731a4aa453ccbfc84d6b7e062ecc8c547beb
3
  size 495684541
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cccbf52b49662a40073bfc1b2e0a6681b3b3e52eef6d1bc23a8e4bb33606491b
3
  size 495684541
index.json CHANGED
@@ -2,6 +2,20 @@
2
  "format": "rwkv-mtp",
3
  "version": 1,
4
  "sidecars": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
6
  "base_model": "RWKV7-G1l-7.2B-20261031",
7
  "path": "RWKV7-G1l-7.2B-20261031",
@@ -14,7 +28,7 @@
14
  9,
15
  19
16
  ],
17
- "trained_tokens": 299991040
18
  },
19
  {
20
  "base_model": "RWKV7-G1l-13.3B-20261031",
@@ -28,7 +42,7 @@
28
  17,
29
  36
30
  ],
31
- "trained_tokens": 270139392
32
  }
33
  ]
34
  }
 
2
  "format": "rwkv-mtp",
3
  "version": 1,
4
  "sidecars": [
5
+ {
6
+ "base_model": "RWKV7-G1l-2.9B-20261031",
7
+ "path": "RWKV7-G1l-2.9B-20261031",
8
+ "hf_base": [
9
+ "RWKV/RWKV7-G1l-2.9B-20261031"
10
+ ],
11
+ "n_layer": 32,
12
+ "n_embd": 2560,
13
+ "fuse_layers": [
14
+ 9,
15
+ 19
16
+ ],
17
+ "trained_tokens": 999981056
18
+ },
19
  {
20
  "base_model": "RWKV7-G1l-7.2B-20261031",
21
  "path": "RWKV7-G1l-7.2B-20261031",
 
28
  9,
29
  19
30
  ],
31
+ "trained_tokens": 999981056
32
  },
33
  {
34
  "base_model": "RWKV7-G1l-13.3B-20261031",
 
42
  17,
43
  36
44
  ],
45
+ "trained_tokens": 999981056
46
  }
47
  ]
48
  }