Add model card
Browse files- .gitattributes +1 -1
- CHANGELOG.md +4 -2
- MANIFEST.json +13 -8
- README.md +18 -14
- SHA256SUMS +10 -10
- SHA256SUMS.release +12 -12
- config/experimental-yarn-1m.env +1 -0
- config/native-256k.env +2 -1
- docs/BENCHMARKS.md +12 -3
- docs/UBUNTU_BUILD.md +5 -3
- docs/VALIDATED_ENVIRONMENT.md +2 -2
- docs/WINDOWS_WSL2.md +1 -1
- scripts/run-common.sh +2 -0
.gitattributes
CHANGED
|
@@ -4,5 +4,5 @@
|
|
| 4 |
*.md text eol=lf
|
| 5 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 7 |
runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
Ling-3.0-Flash-CIRU-int4-Strix-native.tar.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 4 |
*.md text eol=lf
|
| 5 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gguf filter=lfs diff=lfs merge=lfs -text
|
| 8 |
runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle filter=lfs diff=lfs merge=lfs -text
|
|
|
CHANGELOG.md
CHANGED
|
@@ -58,7 +58,7 @@ Adds adapter-layout coverage for both upstream ROCm FlashAttention and vLLM Flas
|
|
| 58 |
- AITER and ROCm skinny GEMM disabled
|
| 59 |
- safe attention merge enabled
|
| 60 |
- native context 262,144 tokens
|
| 61 |
-
-
|
| 62 |
|
| 63 |
## Performance context
|
| 64 |
|
|
@@ -68,7 +68,7 @@ The final exact-shape SiLU candidate passed bitwise source fixtures and exact ou
|
|
| 68 |
|
| 69 |
## Public release packaging
|
| 70 |
|
| 71 |
-
- Reduced the native 256K default from `gpu_memory_utilization=0.75` to `0.72` while retaining `max_model_len=262144`
|
| 72 |
- Corrected the live API example to use InclusionAI's recommended Ling 3.0 Flash sampling preset: `temperature=0.6`, `top_p=0.95`, `top_k=20`, and thinking enabled. Temperature 0 is documented only as a deterministic historical benchmark condition, not a serving recommendation.
|
| 73 |
- Added the CIRU model-card artwork at `assets/ling30int4.png`.
|
| 74 |
- Added distro-aware host dependencies and portable Python 3.12 provisioning through `uv`.
|
|
@@ -77,3 +77,5 @@ The final exact-shape SiLU candidate passed bitwise source fixtures and exact ou
|
|
| 77 |
- Initially changed the public native-256K profile from `gpu_memory_utilization=0.82` to the measured `0.75` envelope used by the retained 60K benchmark; the release default was subsequently reduced to `0.72` as recorded above.
|
| 78 |
- Added the retained 60K PP/TG comparison against AtomicChat AD-IQ4_XXS and ROCmFP4 STRIX MTP, with the native row marked for a final-commit refresh.
|
| 79 |
- Fixed the ROCm MLA chunked-prefill LSE layout mismatch in runtime commit `91fab4e6d`. Focused attention tests passed 31/31 (with one unrelated CUDA-only FA4 test deselected), and the exact five-request tool-calling reproducer completed 5/5 scenarios with zero errors while the original server PID remained alive.
|
|
|
|
|
|
|
|
|
| 58 |
- AITER and ROCm skinny GEMM disabled
|
| 59 |
- safe attention merge enabled
|
| 60 |
- native context 262,144 tokens
|
| 61 |
+
- six active sequences for 256K; two for experimental 1M
|
| 62 |
|
| 63 |
## Performance context
|
| 64 |
|
|
|
|
| 68 |
|
| 69 |
## Public release packaging
|
| 70 |
|
| 71 |
+
- Reduced the native 256K default from `gpu_memory_utilization=0.75` to `0.72` while retaining `max_model_len=262144`. The profile was subsequently promoted to six active slots and `max_num_batched_tokens=8192`; the validated configuration reports a 1,457,313-token KV pool and 5.56x full-context capacity. Added an environment override for users who prefer lower memory use, plus prominent copyable instructions for the experimental 1M/two-slot profile.
|
| 72 |
- Corrected the live API example to use InclusionAI's recommended Ling 3.0 Flash sampling preset: `temperature=0.6`, `top_p=0.95`, `top_k=20`, and thinking enabled. Temperature 0 is documented only as a deterministic historical benchmark condition, not a serving recommendation.
|
| 73 |
- Added the CIRU model-card artwork at `assets/ling30int4.png`.
|
| 74 |
- Added distro-aware host dependencies and portable Python 3.12 provisioning through `uv`.
|
|
|
|
| 77 |
- Initially changed the public native-256K profile from `gpu_memory_utilization=0.82` to the measured `0.75` envelope used by the retained 60K benchmark; the release default was subsequently reduced to `0.72` as recorded above.
|
| 78 |
- Added the retained 60K PP/TG comparison against AtomicChat AD-IQ4_XXS and ROCmFP4 STRIX MTP, with the native row marked for a final-commit refresh.
|
| 79 |
- Fixed the ROCm MLA chunked-prefill LSE layout mismatch in runtime commit `91fab4e6d`. Focused attention tests passed 31/31 (with one unrelated CUDA-only FA4 test deselected), and the exact five-request tool-calling reproducer completed 5/5 scenarios with zero errors while the original server PID remained alive.
|
| 80 |
+
- Promoted the native 256K profile from five to six active sequences and fixed its scheduler budget at 8,192 batched tokens after a three-repetition C1-C6 sweep. All 18 exact-2K/256-output runs passed with zero request failures, cache reuse, preemptions, post-warmup JIT, engine restarts, or device faults. Median C6 reached PP 520.49 tok/s, aggregate TG 63.51 tok/s, and 42.60 seconds wall time; all comparable retained rows passed the 5% speed-regression guard.
|
| 81 |
+
- Pinned `max_num_batched_tokens=8192` in both packaged MTP profiles and made the common launcher default explicit. This prevents vLLM's speculative scheduler from silently choosing 2,048 and changing the measured prefill/decode overlap for users who follow the release launchers.
|
MANIFEST.json
CHANGED
|
@@ -38,8 +38,8 @@
|
|
| 38 |
"architecture": "gfx1151"
|
| 39 |
},
|
| 40 |
"profiles": {
|
| 41 |
-
"native_256k": {"max_model_len": 262144, "max_num_seqs":
|
| 42 |
-
"experimental_yarn_1m": {"max_model_len": 1048576, "max_num_seqs": 2, "gpu_memory_utilization": 0.82, "native_training": false}
|
| 43 |
},
|
| 44 |
"platforms": {
|
| 45 |
"validated": ["NixOS native Linux on gfx1151"],
|
|
@@ -55,12 +55,17 @@
|
|
| 55 |
"release_native_mtp_k1_multiple": 97.55,
|
| 56 |
"comparison_scope": "full campaign progression; starting TG8 and final TG32, not a single-variable matched A/B",
|
| 57 |
"exact_2k_k1_concurrency": {
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"
|
| 62 |
-
"
|
| 63 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
},
|
| 65 |
"rocm_mla_lse_fix_validation": {
|
| 66 |
"runtime_commit": "91fab4e6dcaa683911655630dae8a5b140a7cb91",
|
|
|
|
| 38 |
"architecture": "gfx1151"
|
| 39 |
},
|
| 40 |
"profiles": {
|
| 41 |
+
"native_256k": {"max_model_len": 262144, "max_num_seqs": 6, "max_num_batched_tokens": 8192, "gpu_memory_utilization": 0.72, "kv_pool_tokens_observed": 1457313, "full_context_concurrency_observed": 5.56},
|
| 42 |
+
"experimental_yarn_1m": {"max_model_len": 1048576, "max_num_seqs": 2, "max_num_batched_tokens": 8192, "gpu_memory_utilization": 0.82, "native_training": false}
|
| 43 |
},
|
| 44 |
"platforms": {
|
| 45 |
"validated": ["NixOS native Linux on gfx1151"],
|
|
|
|
| 55 |
"release_native_mtp_k1_multiple": 97.55,
|
| 56 |
"comparison_scope": "full campaign progression; starting TG8 and final TG32, not a single-variable matched A/B",
|
| 57 |
"exact_2k_k1_concurrency": {
|
| 58 |
+
"protocol": "exact 2048 input tokens, forced 256 output tokens, K1 MTP, unique cache salts, no prefix reuse, max_num_batched_tokens=8192",
|
| 59 |
+
"repetitions_per_concurrency": 3,
|
| 60 |
+
"all_18_runs_valid": true,
|
| 61 |
+
"no_speed_regression": true,
|
| 62 |
+
"c1": {"pp_tokens_per_second": 523.62, "aggregate_decode_tokens_per_second": 26.79, "wall_seconds": 13.45},
|
| 63 |
+
"c2": {"pp_tokens_per_second": 520.98, "aggregate_decode_tokens_per_second": 38.23, "wall_seconds": 20.86},
|
| 64 |
+
"c3": {"pp_tokens_per_second": 514.93, "aggregate_decode_tokens_per_second": 46.17, "wall_seconds": 28.08},
|
| 65 |
+
"c4": {"pp_tokens_per_second": 523.95, "aggregate_decode_tokens_per_second": 57.12, "wall_seconds": 32.91},
|
| 66 |
+
"c5": {"pp_tokens_per_second": 510.72, "aggregate_decode_tokens_per_second": 60.55, "wall_seconds": 39.67},
|
| 67 |
+
"c6": {"pp_tokens_per_second": 520.49, "aggregate_decode_tokens_per_second": 63.51, "wall_seconds": 42.60},
|
| 68 |
+
"validated_max_concurrency": 6
|
| 69 |
},
|
| 70 |
"rocm_mla_lse_fix_validation": {
|
| 71 |
"runtime_commit": "91fab4e6dcaa683911655630dae8a5b140a7cb91",
|
README.md
CHANGED
|
@@ -69,16 +69,18 @@ The largest single problem was silent selection of vLLM's ROCm skinny-GEMM path
|
|
| 69 |
|
| 70 |
### Serving results
|
| 71 |
|
| 72 |
-
On exact 2K prompts with 256 forced output tokens, K1 MTP,
|
| 73 |
|
| 74 |
-
| Concurrent requests | Aggregate prefill | Aggregate decode | Per-request decode |
|
| 75 |
-
|---:|---:|---:|---:|
|
| 76 |
-
| 1 |
|
| 77 |
-
| 2 |
|
| 78 |
-
|
|
| 79 |
-
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
-
|
| 82 |
|
| 83 |
The runtime also sustained 540.19, 550.20, and 536.13 prefill tok/s at 2K, 8K, and 16K in clean long-prefill tests on an earlier retained build; treat those rows as a floor rather than a claim measured again on the final commit. The final stack completed CIRU's 20-scenario structured tool-call suite using Ling's native parser.
|
| 84 |
|
|
@@ -104,7 +106,7 @@ The native row predates the release's final SiLU kernel commit, so this table is
|
|
| 104 |
- `scripts/download-model.sh`: downloads only the unchanged checkpoint files from this `jcbtc` repository, pinned to the verified model revision, into a parent directory or exact `--model-path`.
|
| 105 |
- `scripts/install-host-deps.sh`: distro-aware Linux/WSL host dependency installer.
|
| 106 |
- `scripts/build-vllm-gfx1151.sh`: reproducible build entry point for the pinned AMD wheel stack.
|
| 107 |
-
- `scripts/run-256k.sh`: native 256K, native-MTP K1 server profile with
|
| 108 |
- `scripts/run-1m-yarn-experimental.sh`: experimental 4x YaRN 1M profile with two active sequence slots.
|
| 109 |
- `MANIFEST.json`: machine-readable identities and scope.
|
| 110 |
|
|
@@ -144,7 +146,7 @@ the checkpoint; omit it for a runtime-only install. Use
|
|
| 144 |
|
| 145 |
The API advertises model ID `Ling-3.0-Flash-CIRU-int4-Strix-native` on `http://127.0.0.1:18081/v1`.
|
| 146 |
|
| 147 |
-
The default launcher provides the checkpoint's native 256K context (`262144` tokens),
|
| 148 |
|
| 149 |
If you do not need that much simultaneous KV-cache capacity, lower the memory fraction at launch to leave more unified memory for the operating system and other applications. For example:
|
| 150 |
|
|
@@ -155,7 +157,7 @@ MODEL_PATH="$HOME/models/Ling-3.0-Flash-CIRU-int4-Strix-native" \
|
|
| 155 |
bash scripts/run-256k.sh
|
| 156 |
```
|
| 157 |
|
| 158 |
-
Lower values reduce KV-cache capacity
|
| 159 |
|
| 160 |
For the experimental 1M profile instead:
|
| 161 |
|
|
@@ -165,7 +167,7 @@ MODEL_PATH="$HOME/models/Ling-3.0-Flash-CIRU-int4-Strix-native" \
|
|
| 165 |
bash scripts/run-1m-yarn-experimental.sh
|
| 166 |
```
|
| 167 |
|
| 168 |
-
That launcher applies a 4x YaRN extension to 1,048,576 tokens, uses `gpu_memory_utilization=0.82`, and admits two active sequences. It is not native 1M training; requests beyond two wait.
|
| 169 |
|
| 170 |
### Recommended live sampling
|
| 171 |
|
|
@@ -188,12 +190,14 @@ The exact runtime has been validated on CIRU's native-Linux NixOS Strix Halo hos
|
|
| 188 |
|
| 189 |
## Context and concurrency
|
| 190 |
|
| 191 |
-
The official checkpoint is natively configured and trained for 256K context. `run-256k.sh` uses `max_model_len=262144`, `max_num_seqs=
|
| 192 |
|
| 193 |
-
|
| 194 |
|
| 195 |
The 1M profile is an experimental 4x YaRN extension, not native 1M training. It uses `max_model_len=1048576`, `max_num_seqs=2`, and `gpu_memory_utilization=0.82`; further requests wait in the vLLM scheduler.
|
| 196 |
|
|
|
|
|
|
|
| 197 |
## Does this work for other W4A16 models?
|
| 198 |
|
| 199 |
The fork remains a vLLM runtime and safely falls back to upstream paths when its guards do not match, but the measured speedups are mostly Ling-specific:
|
|
|
|
| 69 |
|
| 70 |
### Serving results
|
| 71 |
|
| 72 |
+
On exact 2K prompts with 256 forced output tokens, K1 MTP, simultaneous bursts, unique cache salts, and no prefix reuse, the released 256K/0.72/six-slot profile produced these medians across three measured repetitions:
|
| 73 |
|
| 74 |
+
| Concurrent requests | Aggregate prefill | Aggregate decode | Per-request decode | Wall time |
|
| 75 |
+
|---:|---:|---:|---:|---:|
|
| 76 |
+
| 1 | 523.62 tok/s | 26.79 tok/s | 26.77 tok/s | 13.45 s |
|
| 77 |
+
| 2 | 520.98 tok/s | 38.23 tok/s | 19.30 tok/s | 20.86 s |
|
| 78 |
+
| 3 | 514.93 tok/s | 46.17 tok/s | 15.79 tok/s | 28.08 s |
|
| 79 |
+
| 4 | 523.95 tok/s | 57.12 tok/s | 14.74 tok/s | 32.91 s |
|
| 80 |
+
| 5 | 510.72 tok/s | 60.55 tok/s | 12.94 tok/s | 39.67 s |
|
| 81 |
+
| 6 | 520.49 tok/s | **63.51 tok/s** | 13.01 tok/s | 42.60 s |
|
| 82 |
|
| 83 |
+
All 18 measured runs were valid, with zero request failures, cache reuse, preemptions, post-warmup JIT, engine restarts, or device faults. Against the retained matched C1/C2/C4/C5 rows, every PP, TG, and wall result stayed within the 5% regression guard; PP improved at all four comparable concurrency levels. `max_num_batched_tokens=8192` is part of this protocol and the packaged profile.
|
| 84 |
|
| 85 |
The runtime also sustained 540.19, 550.20, and 536.13 prefill tok/s at 2K, 8K, and 16K in clean long-prefill tests on an earlier retained build; treat those rows as a floor rather than a claim measured again on the final commit. The final stack completed CIRU's 20-scenario structured tool-call suite using Ling's native parser.
|
| 86 |
|
|
|
|
| 106 |
- `scripts/download-model.sh`: downloads only the unchanged checkpoint files from this `jcbtc` repository, pinned to the verified model revision, into a parent directory or exact `--model-path`.
|
| 107 |
- `scripts/install-host-deps.sh`: distro-aware Linux/WSL host dependency installer.
|
| 108 |
- `scripts/build-vllm-gfx1151.sh`: reproducible build entry point for the pinned AMD wheel stack.
|
| 109 |
+
- `scripts/run-256k.sh`: native 256K, native-MTP K1 server profile with six active sequence slots.
|
| 110 |
- `scripts/run-1m-yarn-experimental.sh`: experimental 4x YaRN 1M profile with two active sequence slots.
|
| 111 |
- `MANIFEST.json`: machine-readable identities and scope.
|
| 112 |
|
|
|
|
| 146 |
|
| 147 |
The API advertises model ID `Ling-3.0-Flash-CIRU-int4-Strix-native` on `http://127.0.0.1:18081/v1`.
|
| 148 |
|
| 149 |
+
The default launcher provides the checkpoint's native 256K context (`262144` tokens), six active sequence slots, `gpu_memory_utilization=0.72`, and `max_num_batched_tokens=8192`. Requests beyond six wait in vLLM's scheduler.
|
| 150 |
|
| 151 |
If you do not need that much simultaneous KV-cache capacity, lower the memory fraction at launch to leave more unified memory for the operating system and other applications. For example:
|
| 152 |
|
|
|
|
| 157 |
bash scripts/run-256k.sh
|
| 158 |
```
|
| 159 |
|
| 160 |
+
Lower values reduce KV-cache capacity. Even at the packaged 0.72 setting, six requests cannot all occupy the full 256K limit simultaneously; verify the reported KV-cache capacity at startup for your workload and host.
|
| 161 |
|
| 162 |
For the experimental 1M profile instead:
|
| 163 |
|
|
|
|
| 167 |
bash scripts/run-1m-yarn-experimental.sh
|
| 168 |
```
|
| 169 |
|
| 170 |
+
That launcher applies a 4x YaRN extension to 1,048,576 tokens, uses `gpu_memory_utilization=0.82`, pins `max_num_batched_tokens=8192`, and admits two active sequences. It is not native 1M training; requests beyond two wait.
|
| 171 |
|
| 172 |
### Recommended live sampling
|
| 173 |
|
|
|
|
| 190 |
|
| 191 |
## Context and concurrency
|
| 192 |
|
| 193 |
+
The official checkpoint is natively configured and trained for 256K context. `run-256k.sh` uses `max_model_len=262144`, `max_num_seqs=6`, `gpu_memory_utilization=0.72`, and `max_num_batched_tokens=8192`. On CIRU's 128 GB Strix Halo host, the validated profile reported a 1,457,313-token KV pool, or 5.56 full 262,144-token contexts.
|
| 194 |
|
| 195 |
+
Six is the packaged and validated active-request setting. The earlier MLA accumulator failure was root-caused to ROCm upstream FlashAttention returning LSE as `[tokens, heads]` while vLLM's chunk accumulator requires `[heads, tokens]`; it was not caused by a request occupying “slot 5.” Runtime commit `91fab4e6d` normalizes that adapter output. A guarded three-repetition C1-C6 sweep then passed all 18 measured runs, and a separate production-profile C6 smoke passed 6/6 requests without restarting the server. Six active requests work, but the 5.56x full-context KV pool means six requests cannot all hold 256K tokens simultaneously. Requests beyond six wait in vLLM's scheduler.
|
| 196 |
|
| 197 |
The 1M profile is an experimental 4x YaRN extension, not native 1M training. It uses `max_model_len=1048576`, `max_num_seqs=2`, and `gpu_memory_utilization=0.82`; further requests wait in the vLLM scheduler.
|
| 198 |
|
| 199 |
+
Keep `max_num_batched_tokens=8192` when launching either packaged MTP profile. If this value is omitted, vLLM may select a 2,048-token speculative-decoding scheduler budget and only report the choice in its startup log. That setting is functional, but it changes prefill/decode overlap and produced materially lower aggregate TG under the same C1-C6 protocol. Both packaged launchers pin 8,192; users constructing their own `vllm serve` command should pass `--max-num-batched-tokens 8192` explicitly.
|
| 200 |
+
|
| 201 |
## Does this work for other W4A16 models?
|
| 202 |
|
| 203 |
The fork remains a vLLM runtime and safely falls back to upstream paths when its guards do not match, but the measured speedups are mostly Ling-specific:
|
SHA256SUMS
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
7b77dda00cc6bd6d0ce15f7c055f9e997f56e1cf1709c61cca5a57283ce3f008 .gitattributes
|
| 2 |
411ac21b4849cb3bf65f84a55263550dcd658e0623c2b117233ba1fced1c17ff assets/ling30int4.png
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
e7128cfb97cfac9d144cb999a45b7506c612a8678cfec7f292e00a23ebb8ca8d install.sh
|
| 11 |
-
|
| 12 |
-
|
| 13 |
a14fcd3747829be98a73a453057bd451a492d87a236c2affcf57db1cbbf18386 runtime/COMMITS.txt
|
| 14 |
9cbcbbef5e113e22b753801ee141bd877b20c84f25f15cc159d0ae508aaf4324 runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle
|
| 15 |
c0c1446ea2c7334ef8b888f3104ec660d2ab41d2cb08bb9d90a3f589dba040e8 runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.patch
|
|
@@ -19,4 +19,4 @@ e6e987937ae4cb544b0aa9b3c90c29acd99c0a9bb8569d42bc95ea7169be245e scripts/downlo
|
|
| 19 |
8142ef953e2c9618df885756eb897303e6443a4d139a09fe9a882c80d054f466 scripts/install-host-deps.sh
|
| 20 |
27d3cfba9f4178f83cbd2d7e44db098ab69e515f76e5c98c40ac219b7b0597ca scripts/run-1m-yarn-experimental.sh
|
| 21 |
296ee94a925db5b97e21afb6ffd4ae3c0cc1c2be67af81e21350f43efaa59ead scripts/run-256k.sh
|
| 22 |
-
|
|
|
|
| 1 |
7b77dda00cc6bd6d0ce15f7c055f9e997f56e1cf1709c61cca5a57283ce3f008 .gitattributes
|
| 2 |
411ac21b4849cb3bf65f84a55263550dcd658e0623c2b117233ba1fced1c17ff assets/ling30int4.png
|
| 3 |
+
3991c3c4d612610c09f47a284031937c58d4198307d58a151709b6f0299a23bf CHANGELOG.md
|
| 4 |
+
dbf3f912d175e69d30b9d352bb01446f231d72112181be6ba3d5b34be741a869 config/experimental-yarn-1m.env
|
| 5 |
+
725bb450e9df2f76bc34604ec6c08c55aa7e19034f244e76a6cc57d0b9ebcbaa config/native-256k.env
|
| 6 |
+
c9fb6ed33fa8f98e1c4969f5e06118836da733f719b24f7a95a5a48bcb85b3f6 docs/BENCHMARKS.md
|
| 7 |
+
e324d8632e9e68ba5197c872f59dff73d5746329d9f75b13276db89abd00efcd docs/UBUNTU_BUILD.md
|
| 8 |
+
cb071718556c99c46e7168e02a6ed645daaad0d078f96d9d948217e261a30e4d docs/VALIDATED_ENVIRONMENT.md
|
| 9 |
+
d6865f2006ad668e0f821c9647a3ad9a412a08d7e8a18e166302a491dfa75298 docs/WINDOWS_WSL2.md
|
| 10 |
e7128cfb97cfac9d144cb999a45b7506c612a8678cfec7f292e00a23ebb8ca8d install.sh
|
| 11 |
+
329a60c19d1e87fcf0c8bbe87600584be66355a9a317f84fe3cbc94704496735 MANIFEST.json
|
| 12 |
+
edec15f08196cba3b1c31e43387a7ad271c40a4ad0580156c9383385485832b0 README.md
|
| 13 |
a14fcd3747829be98a73a453057bd451a492d87a236c2affcf57db1cbbf18386 runtime/COMMITS.txt
|
| 14 |
9cbcbbef5e113e22b753801ee141bd877b20c84f25f15cc159d0ae508aaf4324 runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle
|
| 15 |
c0c1446ea2c7334ef8b888f3104ec660d2ab41d2cb08bb9d90a3f589dba040e8 runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.patch
|
|
|
|
| 19 |
8142ef953e2c9618df885756eb897303e6443a4d139a09fe9a882c80d054f466 scripts/install-host-deps.sh
|
| 20 |
27d3cfba9f4178f83cbd2d7e44db098ab69e515f76e5c98c40ac219b7b0597ca scripts/run-1m-yarn-experimental.sh
|
| 21 |
296ee94a925db5b97e21afb6ffd4ae3c0cc1c2be67af81e21350f43efaa59ead scripts/run-256k.sh
|
| 22 |
+
55b6c8ec3db95f1413c6be166d683eaee8b4814e227ae156dcc3709ad3762c9b scripts/run-common.sh
|
SHA256SUMS.release
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
|
| 2 |
7b77dda00cc6bd6d0ce15f7c055f9e997f56e1cf1709c61cca5a57283ce3f008 ./Ling-3.0-Flash-CIRU-int4-Strix-native/.gitattributes
|
| 3 |
411ac21b4849cb3bf65f84a55263550dcd658e0623c2b117233ba1fced1c17ff ./Ling-3.0-Flash-CIRU-int4-Strix-native/assets/ling30int4.png
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
e7128cfb97cfac9d144cb999a45b7506c612a8678cfec7f292e00a23ebb8ca8d ./Ling-3.0-Flash-CIRU-int4-Strix-native/install.sh
|
| 12 |
-
|
| 13 |
-
|
| 14 |
a14fcd3747829be98a73a453057bd451a492d87a236c2affcf57db1cbbf18386 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/COMMITS.txt
|
| 15 |
9cbcbbef5e113e22b753801ee141bd877b20c84f25f15cc159d0ae508aaf4324 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle
|
| 16 |
c0c1446ea2c7334ef8b888f3104ec660d2ab41d2cb08bb9d90a3f589dba040e8 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.patch
|
|
@@ -20,5 +20,5 @@ e6e987937ae4cb544b0aa9b3c90c29acd99c0a9bb8569d42bc95ea7169be245e ./Ling-3.0-Fla
|
|
| 20 |
8142ef953e2c9618df885756eb897303e6443a4d139a09fe9a882c80d054f466 ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/install-host-deps.sh
|
| 21 |
27d3cfba9f4178f83cbd2d7e44db098ab69e515f76e5c98c40ac219b7b0597ca ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/run-1m-yarn-experimental.sh
|
| 22 |
296ee94a925db5b97e21afb6ffd4ae3c0cc1c2be67af81e21350f43efaa59ead ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/run-256k.sh
|
| 23 |
-
|
| 24 |
-
|
|
|
|
| 1 |
+
858508b95552a0c2a8588ef7a3ef40d57b6f8cdce07ed6395c74ef5ea4fcde91 ./Ling-3.0-Flash-CIRU-int4-Strix-native.tar.gz
|
| 2 |
7b77dda00cc6bd6d0ce15f7c055f9e997f56e1cf1709c61cca5a57283ce3f008 ./Ling-3.0-Flash-CIRU-int4-Strix-native/.gitattributes
|
| 3 |
411ac21b4849cb3bf65f84a55263550dcd658e0623c2b117233ba1fced1c17ff ./Ling-3.0-Flash-CIRU-int4-Strix-native/assets/ling30int4.png
|
| 4 |
+
3991c3c4d612610c09f47a284031937c58d4198307d58a151709b6f0299a23bf ./Ling-3.0-Flash-CIRU-int4-Strix-native/CHANGELOG.md
|
| 5 |
+
dbf3f912d175e69d30b9d352bb01446f231d72112181be6ba3d5b34be741a869 ./Ling-3.0-Flash-CIRU-int4-Strix-native/config/experimental-yarn-1m.env
|
| 6 |
+
725bb450e9df2f76bc34604ec6c08c55aa7e19034f244e76a6cc57d0b9ebcbaa ./Ling-3.0-Flash-CIRU-int4-Strix-native/config/native-256k.env
|
| 7 |
+
c9fb6ed33fa8f98e1c4969f5e06118836da733f719b24f7a95a5a48bcb85b3f6 ./Ling-3.0-Flash-CIRU-int4-Strix-native/docs/BENCHMARKS.md
|
| 8 |
+
e324d8632e9e68ba5197c872f59dff73d5746329d9f75b13276db89abd00efcd ./Ling-3.0-Flash-CIRU-int4-Strix-native/docs/UBUNTU_BUILD.md
|
| 9 |
+
cb071718556c99c46e7168e02a6ed645daaad0d078f96d9d948217e261a30e4d ./Ling-3.0-Flash-CIRU-int4-Strix-native/docs/VALIDATED_ENVIRONMENT.md
|
| 10 |
+
d6865f2006ad668e0f821c9647a3ad9a412a08d7e8a18e166302a491dfa75298 ./Ling-3.0-Flash-CIRU-int4-Strix-native/docs/WINDOWS_WSL2.md
|
| 11 |
e7128cfb97cfac9d144cb999a45b7506c612a8678cfec7f292e00a23ebb8ca8d ./Ling-3.0-Flash-CIRU-int4-Strix-native/install.sh
|
| 12 |
+
329a60c19d1e87fcf0c8bbe87600584be66355a9a317f84fe3cbc94704496735 ./Ling-3.0-Flash-CIRU-int4-Strix-native/MANIFEST.json
|
| 13 |
+
edec15f08196cba3b1c31e43387a7ad271c40a4ad0580156c9383385485832b0 ./Ling-3.0-Flash-CIRU-int4-Strix-native/README.md
|
| 14 |
a14fcd3747829be98a73a453057bd451a492d87a236c2affcf57db1cbbf18386 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/COMMITS.txt
|
| 15 |
9cbcbbef5e113e22b753801ee141bd877b20c84f25f15cc159d0ae508aaf4324 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.bundle
|
| 16 |
c0c1446ea2c7334ef8b888f3104ec660d2ab41d2cb08bb9d90a3f589dba040e8 ./Ling-3.0-Flash-CIRU-int4-Strix-native/runtime/Ling-3.0-Flash-CIRU-int4-Strix-native-vllm.patch
|
|
|
|
| 20 |
8142ef953e2c9618df885756eb897303e6443a4d139a09fe9a882c80d054f466 ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/install-host-deps.sh
|
| 21 |
27d3cfba9f4178f83cbd2d7e44db098ab69e515f76e5c98c40ac219b7b0597ca ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/run-1m-yarn-experimental.sh
|
| 22 |
296ee94a925db5b97e21afb6ffd4ae3c0cc1c2be67af81e21350f43efaa59ead ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/run-256k.sh
|
| 23 |
+
55b6c8ec3db95f1413c6be166d683eaee8b4814e227ae156dcc3709ad3762c9b ./Ling-3.0-Flash-CIRU-int4-Strix-native/scripts/run-common.sh
|
| 24 |
+
78aad6f35ede72dd772e5f31ab3d84290795c20f17fe65703bb8b7e4b7defada ./Ling-3.0-Flash-CIRU-int4-Strix-native/SHA256SUMS
|
config/experimental-yarn-1m.env
CHANGED
|
@@ -2,5 +2,6 @@ MODEL_ID=Ling-3.0-Flash-CIRU-int4-Strix-native
|
|
| 2 |
CONTEXT_LENGTH=1048576
|
| 3 |
MAX_NUM_SEQS=2
|
| 4 |
GPU_MEMORY_UTILIZATION=${GPU_MEMORY_UTILIZATION:-0.82}
|
|
|
|
| 5 |
SPECULATIVE_TOKENS=1
|
| 6 |
HF_OVERRIDES='{"max_position_embeddings":1048576,"rope_scaling":{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":262144}}'
|
|
|
|
| 2 |
CONTEXT_LENGTH=1048576
|
| 3 |
MAX_NUM_SEQS=2
|
| 4 |
GPU_MEMORY_UTILIZATION=${GPU_MEMORY_UTILIZATION:-0.82}
|
| 5 |
+
MAX_NUM_BATCHED_TOKENS=${MAX_NUM_BATCHED_TOKENS:-8192}
|
| 6 |
SPECULATIVE_TOKENS=1
|
| 7 |
HF_OVERRIDES='{"max_position_embeddings":1048576,"rope_scaling":{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":262144}}'
|
config/native-256k.env
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
MODEL_ID=Ling-3.0-Flash-CIRU-int4-Strix-native
|
| 2 |
CONTEXT_LENGTH=262144
|
| 3 |
-
MAX_NUM_SEQS=
|
| 4 |
GPU_MEMORY_UTILIZATION=${GPU_MEMORY_UTILIZATION:-0.72}
|
|
|
|
| 5 |
SPECULATIVE_TOKENS=1
|
|
|
|
| 1 |
MODEL_ID=Ling-3.0-Flash-CIRU-int4-Strix-native
|
| 2 |
CONTEXT_LENGTH=262144
|
| 3 |
+
MAX_NUM_SEQS=6
|
| 4 |
GPU_MEMORY_UTILIZATION=${GPU_MEMORY_UTILIZATION:-0.72}
|
| 5 |
+
MAX_NUM_BATCHED_TOKENS=${MAX_NUM_BATCHED_TOKENS:-8192}
|
| 6 |
SPECULATIVE_TOKENS=1
|
docs/BENCHMARKS.md
CHANGED
|
@@ -24,7 +24,16 @@ The native 60K row was measured at CIRU runtime commit `fabbc7e928dfa64c29dcdf0f
|
|
| 24 |
|
| 25 |
- Strict final-commit single-request K1 TG32 median: **26.2343 tok/s**.
|
| 26 |
- Highest individual strict final-commit TG32 row: **26.2445 tok/s**.
|
| 27 |
-
- Exact-2K C1 serving sweep: **26.33 tok/s** aggregate decode.
|
| 28 |
-
- Exact-2K C5 serving sweep: **62.16 tok/s** aggregate decode, or 14.40 tok/s per request.
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
- Strict final-commit single-request K1 TG32 median: **26.2343 tok/s**.
|
| 26 |
- Highest individual strict final-commit TG32 row: **26.2445 tok/s**.
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
The released 256K/0.72/six-slot profile was measured with exact 2,048-token prompts, exactly 256 forced output tokens, K1 MTP, temperature 0 as a benchmark control, EOS ignored, unique cache salts, no prefix reuse, and `max_num_batched_tokens=8192`. Values are medians of three repetitions.
|
| 29 |
+
|
| 30 |
+
| Concurrency | PP | Aggregate TG | Per-request TG | Wall time |
|
| 31 |
+
|---:|---:|---:|---:|---:|
|
| 32 |
+
| C1 | 523.62 tok/s | 26.79 tok/s | 26.77 tok/s | 13.45 s |
|
| 33 |
+
| C2 | 520.98 tok/s | 38.23 tok/s | 19.30 tok/s | 20.86 s |
|
| 34 |
+
| C3 | 514.93 tok/s | 46.17 tok/s | 15.79 tok/s | 28.08 s |
|
| 35 |
+
| C4 | 523.95 tok/s | 57.12 tok/s | 14.74 tok/s | 32.91 s |
|
| 36 |
+
| C5 | 510.72 tok/s | 60.55 tok/s | 12.94 tok/s | 39.67 s |
|
| 37 |
+
| C6 | 520.49 tok/s | **63.51 tok/s** | 13.01 tok/s | 42.60 s |
|
| 38 |
+
|
| 39 |
+
All 18 runs completed with exact token counts and zero request failures, cache hits, preemptions, post-warmup JIT, engine restarts, or device faults. C1/C2/C4/C5 stayed within a 5% PP/TG/wall regression guard against the retained matched sweep. Use 26.23 tok/s as the strict single-request optimization headline and 63.51 tok/s only when explicitly labeled six-request aggregate throughput.
|
docs/UBUNTU_BUILD.md
CHANGED
|
@@ -137,9 +137,9 @@ curl -fsS http://127.0.0.1:18081/v1/chat/completions \
|
|
| 137 |
|
| 138 |
Those are InclusionAI's recommended Ling 3.0 Flash live-generation settings: `temperature=0.6`, `top_p=0.95`, `top_k=20`, with thinking enabled for better performance. Do not use the benchmark-only temperature-zero setting as the default serving preset.
|
| 139 |
|
| 140 |
-
The native profile defaults to `gpu_memory_utilization=0.72`, native 262,144-token context, K1 MTP, and at most
|
| 141 |
|
| 142 |
-
To leave more unified memory available when
|
| 143 |
|
| 144 |
To launch the separate experimental 1M/two-slot profile, keep the same `VENV` and `MODEL_PATH` values and run:
|
| 145 |
|
|
@@ -149,7 +149,9 @@ MODEL_PATH="$HOME/models/Ling-3.0-Flash-CIRU-int4-Strix-native" \
|
|
| 149 |
bash scripts/run-1m-yarn-experimental.sh
|
| 150 |
```
|
| 151 |
|
| 152 |
-
This uses a 4x YaRN extension, `max_model_len=1048576`, `max_num_seqs=2`, and `gpu_memory_utilization=0.82`. It is experimental extended context, not native 1M training.
|
|
|
|
|
|
|
| 153 |
|
| 154 |
## Portability status
|
| 155 |
|
|
|
|
| 137 |
|
| 138 |
Those are InclusionAI's recommended Ling 3.0 Flash live-generation settings: `temperature=0.6`, `top_p=0.95`, `top_k=20`, with thinking enabled for better performance. Do not use the benchmark-only temperature-zero setting as the default serving preset.
|
| 139 |
|
| 140 |
+
The native profile defaults to `gpu_memory_utilization=0.72`, native 262,144-token context, K1 MTP, `max_num_batched_tokens=8192`, and at most six active requests. On CIRU, this setting exposed a 1,457,313-token KV pool, or 5.56 full native-context requests. Six active short/aggregate-context requests were validated; six requests cannot all hold the full 256K limit simultaneously. Extra requests wait in vLLM's scheduler.
|
| 141 |
|
| 142 |
+
To leave more unified memory available when the packaged KV capacity is unnecessary, override the fraction at launch. For example, prepend `GPU_MEMORY_UTILIZATION=0.70` to the launch command. Lowering it shrinks the KV cache, so check vLLM's startup capacity report for your workload.
|
| 143 |
|
| 144 |
To launch the separate experimental 1M/two-slot profile, keep the same `VENV` and `MODEL_PATH` values and run:
|
| 145 |
|
|
|
|
| 149 |
bash scripts/run-1m-yarn-experimental.sh
|
| 150 |
```
|
| 151 |
|
| 152 |
+
This uses a 4x YaRN extension, `max_model_len=1048576`, `max_num_seqs=2`, `max_num_batched_tokens=8192`, and `gpu_memory_utilization=0.82`. It is experimental extended context, not native 1M training.
|
| 153 |
+
|
| 154 |
+
Do not omit the 8,192-token scheduler budget when rewriting the launch command by hand. With MTP/speculative decoding, vLLM may otherwise select 2,048 and disclose it only in the startup log; that changes prefill/decode overlap and can reduce aggregate TG. The packaged 256K and 1M launchers both pass `--max-num-batched-tokens 8192` explicitly.
|
| 155 |
|
| 156 |
## Portability status
|
| 157 |
|
docs/VALIDATED_ENVIRONMENT.md
CHANGED
|
@@ -32,8 +32,8 @@
|
|
| 32 |
|
| 33 |
The Ubuntu/Debian, Fedora, Arch, and Windows/WSL build paths in this package are portability candidates and have not yet been clean-host validated by CIRU.
|
| 34 |
|
| 35 |
-
The published native-256K launcher defaults to `gpu_memory_utilization=0.72`, `max_model_len=262144`, and `
|
| 36 |
|
| 37 |
-
The release head includes a ROCm MLA adapter fix that normalizes upstream FlashAttention LSE output to vLLM's head-first accumulator contract. Focused attention coverage passed 31 tests, with one unrelated CUDA-only FA4 test deliberately deselected. The exact heterogeneous five-request
|
| 38 |
|
| 39 |
The retained 60K+512 benchmark was measured earlier at `gpu_memory_utilization=0.75`; that historical measurement completed without faults but left only about 2 GiB of available system memory at peak. Its result is not relabeled as a 0.72 measurement.
|
|
|
|
| 32 |
|
| 33 |
The Ubuntu/Debian, Fedora, Arch, and Windows/WSL build paths in this package are portability candidates and have not yet been clean-host validated by CIRU.
|
| 34 |
|
| 35 |
+
The published native-256K launcher defaults to `gpu_memory_utilization=0.72`, `max_model_len=262144`, `max_num_seqs=6`, and `max_num_batched_tokens=8192`. The validated CIRU profile exposed a 1,457,313-token KV pool and reported 5.56x maximum concurrency at the full native context. Six active short/aggregate-context requests are supported, but six requests cannot all hold the complete 256K limit simultaneously. Users who do not need that KV-cache capacity can lower the memory fraction to leave more unified memory free.
|
| 36 |
|
| 37 |
+
The release head includes a ROCm MLA adapter fix that normalizes upstream FlashAttention LSE output to vLLM's head-first accumulator contract. Focused attention coverage passed 31 tests, with one unrelated CUDA-only FA4 test deliberately deselected. The exact heterogeneous five-request reproducer passed 5/5 after the fix. A later three-repetition exact-2K/256-output C1-C6 sweep passed all 18 measured runs with no errors, preemptions, post-warmup JIT, engine restart, or speed regression; the production profile also passed a separate C6 smoke 6/6.
|
| 38 |
|
| 39 |
The retained 60K+512 benchmark was measured earlier at `gpu_memory_utilization=0.75`; that historical measurement completed without faults but left only about 2 GiB of available system memory at peak. Its result is not relabeled as a 0.72 measurement.
|
docs/WINDOWS_WSL2.md
CHANGED
|
@@ -76,7 +76,7 @@ MODEL_PATH="$HOME/models/Ling-3.0-Flash-CIRU-int4-Strix-native" \
|
|
| 76 |
bash scripts/run-256k.sh
|
| 77 |
```
|
| 78 |
|
| 79 |
-
This defaults to native 256K context,
|
| 80 |
|
| 81 |
For the experimental 1M/two-slot 4x YaRN profile, use the same paths with `bash scripts/run-1m-yarn-experimental.sh`. That profile defaults to `gpu_memory_utilization=0.82`, so it needs substantially more WSL memory headroom and is not native 1M training.
|
| 82 |
|
|
|
|
| 76 |
bash scripts/run-256k.sh
|
| 77 |
```
|
| 78 |
|
| 79 |
+
This defaults to native 256K context, six active slots, `max_num_batched_tokens=8192`, and `gpu_memory_utilization=0.72`. Six active requests do not imply that six requests can each hold the full 256K context simultaneously. If you do not need the packaged KV-cache envelope, prepend a lower value such as `GPU_MEMORY_UTILIZATION=0.70` to leave more unified memory available to Windows.
|
| 80 |
|
| 81 |
For the experimental 1M/two-slot 4x YaRN profile, use the same paths with `bash scripts/run-1m-yarn-experimental.sh`. That profile defaults to `gpu_memory_utilization=0.82`, so it needs substantially more WSL memory headroom and is not native 1M training.
|
| 82 |
|
scripts/run-common.sh
CHANGED
|
@@ -7,6 +7,7 @@ model_path="${MODEL_PATH:?Set MODEL_PATH to the downloaded checkpoint directory}
|
|
| 7 |
host="${HOST:-127.0.0.1}"
|
| 8 |
port="${PORT:-18081}"
|
| 9 |
cache_root="${CACHE_ROOT:-$HOME/.cache/ciru-ling3-vllm}"
|
|
|
|
| 10 |
|
| 11 |
if [ ! -x "$venv/bin/python" ]; then
|
| 12 |
printf 'Runtime virtual environment is missing Python: %s\n' \
|
|
@@ -78,6 +79,7 @@ args=(
|
|
| 78 |
--reasoning-parser ling3
|
| 79 |
--max-model-len "$CONTEXT_LENGTH"
|
| 80 |
--max-num-seqs "$MAX_NUM_SEQS"
|
|
|
|
| 81 |
--gpu-memory-utilization "$GPU_MEMORY_UTILIZATION"
|
| 82 |
--compilation-config '{"mode":3,"cudagraph_mode":"NONE","compile_sizes":[1,2]}'
|
| 83 |
--speculative-config "{\"method\":\"mtp\",\"num_speculative_tokens\":$SPECULATIVE_TOKENS}"
|
|
|
|
| 7 |
host="${HOST:-127.0.0.1}"
|
| 8 |
port="${PORT:-18081}"
|
| 9 |
cache_root="${CACHE_ROOT:-$HOME/.cache/ciru-ling3-vllm}"
|
| 10 |
+
max_num_batched_tokens="${MAX_NUM_BATCHED_TOKENS:-8192}"
|
| 11 |
|
| 12 |
if [ ! -x "$venv/bin/python" ]; then
|
| 13 |
printf 'Runtime virtual environment is missing Python: %s\n' \
|
|
|
|
| 79 |
--reasoning-parser ling3
|
| 80 |
--max-model-len "$CONTEXT_LENGTH"
|
| 81 |
--max-num-seqs "$MAX_NUM_SEQS"
|
| 82 |
+
--max-num-batched-tokens "$max_num_batched_tokens"
|
| 83 |
--gpu-memory-utilization "$GPU_MEMORY_UTILIZATION"
|
| 84 |
--compilation-config '{"mode":3,"cudagraph_mode":"NONE","compile_sizes":[1,2]}'
|
| 85 |
--speculative-config "{\"method\":\"mtp\",\"num_speculative_tokens\":$SPECULATIVE_TOKENS}"
|