|
| 1 | +base: |
| 2 | + schema: 2 |
| 3 | + name: kimik3.1-fp4-mi355x-tokenspeed-agentic-dspark |
| 4 | + identity: |
| 5 | + model: |
| 6 | + revision: d9e99b0792a5e93b78ea9bea62a68167e36ddd9e |
| 7 | + container: {} |
| 8 | + frameworks: |
| 9 | + tokenspeed: 0.1.1.post20261119 |
| 10 | + tokenspeed-kernel: 0.1.5.post20261119 |
| 11 | + tokenspeed-kernel-amd: 0.1.4.post20261119 |
| 12 | + tokenspeed-scheduler: 0.1.58 |
| 13 | + tokenspeed-engine: 0.1.1.post20261119 |
| 14 | + resources: |
| 15 | + gpu_type: mi355x |
| 16 | + gpus_per_node: 8 |
| 17 | + observability: |
| 18 | + enabled: false |
| 19 | + tachometer: |
| 20 | + enabled: false |
| 21 | + # Up to two hours to load the 1.56 TB checkpoint, capture graphs and compile the first kernels. |
| 22 | + health_check: |
| 23 | + max_attempts: 720 |
| 24 | + interval_seconds: 10 |
| 25 | + frontend: |
| 26 | + type: smg |
| 27 | + enable_multiple_frontends: false |
| 28 | + # srtctl runs SMG directly: these are the gateway settings `ts serve` applies. |
| 29 | + args: |
| 30 | + reasoning-parser: passthrough |
| 31 | + tool-call-parser: passthrough |
| 32 | + policy: round_robin |
| 33 | + disable-circuit-breaker: true |
| 34 | + disable-retries: true |
| 35 | + disable-load-monitoring: true |
| 36 | + tokenizer-cache-enable-l0: true |
| 37 | + tokenizer-cache-enable-l1: true |
| 38 | + log-level: warn |
| 39 | + engine: tokenspeed |
| 40 | + setup_script: tokenspeed-nightly-rocm.sh |
| 41 | + environment: |
| 42 | + TOKENSPEED_WHEEL_URL: https://github.com/lightseekorg/whl/releases/download/tokenspeed-nightly-v0.1.1.post20261119/tokenspeed-0.1.1.post20261119-py3-none-any.whl#sha256=a50cc6aca1e6dec22c14a914d9e593b5f6490b44ee26062f75718b6591dc69c4 |
| 43 | + TOKENSPEED_KERNEL_WHEEL_URL: https://github.com/lightseekorg/whl/releases/download/tokenspeed-kernel-nightly-v0.1.5.post20261119-rocm72/tokenspeed_kernel-0.1.5.post20261119-cp312-cp312-manylinux_2_28_x86_64.whl#sha256=0d045c1bfeafa1e1118606a511cd7fb2195dbc693d335d93a0273678f5d36523 |
| 44 | + TOKENSPEED_KERNEL_AMD_WHEEL_URL: https://github.com/lightseekorg/whl/releases/download/tokenspeed-kernel-amd-nightly-v0.1.4.post20261119/tokenspeed_kernel_amd-0.1.4.post20261119-py3-none-any.whl#sha256=cfb38b114f4a1ccb75e36f2dc0ae407c7be25844d21b4bd66754cb87eea83334 |
| 45 | + TOKENSPEED_SCHEDULER_VERSION: 0.1.58 |
| 46 | + TOKENSPEED_ENGINE_WHEEL_URL: https://github.com/lightseekorg/whl/releases/download/tokenspeed-engine-v0.1.1.post20261119/tokenspeed_engine-0.1.1.post20261119-cp312-abi3-manylinux_2_28_x86_64.whl#sha256=2034d53a09fd05667d297cf0f960c94383954087da9b2dd3976b2ae2c0d7e401 |
| 47 | + roles: |
| 48 | + agg: |
| 49 | + nodes: 1 |
| 50 | + workers: 1 |
| 51 | + gpus: 8 |
| 52 | + env: |
| 53 | + GPU_MAX_HW_QUEUES: '2' |
| 54 | + PYTHONNOUSERSITE: '1' |
| 55 | + # Pinned Host L2 comes from hipHostMalloc's GTT pool; registering pageable memory |
| 56 | + # pins it page by page and can outlast the distributed startup timeout. |
| 57 | + HSA_USERPTR_FOR_PAGED_MEM: '0' |
| 58 | + args: |
| 59 | + served-model-name: moonshotai/Kimi-K3.1-Pro |
| 60 | + revision: d9e99b0792a5e93b78ea9bea62a68167e36ddd9e |
| 61 | + trust-remote-code: true |
| 62 | + # Attention and MoE TP8; EP1 keeps every expert on every GPU. |
| 63 | + attn-tp-size: 8 |
| 64 | + data-parallel-size: 1 |
| 65 | + ep-size: 1 |
| 66 | + pipeline-parallel-size: 1 |
| 67 | + moe-backend: auto |
| 68 | + kv-cache-dtype: fp8 |
| 69 | + # The K3.1 precision policy's FP4 DSA indexer key cache. |
| 70 | + dsa-index-k-format: mxfp4 |
| 71 | + language-model-only: true |
| 72 | + max-model-len: 1048560 |
| 73 | + chunked-prefill-size: 8192 |
| 74 | + max-prefill-tokens: 8192 |
| 75 | + gpu-memory-utilization: 0.95 |
| 76 | + enable-prefix-caching: true |
| 77 | + # Host L2 per GPU; the eight GPUs' Host L2 must fit the node's GTT pool. |
| 78 | + kvstore-size: 128 |
| 79 | + reasoning-parser: passthrough |
| 80 | + drafter-attention-backend: mha |
| 81 | + speculative-algorithm: DSPARK |
| 82 | + speculative-draft-model-path: Inferact/Kimi-K3.1-Pro-DSpark |
| 83 | + speculative-draft-model-revision: e4e6e6261e9f8b6d5f249f9627eb6b109d762d5f |
| 84 | + # Drafts per step (overrides change it); the verify window adds the current token. |
| 85 | + speculative-num-steps: 5 |
| 86 | + speculative-num-draft-tokens: 6 |
| 87 | + speculative-eagle-topk: 1 |
| 88 | + # Real verification. The connector selects greedy sampling and the golden acceptance |
| 89 | + # length for synthetic throughput. |
| 90 | + sampling-backend: triton |
| 91 | + enable-speculative-sampling: true |
| 92 | + speculative-rejection-sample-method: block |
| 93 | + enable-metrics: true |
| 94 | + metrics-host: 0.0.0.0 |
| 95 | + benchmark: |
| 96 | + env: |
| 97 | + # Warmup can leave bytes unacknowledged past AIPerf's 30 s default. |
| 98 | + AIPERF_HTTP_TCP_USER_TIMEOUT: '900000' |
| 99 | + AIPERF_REQUIRED_SERVER_METRIC_PREFIX: 'tokenspeed:' |
| 100 | + |
| 101 | +override_tp8_c1: |
| 102 | + roles: |
| 103 | + agg: |
| 104 | + args: |
| 105 | + max-num-seqs: 1 |
| 106 | + max-cudagraph-capture-size: 1 |
| 107 | + cudagraph-capture-sizes: [1] |
| 108 | + disable-prefill-graph: true |
| 109 | + speculative-num-steps: 7 |
| 110 | + speculative-num-draft-tokens: 8 |
| 111 | + # No Host L2: the GPU KV pool already holds the sessions' prefixes. |
| 112 | + disable-kvstore: true |
| 113 | + kvstore-size: null |
| 114 | + benchmark: |
| 115 | + env: |
| 116 | + CONC: '1' |
| 117 | + KV_OFFLOADING: none |
| 118 | + |
| 119 | +override_tp8_c4: |
| 120 | + roles: |
| 121 | + agg: |
| 122 | + args: |
| 123 | + # Running cap below concurrency: the other sessions wait for their first token. |
| 124 | + max-num-seqs: 2 |
| 125 | + max-cudagraph-capture-size: 2 |
| 126 | + cudagraph-capture-sizes: [1, 2] |
| 127 | + disable-prefill-graph: true |
| 128 | + speculative-num-steps: 7 |
| 129 | + speculative-num-draft-tokens: 8 |
| 130 | + disable-kvstore: true |
| 131 | + kvstore-size: null |
| 132 | + benchmark: |
| 133 | + env: |
| 134 | + CONC: '4' |
| 135 | + KV_OFFLOADING: none |
| 136 | + |
| 137 | +override_tp8_dcp8_c8: |
| 138 | + roles: |
| 139 | + agg: |
| 140 | + args: |
| 141 | + max-num-seqs: 8 |
| 142 | + max-cudagraph-capture-size: 8 |
| 143 | + cudagraph-capture-sizes: [1, 2, 3, 4, 5, 6, 7, 8] |
| 144 | + # Each GPU stores one eighth of every request's KV pages and decode attends its own shard. |
| 145 | + kv-parallel-size: 8 |
| 146 | + decode-context-parallel-size: 8 |
| 147 | + prefill-graph-capture-sizes: [256, 512, 1024, 1536, 2048, 3072] |
| 148 | + prefill-graph-max-tokens: 3072 |
| 149 | + # Up to 64 decode rounds run after each prefill chunk before the next prefill round. |
| 150 | + prefill-decode-interval: 64 |
| 151 | + speculative-num-steps: 7 |
| 152 | + speculative-num-draft-tokens: 8 |
| 153 | + benchmark: |
| 154 | + env: |
| 155 | + CONC: '8' |
| 156 | + KV_OFFLOADING: dram |
| 157 | + TOTAL_CPU_DRAM_GB: '1025' |
| 158 | + |
| 159 | +override_tp8_dcp8_c16: |
| 160 | + roles: |
| 161 | + agg: |
| 162 | + args: |
| 163 | + max-num-seqs: 8 |
| 164 | + max-cudagraph-capture-size: 8 |
| 165 | + cudagraph-capture-sizes: [1, 2, 3, 4, 5, 6, 7, 8] |
| 166 | + kv-parallel-size: 8 |
| 167 | + decode-context-parallel-size: 8 |
| 168 | + prefill-graph-capture-sizes: [256, 512, 1024, 1536, 2048, 3072] |
| 169 | + prefill-graph-max-tokens: 3072 |
| 170 | + prefill-decode-interval: 80 |
| 171 | + # At least 8 decode rounds after every prefill chunk, also once a prompt waited the full interval. |
| 172 | + prefill-decode-min-interval: 8 |
| 173 | + benchmark: |
| 174 | + env: |
| 175 | + CONC: '16' |
| 176 | + KV_OFFLOADING: dram |
| 177 | + TOTAL_CPU_DRAM_GB: '1025' |
| 178 | + |
| 179 | +override_tp8_dcp8_c24: |
| 180 | + roles: |
| 181 | + agg: |
| 182 | + args: |
| 183 | + max-num-seqs: 12 |
| 184 | + max-cudagraph-capture-size: 12 |
| 185 | + cudagraph-capture-sizes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] |
| 186 | + kv-parallel-size: 8 |
| 187 | + decode-context-parallel-size: 8 |
| 188 | + prefill-graph-capture-sizes: [256, 512, 1024, 1536, 2048, 3072] |
| 189 | + prefill-graph-max-tokens: 3072 |
| 190 | + prefill-decode-interval: 64 |
| 191 | + prefill-decode-min-interval: 24 |
| 192 | + enable-short-prefill-first: true |
| 193 | + benchmark: |
| 194 | + env: |
| 195 | + CONC: '24' |
| 196 | + KV_OFFLOADING: dram |
| 197 | + TOTAL_CPU_DRAM_GB: '1025' |
| 198 | + |
| 199 | +override_tp8_dcp8_c32: |
| 200 | + roles: |
| 201 | + agg: |
| 202 | + args: |
| 203 | + max-num-seqs: 16 |
| 204 | + max-cudagraph-capture-size: 16 |
| 205 | + cudagraph-capture-sizes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] |
| 206 | + kv-parallel-size: 8 |
| 207 | + decode-context-parallel-size: 8 |
| 208 | + prefill-graph-capture-sizes: [256, 512, 1024, 1536, 2048, 3072] |
| 209 | + prefill-graph-max-tokens: 3072 |
| 210 | + prefill-decode-interval: 64 |
| 211 | + prefill-decode-min-interval: 24 |
| 212 | + enable-short-prefill-first: true |
| 213 | + enable-mixed-batch: true |
| 214 | + benchmark: |
| 215 | + env: |
| 216 | + CONC: '32' |
| 217 | + KV_OFFLOADING: dram |
| 218 | + TOTAL_CPU_DRAM_GB: '1025' |
| 219 | + |
| 220 | +override_tp8_dcp8_c48: |
| 221 | + roles: |
| 222 | + agg: |
| 223 | + args: |
| 224 | + max-num-seqs: 48 |
| 225 | + max-cudagraph-capture-size: 48 |
| 226 | + cudagraph-capture-sizes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48] |
| 227 | + kv-parallel-size: 8 |
| 228 | + decode-context-parallel-size: 8 |
| 229 | + prefill-graph-capture-sizes: [256, 512, 1024, 1536, 2048, 3072] |
| 230 | + prefill-graph-max-tokens: 3072 |
| 231 | + prefill-decode-interval: 80 |
| 232 | + prefill-decode-min-interval: 4 |
| 233 | + enable-mixed-batch: true |
| 234 | + benchmark: |
| 235 | + env: |
| 236 | + CONC: '48' |
| 237 | + KV_OFFLOADING: dram |
| 238 | + TOTAL_CPU_DRAM_GB: '1025' |
0 commit comments