Skip to content

Torch compile CI throughput test - #1223

Merged
merrymercy merged 4 commits into
mainfrom
torch-compile-ci
Aug 26, 2024
Merged

merrymercy merged 4 commits into
mainfrom
torch-compile-ci

Conversation

@hnyls2002

Copy link
Copy Markdown
Collaborator

Motivation

Modifications

Checklist

  • Format your code according to the Contributor Guide.
  • Add unit tests as outlined in the Contributor Guide.
  • Update documentation as needed, including docstrings or example tutorials.

Comment thread test/srt/test_torch_compile.py Resolved
Comment thread test/srt/test_torch_compile.py Resolved
@merrymercy
merrymercy merged commit c61a1b6 into main Aug 26, 2024
@merrymercy
merrymercy deleted the torch-compile-ci branch August 26, 2024 20:53
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 29, 2026
…P tot

rc12z30i (49a2a04) 27B, 29.09. 00:04:33Z, P-Rang 0 im sgl-project#1223 DEBUG-HOLD
direkt nach serving: p_twin_defer._note_s0 (aus 81bf9d4, TW Regel 4)
rechnete len(getattr(r, "prefix_indices", None) or ()) -- prefix_indices ist
am Metall ein torch-Tensor, `tensor or ()` wertet seinen Wahrheitswert aus:
"Boolean value of Tensor with more than one value is ambiguous" -> W17
Weg2GroupDead. Trifft jeden Flip-Boot auf rc12z30h/z30i (27B und NF).
Fix: None-Pruefung statt Wahrheitswert. Test mit echtem Tensor: rot auf
49a2a04, gruen mit Fix; test_weg2_p_twin_defer 28 passed.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 29, 2026
…P tot

rc12z30i (49a2a04) 27B, 29.09. 00:04:33Z, P-Rang 0 im sgl-project#1223 DEBUG-HOLD
direkt nach serving: p_twin_defer._note_s0 (aus 81bf9d4, TW Regel 4)
rechnete len(getattr(r, "prefix_indices", None) or ()) -- prefix_indices ist
am Metall ein torch-Tensor, `tensor or ()` wertet seinen Wahrheitswert aus:
"Boolean value of Tensor with more than one value is ambiguous" -> W17
Weg2GroupDead. Trifft jeden Flip-Boot auf rc12z30h/z30i (27B und NF).
Fix: None-Pruefung statt Wahrheitswert. Test mit echtem Tensor: rot auf
49a2a04, gruen mit Fix; test_weg2_p_twin_defer 28 passed.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 29, 2026
…2 full_token_usage, E2 mamba_tok/prefetch.timeout

Operator an den Produzenten-Sitz: drei Felder blieben aus dem Log, weil kein
Produzent sie schrieb. Gleicher Stil wie 9969bd3 (vorhandene Zaehler,
Timer-Thread oder Transition, modellneutral, der Rundenpfad schreibt nichts).

- A14: Der Todespfad des Schedulers (run_scheduler_process, except
  scheduler_exc) haelt den Stopp per rankstats.note_stop in der
  rankstats-Datei fest (stops{n,last[8]}: t, reason, code = W-Nummer +
  Exception, ticket, text), synchron VOR dem sgl-project#1223-Hold und dem SIGQUIT.
  Die Front veroeffentlicht jeden Stopp genau einmal als Event rank_stop
  (writer front, Huelle group/rank/code), wenn das group_health-Urteil auf
  failing/held/dead wechselt: front_state_ipc.publish_rank_stops liest
  groups.<G>.rankstate_dir aus state.json, im IPC-Faden der Front.
- C5: RankState (Schema 2, optional) traegt kv{holds_kv, kv_tokens, share}
  und seats aus max_total_num_tokens / max_running_requests.
  rank_state.note_capacity am Ende der Scheduler-Init schreibt den
  Attach-Record einmal neu; der rankstats-Timer reicht Aenderungen (KV-Stufe)
  weiter, unveraendert = nichts geschrieben. Ohne Werte fehlen die Felder
  im JSON (alte Leser unberuehrt).
- C2: sched.full_token_usage aus den Pool-Stats der Batch-Zeile (eine
  Zuweisung neben get_pool_stats, Prefill und Decode).
