[Spec] Deprecate Spec V1 (#25464)

This commit is contained in:
Liangsheng Yin
2026-06-08 13:10:27 -07:00
committed by GitHub
parent ea1d190ed0
commit 28c1a3cb45
21 changed files with 111 additions and 2404 deletions
@@ -9,25 +9,6 @@ from sglang.srt.environ import envs
_PR_REVERT_YAML_25015 = """
patches:
- target: sglang.srt.speculative.eagle_worker.EAGLEWorker.draft_forward
edits:
- match: |
forward_batch.out_cache_loc = out_cache_loc[i]
spec_info.hidden_states = hidden_states
replacement: |
forward_batch.out_cache_loc = out_cache_loc[i]
forward_batch.positions.add_(1)
spec_info.hidden_states = hidden_states
- match: |
hidden_states = logits_output.hidden_states
maybe_detect_nan(hidden_states, f"draft_forward step {i}: hidden_states")
maybe_detect_inf(hidden_states, f"draft_forward step {i}: hidden_states")
forward_batch.positions.add_(1)
replacement: |
hidden_states = logits_output.hidden_states
maybe_detect_nan(hidden_states, f"draft_forward step {i}: hidden_states")
maybe_detect_inf(hidden_states, f"draft_forward step {i}: hidden_states")
- target: sglang.srt.speculative.eagle_worker_v2.EagleDraftWorker.draft_forward
edits:
- match: |