RWKV
Chinese
English
rwkv-lightning-cuda
rwkv7
agent
tool-use
coding-agent
deep-search
linear-attention
rwkv-pi
Instructions to use RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RWKV
How to use RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource 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
Default to RWKV7-Pi-7.2B-v0.2; mark v0.1-final as legacy
Browse files- README.md +9 -7
- SHA256SUMS.txt +2 -0
- quickstart-linux.sh +9 -3
- quickstart-windows.ps1 +9 -3
README.md
CHANGED
|
@@ -46,7 +46,7 @@ The `engine/` folder mirrors the prebuilt [`rwkv_lightning_cuda`](https://github
|
|
| 46 |
```text
|
| 47 |
RWKV7-Agent-7.2B-v0.1.pth (Shared General-Purpose Agent Foundation)
|
| 48 |
βββ RWKV7-Pi-7.2B-Anneal-v0.1.pth (Pi Coding Agent β Post-SFT Annealed)
|
| 49 |
-
β βββ RWKV7-Pi-7.2B-v0.1-final.pth (Pi Coding Agent β
|
| 50 |
βββ RWKV7-DSH-7.2B-Anneal-*.pth (DSH Deep-Search Agent β Annealed)
|
| 51 |
```
|
| 52 |
|
|
@@ -56,8 +56,10 @@ RWKV7-Agent-7.2B-v0.1.pth (Shared General-Purpose Agent Foundat
|
|
| 56 |
|---|---|---|---|---|
|
| 57 |
| `RWKV7-Agent-7.2B-v0.1.pth` | Foundation (`v0.1`) | Standalone BF16 | `744b26faaa4a15c08255ad6627ec4e560ddda5bd9d669dd716296598440768dd` | Shared multi-turn tool-use & reasoning foundation |
|
| 58 |
| `RWKV7-Pi-7.2B-Anneal-v0.1.pth` | Pi Coding (`v0.1-anneal`) | Standalone BF16 | `a31cbf1693f0bad0014d58f1496a8ed0e6fecebba306ef5a1b32deb7173170db` | High-signal post-SFT annealed coding-agent checkpoint |
|
| 59 |
-
| **`RWKV7-Pi-7.2B-v0.
|
| 60 |
-
| **`RWKV7-Pi-7.2B-v0.
|
|
|
|
|
|
|
| 61 |
| `RWKV7-DSH-7.2B-Anneal-*.pth` | DSH Deep-Search (Annealed) | Standalone BF16 | *(uploaded by DSH track)* | Post-SFT annealed deep-search agent checkpoint |
|
| 62 |
|
| 63 |
## Quick Start (`rwkv_lighting_cuda`)
|
|
@@ -65,11 +67,11 @@ RWKV7-Agent-7.2B-v0.1.pth (Shared General-Purpose Agent Foundat
|
|
| 65 |
```bash
|
| 66 |
# Download a checkpoint + shared tokenizer vocabulary
|
| 67 |
hf download RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource \
|
| 68 |
-
RWKV7-Pi-7.2B-v0.
|
| 69 |
|
| 70 |
# Serve locally
|
| 71 |
./rwkv_lighting_cuda \
|
| 72 |
-
--model-path ./weights/RWKV7-Pi-7.2B-v0.
|
| 73 |
--vocab-path ./weights/rwkv_vocab_v20230424.txt \
|
| 74 |
--host 127.0.0.1 --port 8000
|
| 75 |
```
|
|
@@ -82,10 +84,10 @@ Apache-2.0
|
|
| 82 |
|
| 83 |
```bash
|
| 84 |
hf download RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource \
|
| 85 |
-
RWKV7-Pi-7.2B-v0.
|
| 86 |
|
| 87 |
./rwkv_lighting_cuda \
|
| 88 |
-
--model-path ./weights/RWKV7-Pi-7.2B-v0.
|
| 89 |
--vocab-path ./weights/rwkv_vocab_v20230424.txt \
|
| 90 |
--chunk-load --wkv32 --host 127.0.0.1 --port 8000
|
| 91 |
```
|
|
|
|
| 46 |
```text
|
| 47 |
RWKV7-Agent-7.2B-v0.1.pth (Shared General-Purpose Agent Foundation)
|
| 48 |
βββ RWKV7-Pi-7.2B-Anneal-v0.1.pth (Pi Coding Agent β Post-SFT Annealed)
|
| 49 |
+
β βββ RWKV7-Pi-7.2B-v0.1-final.pth (Pi Coding Agent β legacy oldText/newText edit protocol)
|
| 50 |
βββ RWKV7-DSH-7.2B-Anneal-*.pth (DSH Deep-Search Agent β Annealed)
|
| 51 |
```
|
| 52 |
|
|
|
|
| 56 |
|---|---|---|---|---|
|
| 57 |
| `RWKV7-Agent-7.2B-v0.1.pth` | Foundation (`v0.1`) | Standalone BF16 | `744b26faaa4a15c08255ad6627ec4e560ddda5bd9d669dd716296598440768dd` | Shared multi-turn tool-use & reasoning foundation |
|
| 58 |
| `RWKV7-Pi-7.2B-Anneal-v0.1.pth` | Pi Coding (`v0.1-anneal`) | Standalone BF16 | `a31cbf1693f0bad0014d58f1496a8ed0e6fecebba306ef5a1b32deb7173170db` | High-signal post-SFT annealed coding-agent checkpoint |
|
| 59 |
+
| **`RWKV7-Pi-7.2B-v0.2.pth`** | **Pi Coding (`v0.2`)** | Standalone BF16 | `67a8c03a0c4efd71e2426346da11dccffed6396cbd3c678f151dcf32b7de1f63` | **Recommended Pi Coding Agent** β Line-Edit v2 + DAgger (`RWKV_EDIT_MODE=line`) |
|
| 60 |
+
| **`RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq`** | **Pi Coding (`v0.2` Quantized)** | **W8A16 (`7.16 GiB`)** | `5f89733aa18473079786e685725eeafae57cca96a3ebb02b09d95749989765a0` | **Recommended for 12β16 GB GPUs** (`rwkv_lighting_cuda` native `.rwkvq`) |
|
| 61 |
+
| `RWKV7-Pi-7.2B-v0.1-final.pth` | Pi Coding (`v0.1-final`, legacy) | Standalone BF16 | `e9e60c42f1cd39529e54d8b9e681051c62bb5758fa3ca30a7da43288f7db7187` | Legacy β oldText/newText edit protocol (`RWKV_EDIT_MODE=text`); superseded by `v0.2` |
|
| 62 |
+
| `RWKV7-Pi-7.2B-v0.1-final.w8a16.rwkvq` | Pi Coding (`v0.1-final` Quantized, legacy) | W8A16 (`7.16 GiB`) | `6ea0ef30629ceaec3ac17724490da8bb26ae1c4a2c848f63ec17e286518ec2c7` | Legacy β superseded by `RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq` |
|
| 63 |
| `RWKV7-DSH-7.2B-Anneal-*.pth` | DSH Deep-Search (Annealed) | Standalone BF16 | *(uploaded by DSH track)* | Post-SFT annealed deep-search agent checkpoint |
|
| 64 |
|
| 65 |
## Quick Start (`rwkv_lighting_cuda`)
|
|
|
|
| 67 |
```bash
|
| 68 |
# Download a checkpoint + shared tokenizer vocabulary
|
| 69 |
hf download RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource \
|
| 70 |
+
RWKV7-Pi-7.2B-v0.2.pth rwkv_vocab_v20230424.txt --local-dir ./weights
|
| 71 |
|
| 72 |
# Serve locally
|
| 73 |
./rwkv_lighting_cuda \
|
| 74 |
+
--model-path ./weights/RWKV7-Pi-7.2B-v0.2.pth \
|
| 75 |
--vocab-path ./weights/rwkv_vocab_v20230424.txt \
|
| 76 |
--host 127.0.0.1 --port 8000
|
| 77 |
```
|
|
|
|
| 84 |
|
| 85 |
```bash
|
| 86 |
hf download RWKV-Agent-Lab/RWKV7-Agent-7.2B-OpenSource \
|
| 87 |
+
RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq rwkv_vocab_v20230424.txt --local-dir ./weights
|
| 88 |
|
| 89 |
./rwkv_lighting_cuda \
|
| 90 |
+
--model-path ./weights/RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq \
|
| 91 |
--vocab-path ./weights/rwkv_vocab_v20230424.txt \
|
| 92 |
--chunk-load --wkv32 --host 127.0.0.1 --port 8000
|
| 93 |
```
|
SHA256SUMS.txt
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
a31cbf1693f0bad0014d58f1496a8ed0e6fecebba306ef5a1b32deb7173170db RWKV7-Pi-7.2B-Anneal-v0.1.pth
|
| 3 |
e9e60c42f1cd39529e54d8b9e681051c62bb5758fa3ca30a7da43288f7db7187 RWKV7-Pi-7.2B-v0.1-final.pth
|
| 4 |
6ea0ef30629ceaec3ac17724490da8bb26ae1c4a2c848f63ec17e286518ec2c7 RWKV7-Pi-7.2B-v0.1-final.w8a16.rwkvq
|
|
|
|
|
|
|
| 5 |
3551815da68d1449112c2b47efb46b5e0b93d07b2ef3332d263b8db3d35dde22 engine/rwkv-lightning-v1.8.15-linux-x64-cuda12.9.zip
|
| 6 |
b3699098bf4dba660cba618f221b86efc8339a834da11241f131cb2e7393f89e engine/rwkv-lightning-v1.8.15-linux-x64-cuda13.2.zip
|
| 7 |
0b6f5dee7e2a9b18cb6e001286d059c02aac939e18f8b75e6d89320782fd11dd engine/rwkv-lightning-v1.8.15-windows-x64-cuda12.9.zip
|
|
|
|
| 2 |
a31cbf1693f0bad0014d58f1496a8ed0e6fecebba306ef5a1b32deb7173170db RWKV7-Pi-7.2B-Anneal-v0.1.pth
|
| 3 |
e9e60c42f1cd39529e54d8b9e681051c62bb5758fa3ca30a7da43288f7db7187 RWKV7-Pi-7.2B-v0.1-final.pth
|
| 4 |
6ea0ef30629ceaec3ac17724490da8bb26ae1c4a2c848f63ec17e286518ec2c7 RWKV7-Pi-7.2B-v0.1-final.w8a16.rwkvq
|
| 5 |
+
67a8c03a0c4efd71e2426346da11dccffed6396cbd3c678f151dcf32b7de1f63 RWKV7-Pi-7.2B-v0.2.pth
|
| 6 |
+
5f89733aa18473079786e685725eeafae57cca96a3ebb02b09d95749989765a0 RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq
|
| 7 |
3551815da68d1449112c2b47efb46b5e0b93d07b2ef3332d263b8db3d35dde22 engine/rwkv-lightning-v1.8.15-linux-x64-cuda12.9.zip
|
| 8 |
b3699098bf4dba660cba618f221b86efc8339a834da11241f131cb2e7393f89e engine/rwkv-lightning-v1.8.15-linux-x64-cuda13.2.zip
|
| 9 |
0b6f5dee7e2a9b18cb6e001286d059c02aac939e18f8b75e6d89320782fd11dd engine/rwkv-lightning-v1.8.15-windows-x64-cuda12.9.zip
|
quickstart-linux.sh
CHANGED
|
@@ -162,11 +162,11 @@ LD_LIBRARY_PATH="$INSTALL_DIR/bundle/lib:${LD_LIBRARY_PATH:-}" "$INSTALL_DIR/bun
|
|
| 162 |
|
| 163 |
echo "==> [3/6] Preparing RWKV-7 7.2B model weights ($PRECISION)..."
|
| 164 |
if [ "$PRECISION" = "w8a16" ]; then
|
| 165 |
-
MODEL_FILE="RWKV7-Pi-7.2B-v0.
|
| 166 |
DECODE_BATCH=4
|
| 167 |
CHUNK_SIZE=512
|
| 168 |
else
|
| 169 |
-
MODEL_FILE="RWKV7-Pi-7.2B-v0.
|
| 170 |
DECODE_BATCH=16
|
| 171 |
CHUNK_SIZE=1024
|
| 172 |
fi
|
|
@@ -248,7 +248,13 @@ RWKV_HISTORY_MODE=epoch
|
|
| 248 |
RWKV_EPOCH_BUDGET_TOKENS=9600
|
| 249 |
RWKV_EPOCH_KEEP_RECENT_PAIRS=3
|
| 250 |
RWKV_EPOCH_MAX_RESULT_TOKENS=2000
|
| 251 |
-
RWKV_EDIT_MODE=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
RWKV_PLUGINS=none
|
| 253 |
RWKV_PI_DATA_ROOT=${INSTALL_DIR}/data
|
| 254 |
|
|
|
|
| 162 |
|
| 163 |
echo "==> [3/6] Preparing RWKV-7 7.2B model weights ($PRECISION)..."
|
| 164 |
if [ "$PRECISION" = "w8a16" ]; then
|
| 165 |
+
MODEL_FILE="RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq"
|
| 166 |
DECODE_BATCH=4
|
| 167 |
CHUNK_SIZE=512
|
| 168 |
else
|
| 169 |
+
MODEL_FILE="RWKV7-Pi-7.2B-v0.2.pth"
|
| 170 |
DECODE_BATCH=16
|
| 171 |
CHUNK_SIZE=1024
|
| 172 |
fi
|
|
|
|
| 248 |
RWKV_EPOCH_BUDGET_TOKENS=9600
|
| 249 |
RWKV_EPOCH_KEEP_RECENT_PAIRS=3
|
| 250 |
RWKV_EPOCH_MAX_RESULT_TOKENS=2000
|
| 251 |
+
RWKV_EDIT_MODE=line
|
| 252 |
+
RWKV_TEMPERATURE=0.5
|
| 253 |
+
RWKV_TOP_P=0.7
|
| 254 |
+
RWKV_TOP_K=65536
|
| 255 |
+
RWKV_ALPHA_PRESENCE=0.8
|
| 256 |
+
RWKV_ALPHA_FREQUENCY=0.2
|
| 257 |
+
RWKV_ALPHA_DECAY=0.996
|
| 258 |
RWKV_PLUGINS=none
|
| 259 |
RWKV_PI_DATA_ROOT=${INSTALL_DIR}/data
|
| 260 |
|
quickstart-windows.ps1
CHANGED
|
@@ -170,11 +170,11 @@ if ($LASTEXITCODE -ne 0) { throw "[ERROR] rwkv_lighting_cuda.exe --version faile
|
|
| 170 |
|
| 171 |
Write-Host "==> [3/6] Preparing RWKV-7 7.2B model weights ($Precision)..." -ForegroundColor Cyan
|
| 172 |
if ($Precision -eq "w8a16") {
|
| 173 |
-
$ModelFile = "RWKV7-Pi-7.2B-v0.
|
| 174 |
$DecodeBatch = 4
|
| 175 |
$ChunkSize = 512
|
| 176 |
} else {
|
| 177 |
-
$ModelFile = "RWKV7-Pi-7.2B-v0.
|
| 178 |
$DecodeBatch = 16
|
| 179 |
$ChunkSize = 1024
|
| 180 |
}
|
|
@@ -279,7 +279,13 @@ $EnvLines = @(
|
|
| 279 |
"RWKV_EPOCH_BUDGET_TOKENS=9600"
|
| 280 |
"RWKV_EPOCH_KEEP_RECENT_PAIRS=3"
|
| 281 |
"RWKV_EPOCH_MAX_RESULT_TOKENS=2000"
|
| 282 |
-
"RWKV_EDIT_MODE=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
"RWKV_PLUGINS=none"
|
| 284 |
"RWKV_SUBAGENT_SANDBOX=none"
|
| 285 |
"RWKV_SUBAGENT_MOUNT="
|
|
|
|
| 170 |
|
| 171 |
Write-Host "==> [3/6] Preparing RWKV-7 7.2B model weights ($Precision)..." -ForegroundColor Cyan
|
| 172 |
if ($Precision -eq "w8a16") {
|
| 173 |
+
$ModelFile = "RWKV7-Pi-7.2B-v0.2.w8a16.rwkvq"
|
| 174 |
$DecodeBatch = 4
|
| 175 |
$ChunkSize = 512
|
| 176 |
} else {
|
| 177 |
+
$ModelFile = "RWKV7-Pi-7.2B-v0.2.pth"
|
| 178 |
$DecodeBatch = 16
|
| 179 |
$ChunkSize = 1024
|
| 180 |
}
|
|
|
|
| 279 |
"RWKV_EPOCH_BUDGET_TOKENS=9600"
|
| 280 |
"RWKV_EPOCH_KEEP_RECENT_PAIRS=3"
|
| 281 |
"RWKV_EPOCH_MAX_RESULT_TOKENS=2000"
|
| 282 |
+
"RWKV_EDIT_MODE=line"
|
| 283 |
+
"RWKV_TEMPERATURE=0.5"
|
| 284 |
+
"RWKV_TOP_P=0.7"
|
| 285 |
+
"RWKV_TOP_K=65536"
|
| 286 |
+
"RWKV_ALPHA_PRESENCE=0.8"
|
| 287 |
+
"RWKV_ALPHA_FREQUENCY=0.2"
|
| 288 |
+
"RWKV_ALPHA_DECAY=0.996"
|
| 289 |
"RWKV_PLUGINS=none"
|
| 290 |
"RWKV_SUBAGENT_SANDBOX=none"
|
| 291 |
"RWKV_SUBAGENT_MOUNT="
|