-
Notifications
You must be signed in to change notification settings - Fork 237
fix(agentic): propagate speculative decoding to sweep jobs #2183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -645,6 +645,7 @@ | |
| pcp_size = bmk.get(Fields.PCP_SIZE.value, 1) | ||
| ep = bmk.get(Fields.EP.value) | ||
| dp_attn = bmk.get(Fields.DP_ATTN.value) | ||
| spec_decoding = bmk.get(Fields.SPEC_DECODING.value, "none") | ||
| kv_offloading = bmk[Fields.KV_OFFLOADING.value] | ||
| kv_offload_backend = bmk.get(Fields.KV_OFFLOAD_BACKEND.value) | ||
| total_cpu_dram_gb = ( | ||
|
|
@@ -733,16 +734,18 @@ | |
| Fields.PCP_SIZE.value: pcp_size, | ||
| Fields.EP.value: ep if ep is not None else 1, | ||
| Fields.DP_ATTN.value: dp_attn if dp_attn is not None else False, | ||
| Fields.SPEC_DECODING.value: spec_decoding, | ||
| Fields.CONC.value: conc, | ||
| Fields.KV_OFFLOADING.value: kv_offloading, | ||
| Fields.TOTAL_CPU_DRAM_GB.value: total_cpu_dram_gb, | ||
| Fields.DURATION.value: duration, | ||
| Fields.EXP_NAME.value: ( | ||
| f"{model_code}_tp{tp}_conc{conc}_" | ||
| f"{agentic_kv_offload_suffix(kv_offloading, kv_offload_backend)}" | ||
| + (f"_spec-{spec_decoding}" if spec_decoding != "none" else "") | ||
| ), | ||
| Fields.SCENARIO_TYPE.value: "agentic-coding", | ||
| } | ||
|
Check warning on line 748 in utils/matrix_logic/generate_sweep_configs.py
|
||
|
Comment on lines
742
to
748
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 The multi-node agentic exp-name (around lines 700-712 and 1000-1012) wasn't updated to append Extended reasoning...This PR's stated goal is to "include non-default speculative-decoding modes in experiment names," and it does this correctly for the single-node agentic path in both Fields.EXP_NAME.value: (
f"{model_code}_tp{tp}_conc{conc}_"
f"{agentic_kv_offload_suffix(kv_offloading, kv_offload_backend)}"
+ (f"_spec-{spec_decoding}" if spec_decoding != "none" else "")
),However, the analogous multi-node agentic exp-name construction ( Fields.EXP_NAME.value: (
f"{model_code}_p{prefill[Fields.NUM_WORKER.value]}x{prefill[Fields.TP.value]}"
f"_d{decode[Fields.NUM_WORKER.value]}x{decode[Fields.TP.value]}"
f"_conc{'x'.join(str(c) for c in conc_batch)}"
f"{offload_suffix}"
),This block only ever appends Concrete proof of the gap: take two multi-node agentic search-space entries with identical Why existing tests don't catch it: the new tests added in this PR ( Impact: this is cosmetic, not functional. The correct Suggested fix: mirror the single-node suffix logic in both multi-node agentic exp-name blocks, e.g. append |
||
| if kv_offload_backend is not None: | ||
| entry[Fields.KV_OFFLOAD_BACKEND.value] = kv_offload_backend | ||
| entry.update(component_metadata(bmk, val)) | ||
|
|
@@ -948,6 +951,7 @@ | |
| pcp_size = bmk.get(Fields.PCP_SIZE.value, 1) | ||
| ep = bmk.get(Fields.EP.value) | ||
| dp_attn = bmk.get(Fields.DP_ATTN.value) | ||
| spec_decoding = bmk.get(Fields.SPEC_DECODING.value, "none") | ||
| kv_offloading = bmk[Fields.KV_OFFLOADING.value] | ||
| kv_offload_backend = bmk.get(Fields.KV_OFFLOAD_BACKEND.value) | ||
| total_cpu_dram_gb = ( | ||
|
|
@@ -1029,13 +1033,15 @@ | |
| Fields.PCP_SIZE.value: pcp_size, | ||
| Fields.EP.value: ep if ep is not None else 1, | ||
| Fields.DP_ATTN.value: dp_attn if dp_attn is not None else False, | ||
| Fields.SPEC_DECODING.value: spec_decoding, | ||
| Fields.CONC.value: conc, | ||
| Fields.KV_OFFLOADING.value: kv_offloading, | ||
| Fields.TOTAL_CPU_DRAM_GB.value: total_cpu_dram_gb, | ||
| Fields.DURATION.value: duration, | ||
| Fields.EXP_NAME.value: ( | ||
| f"{model_code}_tp{tp}_conc{conc}_" | ||
| f"{agentic_kv_offload_suffix(kv_offloading, kv_offload_backend)}" | ||
| + (f"_spec-{spec_decoding}" if spec_decoding != "none" else "") | ||
| ), | ||
| Fields.SCENARIO_TYPE.value: "agentic-coding", | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Line Count Report