- E2: cache.mamba_tok = Summe der MAMBA-HOST-RESUME-Tiefen (eine Addition
  neben dem vorhandenen _host_resume_count); prefetch.timeout =
  tree_cache._1157_reaped_n (eine Addition an der sgl-project#1157-REAPED-Zeile).
  Korrektur: prefetch.deferred ist jetzt der Zensus-Schluessel deferred
  (war defer_refused), neu defer_refused, refused = Gate-Ausgaenge aus
  PREFETCH_DECLINE_ORDER ohne den Ursachen-Zaehler anchor_pool_exhausted.
- A4 (groups.<G>.form) war schon da (285f73c, Vorfahr), kein Code.

Tests: test_weg2_rankstats_nachzug_0929.py 16/16 rot auf 9969bd3, gruen
mit Fix; test_weg2_rankstats_s3_0929 auf die korrigierte deferred-Semantik
nachgezogen. Nachbarn (dashboard_ipc, ipc_phase2, rank_state_ipc,
vram_actual_m2, state_file, rankstats, rankstats_s3, prefetch_gate_census,
rank_prefill_log, acceptance_emitters, prefetch_deferral): Fix = Basis,
4 Altlasten namentlich identisch.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 30, 2026
…ce (rank part of NF 62357f2); state_file = host copy

NF y4u, D TP1 15:18:30Z: the rank died, lifecycle stayed "serving" until DEADMAN_CRASH at 15:19:48 (78 s).
Ported the rank half of NF 62357f2 (desk/nf-y4u-rw-eager-rankdeath-0930); its RW-eager half (expert
offload, expert_pool_device) is NF-specific and not taken.

- weg2/state_file.py: byte-identical to the host copy /spinning/gpu-arb/docker/acc_state.py (md5
  3f277812..., in place since 15:31:44Z) -- the union of 27B 7a000bb (PROGRESS-STALL, writer
  "deadman" owning `progress`) and NF 62357f2 (note_rank_death, writer "rank" owning only its death,
  RANK_EXCEPTION_CODE, first cause wins, never raises).
- managers/scheduler.py run_scheduler_process: the exception handler calls note_rank_death (origin rank,
  code RANK_EXCEPTION, group, rank tpXppY, exception_type, rc) AFTER the sgl-project#1223 debug hold (a held rank is
  inspected, not torn down) and BEFORE the census and the SIGQUIT -- the same place as NF's.

Tests: test_weg2_rank_death_lifecycle_0930.py 4 (NF's RankDeathReachesTheLifecycle, unchanged; red on
e62d063: 3 failed, the writer-ownership control passes there too / green: 4);
test_weg2_state_file_0928::TestHostCopy::test_host_copy_is_byte_identical red on e62d063, green now;
PROGRESS-STALL tests green. Neighbours (21 files naming state_file / run_scheduler_process / acc_state /
WEG2_STATE_DIR): 0 new failures.
efschu pushed a commit to efschu/htsglang that referenced this pull request Oct 3, 2026
…31032, weg2-0-18, P-PAUSE abort in the told's own pass)

The log's 'weg2-0-1' is rid[:8]; the sgl-project#1223 dump names weg2-0-18. Same class as
10030958: PP0 published instance 1's told=0 in the pass the DUAL P-PAUSE abort
landed, the followers' admission visit consumed theirs, PP0's stood; instance 2
(P-PAUSED requeue) was admitted on it at 10:36:47 ('sgl-project#1400 STORE-TOLD WAITED
told=0', sgl-project#969 EXTENT (0,1024)) and PP1 died #791T. Red on edeb022, green on
ee24fb3.
efschu pushed a commit to efschu/htsglang that referenced this pull request Oct 9, 2026
…stopped a healthy dual P group)

Metal 09.10.2026, M12 dual (vw1009c, boot dkr27bnvfp4dualvwweightsbar1fs10091549): the 4096x4096 image request kept
P's /health silent for >14 s before the vision stage ran (decode + patchify in the tokenizer process): polls at 15:55:10
and 15:55:24 failed, W17 Weg2GroupDead stopped the group (state STOP), although the stage then answered W105b by name
(14690 MiB work memory > 1980 MiB air) and the group was alive.

The front knows it routed an image to P, exactly as it knows `flipping`: a silent /health of P behind that request is
not a failure for VISION_HEALTH_GRACE_S (120 s, the flip_stall bound). The request is registered in handle_generate's
vision branch and dropped in the guarded wrapper's finally. Past the grace, without an image request, for group D,
with a dead process or a held rank (sgl-project#1223) the verdict is the old one.

Tests: new test_weg2_vision_health_grace_1009.py (6) + front_health_facts_b1_0927 + w17_flip_gate_1378 +
fh_progress_beacon_0927: 38 passed. Red proof: the metal STOP above (no grace -> two silent polls -> STOP).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants