Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
655ff3f
Select the DSpark golden curve for a TileRT DeepSeek-V4.1-Flash decode
CrimsonDump Nov 2, 2026
0039f7e
Add DeepSeek-V4.1-Flash FP4 MI355X TileRT AgentX disaggregated recipe
CrimsonDump Nov 3, 2026
6c839a6
Add the perf-changelog entry for dsv41flash-fp4-mi355x-tilert-agentic…
CrimsonDump Nov 3, 2026
c1f1a07
Run the DeepSeek-V4.1-Flash TileRT decode with five DSpark drafts and…
CrimsonDump Nov 3, 2026
1d870cc
Stream the TileRT decode every 2 ms instead of the 200 ms default
CrimsonDump Nov 4, 2026
65d859b
Send the board's DeepSeek-V4.1-Flash AgentX request fields (thinking,…
CrimsonDump Nov 4, 2026
2903968
Drop TILERT_DSV41_TP from the TileRT decode (TP8 is the only build)
CrimsonDump Nov 4, 2026
5acd120
Let the TileRT router render the DeepSeek-V4.1-Flash chat template an…
CrimsonDump Nov 4, 2026
6846b33
Run the DeepSeek-V4.1-Flash TileRT prefill from ghcr.io/tile-ai/tiler…
CrimsonDump Nov 5, 2026
3fd0569
Carry the DeepSeek MIT notice in the DeepSeek-V4.1-Flash TileRT chat …
CrimsonDump Nov 5, 2026
7e8ec08
Merge SemiAnalysisAI/InferenceX main into tilert/dsv41flash-mi355x
CrimsonDump Nov 5, 2026
f3e5d75
Pin the DeepSeek-V4.1-Flash TileRT decode and router image by digest
CrimsonDump Nov 5, 2026
90028a1
Pin the DeepSeek-V4.1-Flash TileRT prefill image by digest
CrimsonDump Nov 5, 2026
70b8cda
Merge remote-tracking branch 'origin/main' into tilert/dsv41flash-mi355x
CrimsonDump Nov 5, 2026
27acf74
Trim the TileRT DSpark curve selection to a one-line condition and a …
CrimsonDump Nov 5, 2026
8a303f9
Merge origin/main into tilert/dsv41flash-mi355x-upstream
Oseltamivir Nov 5, 2026
b6d0e50
Load the DeepSeek-V4.1-Flash TileRT checkpoint from the shared HF cac…
CrimsonDump Nov 5, 2026
74686c4
Merge remote-tracking branch 'origin/main' into tilert/dsv41flash-mi355x
CrimsonDump Nov 5, 2026
5f707c5
Merge remote-tracking branch 'origin/main' into tilert/dsv41flash-mi355x
CrimsonDump Nov 5, 2026
6e416e9
Read the DeepSeek-V4.1-Flash TileRT checkpoint from the shared Hub cache
Oseltamivir Nov 5, 2026
0461336
Merge the #4756 checkpoint fix (6e416e9d) into tilert/dsv41flash-mi355x
CrimsonDump Nov 5, 2026
64c3137
Merge branch 'main' into tilert/dsv41flash-mi355x-upstream
Oseltamivir Nov 5, 2026
7a93bf4
Merge #4756 head 64c3137e (main merged onto 6e416e9d) into tilert/dsv…
CrimsonDump Nov 5, 2026
d398a29
Serve the router's chat template on the DeepSeek-V4.1-Flash TileRT pr…
CrimsonDump Nov 6, 2026
c5f0c98
Merge remote-tracking branch 'origin/main' into tilert/dsv41flash-mi355x
CrimsonDump Nov 6, 2026
f9a9ae0
Merge remote-tracking branch 'origin/main' into tilert/dsv41flash-mi3…
Oseltamivir Nov 6, 2026
ca17155
Restore the DeepSeek-V4.1-Flash prefill flags; tokenize on the router…
CrimsonDump Nov 6, 2026
7e77da1
Merge remote-tracking branch 'origin/tilert/dsv41flash-mi355x-upstrea…
CrimsonDump Nov 6, 2026
9676fa2
tilert 0.1.7.post2 recipe: vLLM Rust front end and prefill CUDA graph…
CrimsonDump Nov 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
schema: 2
name: dsv41flash-mi355x-tilert-agentx
slurm:
time_limit: "08:00:00"
resources:
gpu_type: mi355x
gpus_per_node: 8
setup_script: glm5.3-tilert-rocm.sh
environment:
RDMAV_FORK_SAFE: "1"
NCCL_SOCKET_IFNAME: "@fabric.socket-ifname"
GLOO_SOCKET_IFNAME: "@fabric.socket-ifname"
NCCL_IB_HCA: "@fabric.rdma-devices"
roles:
prefill:
engine:
type: vllm
set_visible_devices: true
# The vLLM nightly's PyPI Mooncake sends cross-node writes over HIP IPC and its ionic
# provider lacks kernel ABI 4; this image carries a multi-protocol build and a newer provider.
container: ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7@sha256:8a88e2aa51105facd103217b0dc353258f3fc9368318c3bb62f0400bb8dd1ed5
nodes: 1
workers: 1
gpus: 4
env:
TILERT_ROLE: prefill
VLLM_ROCM_USE_AITER: "1"
VLLM_ROCM_USE_AITER_MOE: "1"
VLLM_ROCM_QUICK_REDUCE_QUANTIZATION: NONE
AITER_TRITON_LOG_LEVEL: ERROR
VLLM_USE_BREAKABLE_CUDAGRAPH: "1"
OMP_NUM_THREADS: "1"
PYTHONUNBUFFERED: "1"
VLLM_ENGINE_READY_TIMEOUT_S: "3600"
# Register the VRAM staging buffer with the ionic HCAs through dmabuf.
MOONCAKE_DISABLE_HIP_DMABUF: "0"
# vLLM's Rust front end (as the MI355X vLLM DeepSeek-V4.1-Flash recipes run it): parses the
# router's token-id request and returns the first token without the Python front end's
# detokenization of the whole prompt.
VLLM_USE_RUST_FRONTEND: "1"
args:
served-model-name: deepseek-ai/DeepSeek-V4.1-Flash
tensor-parallel-size: 4
language-model-only: true
tokenizer-mode: deepseek_v41
# The router reads the first token id from the prefill's logprobs; it asks for token ids per
# request (return_tokens_as_token_ids), which the Rust front end supports.
moe-backend: aiter
gpu-memory-utilization: 0.85
attention-config: '{"indexer_kv_dtype":"mxfp4","indexer_sparse_logits":true}'
block-size: 128
# The DSpark draft runs on the prefill too, so the decode receives its window state.
speculative-config: '{"method":"dspark","num_speculative_tokens":5,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":false}'
max-model-len: 1048576
max-num-batched-tokens: 32768
max-num-seqs: 1
engram-config: '{"cpu_offload":false}'
enable-prefix-caching: true
# CUDA graphs cover the prefill's step sizes too: an AgentX turn computes a few thousand new
# tokens, and in eager mode such a step is bound by launching its ~2.5K kernels.
compilation-config: '{"cudagraph_capture_sizes":[1,2,4,8,16,32,64,128,256,512,768,1024,1536,2048,3072,4096,6144,8192]}'
kv-transfer-config: >-
{"kv_connector":"DsV41TileRTConnector","kv_connector_module_path":"tilert.pd_vllm.dsv41_prefill_connector",
"kv_role":"kv_producer","kv_connector_extra_config":{
"tilert_model":"dsv41","tilert_max_seq_len":1048576,"tilert_transport":"mooncake"}}
decode:
engine: tilert
container: ghcr.io/tile-ai/tilert-rocm-decode:0.1.6@sha256:48c30d7636a561b4edf781ac3c7712e09fa9a0b2f1292863b72c2d8e4bcb492a
nodes: 1
workers: 1
gpus: 8
env:
TILERT_ROLE: decode
# The dsv41 profile lands the whole prompt KV in one receive buffer.
TILERT_PD_SHARDS: "1"
# Wake the stream on every token instead of the 200 ms default, so a short
# request's tokens are not held until it ends.
TILERT_DECODE_POLL_MS: "2"
args:
model: dsv41
# TileRT reads the Hugging Face checkpoint directly; no converted weights. The cluster
# stages no DeepSeek-V4.1-Flash checkpoint, so the job is in Hub mode and mounts nothing
# at /model: read the shared Hub cache's snapshot instead (refs/main, the revision the
# prefill's vLLM loads and the chat template is based on).
model-weights-dir: /hf_hub_cache/hub/models--deepseek-ai--DeepSeek-V4.1-Flash/snapshots/314113f8a7dadb388215396ba5fbee2c610a04d6
max-seq-len: 1048576
transport: mooncake
with-mtp: true
num-mtp: 5
frontend:
type: tilert-router
container_image: ghcr.io/tile-ai/tilert-rocm-decode:0.1.6@sha256:48c30d7636a561b4edf781ac3c7712e09fa9a0b2f1292863b72c2d8e4bcb492a
enable_multiple_frontends: false
env:
TILERT_ROLE: router
args:
parser: none
model-path: /hf_hub_cache/hub/models--deepseek-ai--DeepSeek-V4.1-Flash/snapshots/314113f8a7dadb388215396ba5fbee2c610a04d6
queue-timeout: 1800
# The router renders the chat template and tokenizes each request itself, so the prefill
# receives token ids. The template renders what vLLM's deepseek_v41 tokenizer mode renders; the
# router checks that against the prefill's /tokenize at startup and stays off otherwise.
chat-template: /configs/dsv41flash-tilert-chat-template.jinja
sbatch_directives:
cpus-per-task: "128"
mem: "0"
srun_options:
mem: "0"
container-writable: ""
container-remap-root: ""
health_check:
max_attempts: 2160
interval_seconds: 5
benchmark:
env:
TOKENIZER: /hf_hub_cache/hub/models--deepseek-ai--DeepSeek-V4.1-Flash/snapshots/314113f8a7dadb388215396ba5fbee2c610a04d6
SERVED_MODEL_NAME: deepseek-ai/DeepSeek-V4.1-Flash
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "vllm:"
# Thinking on with high effort, the regime of the golden acceptance curve.
AIPERF_EXTRA_INPUTS: '{"chat_template_kwargs":{"reasoning_effort":"high","thinking":true},"temperature":1}'
HF_HOME: /logs/hf_cache
HF_HUB_OFFLINE: ""
TRANSFORMERS_VERBOSITY: error
TOKENIZERS_PARALLELISM: "false"
31 changes: 31 additions & 0 deletions inferencex-e2e/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,37 @@ glm5.3-fp8-mi355x-tilert-agentic:
ep: 1
dp-attn: false

