Skip to content

[Minor] Fix a typo in test_torchao.py - #1976

Merged
merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1
Nov 9, 2024
Merged

merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy
merrymercy merged commit 549e8b8 into main Nov 9, 2024
@merrymercy
merrymercy deleted the merrymercy-patch-1 branch November 9, 2024 23:07
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 Oct 22, 2026
…ct#1540 D-SIGNAL-SEATS / sgl-project#1976 D-SIGNAL-LOCKED default on

Regression of 31c8d07 on metal (dual round 2, boot dkr27bnvfp4dualbar1drei10220138, image rc31b4): 9 min,
0 prefill / 0 decode batches, 10x CLIENT-GONE. Chain (front.log): 01:42:32,818 "d_signal id_space=0.99 -- D is
short beyond the ledger bytes" (the own-tag reading now finds D's signal file; D maps 8192 of its 1M-row id space
and the table fill counts the rows it never mapped) -> 01:42:32,822 stage=1 -> 01:42:33,029 stage=1-lend ->
01:42:33,649 stage=2 sleeping (P SLEEP-LEND 6312427520 / 5131730944 / 4846518272 B). From 01:42:43 every request
is "LONG -> P leg 1 / BATCH queued"; D gets no seat, d_seat_done never moves, and the sleeping wake
(dual_d_priority.PressureStages.tick: pressure <= 0 AND seats_done > seat_mark AND room) waits for a seat end that
cannot come. No wake line, no sgl-project#1480 line (the gate only speaks in 'reclaiming'). B9e again: the companions built
for the seeing front (sgl-project#1540 seats gate, sgl-project#1976 locked rows) were default off.

Fix:
- PressureStages.tick(d_idle=...): from sleep, an idle D (no live seat, nothing waiting for one) counts like a
  finished seat -- with no pressure and the room on every card P wakes. A live D seat still holds P until it ends.
  The front passes d_idle = not (_d_seats_live or _ready_for_d).
- FLLIPER_PDFLIP_DUAL_D_SIGNAL_SEATS and FLLIPER_PDFLIP_DUAL_D_SIGNAL_LOCKED default ON (user order 14.10.); =0 =
  the old reading. A standing table fill with no D work is no pressure, so P does not lend/sleep at boot.
- The front's reading tolerates stubs without _d_seats_live / a bound sgl-project#1480 gate (both default on now).
Rank agreement unchanged (front decides alone, SOLL R11); no reserve; features stay on.

Tests (serial, flock, MemoryMax=2G, DevicePolicy=closed, CUDA_VISIBLE_DEVICES=""): new
test_27b_dual_p_asleep_long_waits_1022 (5: boot without D work does not sleep P; P asleep + LONG waiting + idle D
wakes, with the standing 0.99 signal and without any signal; a live seat still waits for its end; pure rule):
31c8d07 sources 4 red -> green. 1540/1976/1480/q660 re-pinned to the new defaults (off = explicit 0).
Isolated 8 dual modules: 31c8d07 sources 21 failed -> fix 2 failed (dual22_resume_order,
1002::test_b1, both red at a4f4b8f as well). Battery of 65 modules: 3 failed / 1241 passed (the two above +
told_anchor_hold_y9d4::test_q610, order effect only, green in isolation).
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.

1 participant