Repository navigation
Delete the useless test/srt/test_throughput.py - #1045
Merged
Merged
Conversation
merrymercy
marked this pull request as ready for review
August 12, 2024 04:31
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
Aug 31, 2026
…s; delete the load-back delivery chain OPTION A, in the hard form. Two edits that only work together: the memory-axis watchman moves onto the group availability floor FIRST, and only then does the delivery chain come out. sgl-project#1045 -- THE FLOOR IS PUBLISHED UNCONDITIONALLY ON A GROUP. It used to stay None whenever availability happened to be equal that iteration, and `unified_radix_cache`'s load-back fell into a RANK-LOCAL memory decision when it was None, guarded only by the delivery signal `pp_load_back_told`. A watchman on one axis was hanging off the delivery of another, and it stood down exactly when nothing looked wrong. PRICE VERIFIED BEFORE BUILDING, per the no-new-collective rule: at the live path (scheduler.py:6396) `min_avail` and `max_avail` are BOTH harvested from the same already-performed all-reduce (`t[0]`, `t[max_avail_at]`), so dropping the comparison removes work rather than adding it. The single-rank path now publishes the LOCAL value instead of None -- it IS the group min for a group of one -- which is what lets None become a construction violation everywhere downstream. Behaviourally identical on even pools: the published floor equals the live local value, and the sgl-project#694 ledger keeps it tracking through the iteration. FIX-6 IS NOW ONE BRANCH. `floor is None` at the load-back raises, naming rid, kv_tokens and local availability. A rank that cannot answer from a group number must not answer from a local one -- that is how ranks stop agreeing, and the 21:52:25 wedge is the measured price. sgl-project#1046 -- THE DELIVERY CHAIN IS DELETED. Consumption is local: `_pp_load_back_extent` returns this rank's own stamp, chosen at its own match by one shared expression over the same content. Uniformity comes from identical DERIVATION, not from one rank shipping a value. Deleted with it: `apply_pp_load_back_row` and both its call sites, PP0's self-row parking and the one-lap delay, `pp_load_back_told` and all four readers, the `sgl-project#1035` deferral ledger, the fact carriers, `holders_with_unspent_extent`, `_spend_for_entry`, the spend transition, the `sgl-project#1041` population counter and the `sgl-project#1044` ship/recv ledgers. EVERY READER WAS DECIDED, NOT SWEPT ALONG -- the enumeration is the point, because a reader falling silently into a rank-local branch is the class that found the edge in the first place: unified_radix_cache.py:2713 group-fact signal -> moved to the floor (sgl-project#1045) schedule_policy.py:107 delivery mechanics -> local stamp schedule_policy.py:2305 delivery gate -> deleted, no fact to await schedule_policy.py:2360 clamp gate -> KEPT, re-pointed. Its hazard (a GDN anchor adopted at `_applied` while the KV is cut) is created by the load-back itself and is independent of where the extent came from. KEPT AND UNTOUCHED: the admission row, its `prefix_len`/`extend_len` columns and the sgl-project#791 membership and ordering rules -- batch geometry, a different axis. The `load_back_len` FIELD stays on the wire for width tolerance and always travels None. sgl-project#1042's lifecycle contract stays, minus the spend transition that had no consumer left. CHECKS: check_1045_floor_watchman.py proves the guard CAN FIRE (a crash guard that cannot crash is worse than the branch it replaced), that a small floor is an ordinary refusal, that the rank-local fallback is DELETED rather than bypassed, and that publication is unconditional and counted. check_1042 updated: the row build must now LEAVE the field alone -- a build that still cleared it would resurrect the eraser through the back door. check_1040 green. The 1041, 1043 and 1044 checks are DELETED with their subjects; the cell's zombie test picks up their markers (ROW APPLIED, DEFERRED, EXTENT POPULATION, ROW SHIP) so a stale build cannot pass silently. py_compile + import smoke on all five modules; ruff clean. NOT YET BOOTED -- this commit is desk-proven only.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 28, 2026
…Deadlock-Stopp, SA-Verdrängung nach dem Prefetch-Drain aus dem Pass genommen rc12z23 (e7b7c22) D 15:28:40-15:36:12, Deadman BUSY-STARVED: unter H105b lädt nur TP0 zurück; der Floor verweigerte den Load-back von weg2-14-33 und xsn285 räumte NUR TP0s evictable Leaves (WEG2-LOADBACK-EVICT 116416 + 97152). sgl-project#1045 FLOOR PUBLISHED floor=30336 max=243904 pools_equal=False: max-floor = 213568 = 116416+97152; Worker local_budget 243904 = 30336 + 213568 evictable; Host-Budget 48576 = Gruppen-Floor 30336 + eigenes evictable 18240 < Preis 79176 -> 8920 Verweigerungen bei 0 running, niemand räumte die Worker. Gleiche Klasse 15:26:06 (170944-55744 = 115200), damals vom Flip-Reset 15:26:50 aufgelöst. Fix: add_one_req zählt die Räumung seines host-first Load-backs (_weg2_loadback_drained_total-Delta), der Host legt sie ins H105-Verdikt (gleicher Broadcast, kein neues Kollektiv), jeder Worker räumt seine evictable Leaves unter derselben last_node-Sperre (H106 FORM-A LOADBACK-DRAIN FOLLOW). Kopf verweigert + 0 running + Preis/Budget unverändert >= SGLANG_WEG2_FORM_A_DEADLOCK_STOP_S (120 s) -> FormAAdmissionDeadlock auf allen Rängen, vom Host entschieden, im Verdikt getragen. rc12z22-dwell30 (7d50735) D 15:51:41 alle Ränge: SEAT-AGE DISPLACE weg2-6-33 (trigger=kv) requeuete NACH dem sgl-project#580-Drain -> _prefetch_done_for RuntimeError. Fix: der verdrängte rid bekommt in diesem Pass ein Nicht-fertig-Verdikt (SEAT-AGE DISPLACED-THIS-PASS), gruppeneinheitlich. Test test_nf_form_a_drain_deadlock_h106 (6): 5 rot auf e7b7c22 (Worker räumt 0x; Watch/exclude fehlen), grün mit Fix.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 28, 2026
…oad-back -- kein Warten allein rc12z30g (7bd3541, -st-vsync ohne Schnitt, Form A host,worker,worker, 1h07 unter qwen-Last), D-Log boot_weg2_dkrnfh91dprsavisnoadoptstvsyncbar1dauer 09282210 ~745380-745460, 23:23:28. Ein Pass nach weg2-180-303: - weg2-180-304 host-gedeckt; H105-Verdikt ADMIT ging raus (TP0 'sgl-project#988 LOADBACK rid=weg2-180-304 prefix moved to 71168 ... extent=71168'); - TP1/TP2 lasen das ADMIT (ein Follower liest das Verdikt VOR seinem Load-back) und liefen dann ihren eigenen: 'WEG2-LOADBACK-WAIT rid=weg2-180-304 extent=63296 applied=0: no device room for the host hit yet (rem_total_tokens=157504.0)' -> rangeigenes NO_TOKEN, Schleife zu Ende; - TP0 ging weiter zu weg2-180-305 und sendete dessen Gate-NO_TOKEN (98650/89792); der Nach-Schleifen-Riegel der Worker las diesen Post als Extend-Set: 'H105 RU FORM-A EXTEND-SET MALFORMED got=('weg2-180-305', 'NO_TOKEN', 98650, 89792, 0, '') local=[...]' -> D tot, TP0 an gloo. Wurzel: (1) load_back entscheidet gegen den EINMAL je Iteration veroeffentlichten Floor; der zweite Load-back eines Passes wurde gegen Zeilen geprueft, die der erste schon genommen hatte (_form_a_note_loaded belastete nur den Extend-Trigger). TP0 (5090, groesserer Pool) passte noch, die 3080er nicht. (2) Die WAIT-Ausfahrt eines Workers ist rang-lokal NO_TOKEN, obwohl die Gruppe schon ADMIT hat -- ungleiche Zahl von Gate-Aufrufen. Fix (Klasse raenge-nie-uneins, H98-Follow): - unified_radix_cache._form_a_load_back_floor: auf einer Form-A-Gruppe wird der Floor mit dem im Pass bereits Zugelassenen/Geladenen belastet (uniform_avail_for_evict, sgl-project#694-Ledger) -> der host-first Load-back des Hosts sieht den zweiten Load-back nicht mehr passen und sendet selbst NO_TOKEN (H105b/H106-Weg). Off Form A: der veroeffentlichte Floor, unveraendert. - schedule_policy._h105c_follow: ein Rang, der das ADMIT schon genommen hat und 0 Zeilen unter adoptiertem Anker bekommt, wartet nicht allein: Anker zurueck, eigener Fehlbetrag wird evicted, Load-back einmal gegen den eigenen Live-Pool ('H105c FORM-A FOLLOW-ROOM', 'H105c FORM-A FOLLOW LOAD-BACK'); bleibt es 0 -> benannter Stopp 'H105c FORM-A FOLLOW LOAD-BACK UNSERVABLE' an der Stelle statt eines NO_TOKEN, das der Host nie sendete. Kein Schalter. Host-first-WAIT (H105b) unveraendert. Tests test_nf_form_a_follow_load_back_h105c (6, Metallform weg2-180-304/305, Tiefe 71168, Worker-Extent 63296, rem 157504): 5 rot auf 7bd3541 (Worker endet nach 304, riegel las 305), gruen mit Fix; 1 Waechter (Host-WAIT) gruen auf beiden. Nachbarn 40 Dateien (H105/H105b/H106, xsn282, #616g/sgl-project#694/ sgl-project#1045-Floors, Load-back, Form-A-Admission): 1078 gruen, 275 Altlasten identisch auf Basis und Fix, 0 neue Rote.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 4, 2026
… the boot form as its phase, so the runtime tick moves the KV stage (NF y9nf boot 2 D 00:49:37Z: no wake -> no PHASE_ATTR -> runtime_tick a no-op -> stuck at S0 32768 (sgl-project#1045 floor=32768) while store-cached X-route requests needed 93281..163404: H105 FORM-A ADMISSION WAIT refusals=5604 waited_s=272.7, ADMISSION-WEDGE 4 queued / 0 running, no forward, no flip) d_seat_vram.boot_phase(): PhaseState(epoch='boot', cap, n=None, stage=S0, done) seeded once on an awake, armed D with a stage form and no phase (line 'Q-701 D-MEM-SCHED BOOT-PHASE'); the tick then grows the stage for the demand exactly as after a wake (n=None -> the cap seats, the boot form; apply_stage on the live cap-form GDN pool). The first real wake replaces it (other epoch). Asleep / not group D / no stage form: nothing seeded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.