dsv41flash-fp4-mi355x-tilert-agentic-dspark:
image: ghcr.io/tile-ai/tilert-rocm-decode:0.1.6@sha256:48c30d7636a561b4edf781ac3c7712e09fa9a0b2f1292863b72c2d8e4bcb492a
model: deepseek-ai/DeepSeek-V4.1-Flash
model-prefix: dsv41flash
runner: cluster:mi355x-amds
precision: fp4
framework: tilert
router: { name: tilert-pd-router, version: "0.1.7.post2" }
multinode: true
disagg: true
kv-p2p-transfer: mooncake
srt-recipe-dir: dsv41flash/tilert/mi355x-fp4/agentx
scenarios:
agentic-coding:
- search-space:
- spec-decoding: "mtp"
conc-list: [1]
srt-recipe: disagg-1p1d-tp4-tp8-mtp.yaml
prefill:
num-worker: 1
tp: 4
ep: 1
dp-attn: false
additional-settings:
- "PREFILL_IMAGE=ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7@sha256:8a88e2aa51105facd103217b0dc353258f3fc9368318c3bb62f0400bb8dd1ed5"
decode:
num-worker: 1
tp: 8
ep: 1
dp-attn: false

# SGLang ROCm 10 MI35X release image. TP2/EP1 up to c32, TP4/EP1 up to c16,
# DP2 attention with TP MoE at c32 and c64 (c32 overlaps TP2). Host Engram on all.
dsv41flash-fp4-mi355x-sglang-agentic-dspark:
Expand Down
4 changes: 3 additions & 1 deletion inferencex-e2e/infx/srt_slurm/spec_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ def audit(

def spec_arguments(role: Mapping[str, Any]) -> dict[str, Any]:
"""The speculative arguments of a role, as the snapshot records them."""
return {k: v for k, v in (role.get("args") or {}).items() if k.startswith(SPEC_ARGUMENTS)}
args = (role.get("args") or {}).items()
# TileRT's draft method follows its model profile.
return {k: v for k, v in args if k.startswith(SPEC_ARGUMENTS) or k == "model"}


def snapshot(matrix: list[Mapping[str, Any]], root: Path) -> list[dict[str, Any]]:
Expand Down
3 changes: 2 additions & 1 deletion inferencex-e2e/infx/srt_slurm/synthetic_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def spec_parameters(role: Mapping[str, Any], engine: str) -> dict[str, Any]:
if engine == "tilert":
if args.get("with-mtp") is not True:
return {}
return {"method": "mtp", "num_speculative_tokens": args.get("num-mtp")}
method = "dspark" if args.get("model") == "dsv41" else "mtp"
return {"method": method, "num_speculative_tokens": args.get("num-mtp")}
if engine == "atom":
method = args.get("method")
if not method:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
load_identities,
parse_identity,
)
from infx.srt_slurm.spec_identity import audit, run_collection
from infx.srt_slurm.spec_identity import audit, run_collection, spec_arguments

