You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47ea903
Browse filesBrowse the repository at this point in the historyBrowse files
Merge main; keep #5196's perf-changelog block at the tail [skip-sweep]
Resolve the inferencex-e2e/perf-changelog.yaml conflict by taking main's
entries unchanged and appending this PR's block after them.
合并 main;将 #5196 的 perf-changelog 条目保留在文件末尾。
解决 inferencex-e2e/perf-changelog.yaml 冲突:main 的条目保持不变,
本 PR 的条目追加在其后。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,8 @@ what the pinned upstream image does with it out of the box. The baseline is the
49
49
same checkpoint loaded by the same pinned image with no draft-related settings from
50
50
the submission. A submission is compliant when its effective draft precision matches
51
51
that baseline. It is not compliant when it makes the draft cheaper than that baseline.
52
+
The draft KV-cache dtype is judged only by the draft KV-cache rule below, not by this
53
+
baseline comparison.
52
54
53
55
Allowed (this is the baseline, not an exception):
54
56
@@ -72,6 +74,30 @@ Allowed (this is the baseline, not an exception):
72
74
the same draft computation faster without lowering the precision of its weights or
73
75
activations below what ships.
74
76
77
+
Draft KV-cache dtype rule. Besides the framework's default draft KV-cache dtype for
78
+
that checkpoint (allowed above), a submission may set the storage dtype of the draft's
79
+
own KV cache to `bf16`, `fp16`, `fp32`, `fp8`, `fp8_e4m3`, or `fp8_e5m2` (or the
80
+
pinned framework's spelling of these), even when it is below the framework default or
81
+
differs from the target KV-cache dtype, only if all of the following hold:
82
+
83
+
- It is set through launch flags or engine config fields documented by the pinned
84
+
image (CLI flags, `--speculative-config` JSON, srt-slurm recipe YAML), not through
85
+
checkpoint-file edits, patches, or undocumented environment variables.
86
+
- For runs that use golden/synthetic acceptance, the golden AL identity used for that
87
+
run in `inferencex-e2e/infx/golden_al_distribution/identities.yaml` records the same
88
+
`draft_kv_cache_dtype`. This is a condition of the rule, checked from the committed
89
+
file, not an AL-based exemption.
90
+
- It changes only the draft KV storage dtype and the attention-input cast the pinned
91
+
framework applies automatically to read that dtype (for example an FP8 query for
92
+
FP8-KV attention). It does not allow any other quantization of draft weights,
93
+
activations, or GEMMs, or settings that change how the draft reads the target's KV
94
+
pool or enable quantized draft attention compute (for example ATOM DeepSeek-V4.1
95
+
`DSparkConfig.draft_kv_dtype=fp8`, which reads MXFP8 windows with OPUS A8W8).
96
+
97
+
Any other draft KV-cache dtype (for example `int8`, `int4`, `fp8_per_token_head`,
98
+
MXFP8, FP4, NVFP4, MXFP4) is allowed only when it is the framework's default for that
99
+
checkpoint. This rule does not change eval requirements.
100
+
75
101
Forbidden (submission-side precision hacking of the draft):
76
102
77
103
- Enabling `SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE` (`=1` or any other enabling
@@ -89,7 +115,7 @@ Forbidden (submission-side precision hacking of the draft):
89
115
applied to a BF16 MTP head, `SGLANG_GLM_NEXTN_MOE_PTPC=1`, and an ATOM
90
116
`--online_quant_config` whose `exclude_layer` patterns do not cover the entire draft
91
117
head.
92
-
-Dtype overrides aimed at the draft that lower its precision below the framework's default for that checkpoint.
118
+
-Weight, activation, or compute dtype overrides aimed at the draft that lower its precision below the framework's default for that checkpoint, and draft KV-cache dtypes that the draft KV-cache rule above does not allow.
93
119
- Substituting a precision-converted or differently quantized draft checkpoint, or a
94
120
draft head taken from a different release than the served target.
95
121
- Patching the pinned image so that it loads or computes the draft at a different
@@ -116,7 +142,10 @@ name or precision label.
116
142
For speculative-decoding changes, the CODEOWNER's additional detail section must
117
143
identify the draft checkpoint/revision (or embedded head), the precision it ships in,
118
144
how the pinned upstream image handles it by default, and its effective serving
119
-
precision, so the reviewer can confirm the last two match. If evidence is missing
145
+
precision, including the effective draft KV-cache dtype per configuration and, for
146
+
synthetic-acceptance runs, the golden AL identity used, so the reviewer can confirm
147
+
the last two match apart from a draft KV-cache dtype allowed by the draft KV-cache
148
+
rule. If evidence is missing
120
149
or inaccessible, record the uncertainty and missing evidence instead of claiming
121
150
verification. Check 13 reports WARN and requests human review; this does not
122
151
establish compliance or grant an exception. A demonstrated precision violation or
0 commit comments