DEFAULT = {"value": None, "source": "default"}
CHAIN = {"value": "chain", "source": "documented"}
Expand Down Expand Up @@ -206,3 +206,8 @@ def test_precision_and_kv_cache_dtypes_are_read_per_engine() -> None:
config = {"decoding_type": "MTP", "max_draft_len": 3}
trt = _role(speculative_config=config, kv_cache_config={"dtype": "fp8"})
assert run_collection("dsv4", trt, "dynamo-trt").kv_cache_dtype == Fact("fp8", "explicit")


def test_snapshot_arguments_keep_the_tilert_model_profile() -> None:
role = _role(model="dsv41", **{"with-mtp": True, "num-mtp": 5, "model-weights-dir": "/w"})
assert spec_arguments(role) == {"model": "dsv41", "with-mtp": True, "num-mtp": 5}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def golden_dir(tmp_path: Path) -> Path:
"muse-spark-open",
3.4,
),
(
"deepseek-v4.1-flash__dspark__native__probabilistic-block.yaml",
"deepseek-v4.1-flash",
3.3,
),
]:
(directory / filename).write_text(
yaml.safe_dump(
Expand Down Expand Up @@ -573,6 +578,16 @@ def test_tilert_plan_uses_caller_decode_depth_and_keeps_prefill_real(
}


def test_tilert_dsv41_profile_selects_the_dspark_curve(tmp_path: Path, golden_dir: Path) -> None:
recipe = tilert_recipe()
recipe["roles"]["decode"]["args"]["model"] = "dsv41"
path = tmp_path / "tilert.yaml"
path.write_text(yaml.safe_dump(recipe))
env = {**ENV, "MODEL_PREFIX": "dsv41flash"}
commands = plan_commands(str(path), "tilert", [], env, golden_dir=golden_dir)
assert [command.acceptance_length for command in commands] == [3.3]


@pytest.mark.parametrize(
"environment",
[{"EVAL_ONLY": "true"}, {"IS_AGENTIC": "0"}, {"SPEC_DECODING": "none"}, {}],
Expand Down
11 changes: 11 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12224,3 +12224,14 @@
- "GPU-resident KV at concurrency 2-16; HiCache with SGLang's default auto-sized host tier (~119 GiB, 127 GB per rank; ~1,020 GB per node) at concurrency 20, 24, 28 and 32."
- "Prefill CUDA graphs are disabled after a CUDA misaligned-address fault during ~336k-token single-request replay at concurrency 1."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4719

- config-keys:
- dsv41flash-fp4-mi355x-tilert-agentic-dspark
scenario-type:
- agentic-coding
description:
- "Add DeepSeek-V4.1-Flash FP4 AgentX on MI355X with a disaggregated TileRT setup at concurrency 1: one vLLM ROCm prefill (ghcr.io/tile-ai/tilert-rocm-prefill:0.1.7: the validated MI355X DeepSeek-V4.1-Flash vLLM nightly e68efc68 plus the multi-protocol Mooncake build and ionic verbs provider of the TileRT ROCm decode image; TP4, vLLM's Rust front end, CUDA graphs up to 8192-token steps) sends the prompt KV over Mooncake to one TileRT decode (ghcr.io/tile-ai/tilert-rocm-decode:0.1.6 with tilert 0.1.7.post2; TP8, five drafts from the checkpoint's own DSpark head) behind the TileRT PD router, with the full 1M context on both ranks and no context cap on the replay."
- "Throughput runs simulate the DeepSeek-V4.1-Flash DSpark golden AL at five drafts (3.51): a TileRT decode now takes its draft method from its model profile, and the dsv41 profile maps to dspark."
- "The TileRT router renders the chat template and tokenizes each request itself, so the prefill receives token ids: the model's chat template, adapted to render exactly what the prefill's vLLM deepseek_v41 tokenizer mode renders, ships as configs/dsv41flash-tilert-chat-template.jinja. tilert 0.1.7.post1 lets the router do so on the prefill's node; the prefill's flags match the other DeepSeek-V4.1-Flash configs."
- "tilert 0.1.7.post2 cuts the time to first token on long agentic contexts: the router asks the prefill for token ids per request (so the prefill runs vLLM's Rust front end) and reuses the token ids of the conversation prefix it has already rendered; the decode imports only the KV past the prefix it already holds from the previous turn, checked byte for byte against what it received then; the prefill stages the KV for the decode in a few vectorised copies."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/XXX
Loading