Repository navigation
Create contributor_guide.md - #992
Merged
Merged
Conversation
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
hhhh1252023
pushed a commit
to hhhh1252023/sglang_public
that referenced
this pull request
Jul 13, 2026
Npu ssl testcase update.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 28, 2026
… its seat too Boot 11 (aae7e3b) reached 3m47s -- sgl-project#991 held, no AttributeError -- and died on `sgl-project#801-spin PP IDLE-VOID LIVELOCK REFUSED` (pp_rank=2, 512 consecutive voided passes, scheduler_pp_mixin.py:8214). The guard is right that the defect is not on rank 2. ROOT. Uniform membership -- "a rank executing a forwarded schedule may admit only what the decision names" -- is enforced at scheduler.py's `pp_not_named` skip for every candidate that comes out of `waiting_queue`, and NOWHERE for the one candidate that never appears in a queue. `add_chunked_req` runs ~250 lines earlier and appends `self.chunked_req` unconditionally, before the decision is consulted at all. MEASURED, 512 byte-identical rounds (21:27-21:31): rank 1 held rid 8a330526c7b9410f963232874adc451b at executed=3332 as its parked continuation, in NO queue on ANY rank, so rank 0's decision could not name it. That site gave it the seat; the decision's own rid (dfd22a9a… / 9528ff20…) could then not be reached; `sgl-project#791 FORWARDED SCHEDULE UNEXECUTABLE` voided the pass; `sgl-project#971 REHOME-ON-REFUSAL` put the continuation straight back into `self.chunked_req`; the next pass was identical. Rank 2 voided every pass behind it until the bound fired. THE CLASS: a compensator that restores the precondition of its own trigger. The cut therefore belongs upstream of the rehome, at the admission -- fixing sgl-project#971 would only move the latch. FIX. At the one junction, gate `add_chunked_req` on the same membership test the queue loop already applies: when this rank is executing a forwarded schedule that does not name its continuation, refuse the SEAT. Not a drop -- the precedent is the sgl-project#906 gate immediately below it: the request stays `self.chunked_req`, keeps prefix, pages and mid-chunk position, and resumes on the first pass whose decision names it. PP0 has no incoming decision, so `incoming is None` there and the default path is byte-identical. SIBLING SWEEP: the two candidate sources into `can_run_list` under a forwarded schedule are the queue loop and this one; the queue loop was already gated. `_note_skip("batch_full_break")` and `pp_not_named` are the two symptoms this produced in the census and both are downstream of it. WHAT THIS DOES NOT CLOSE, stated rather than assumed: sgl-project#968's half. sgl-project#968 makes the parked-continuation fact ride the return lap so PP0 CAN name such a rid, but its actuator `pp_parked_continuation_priority` only REORDERS PP0's queue and is a no-op exactly when the rid is in no queue on PP0 -- which is this specimen. The new log line prints the rid, its executed extent and the decision's full name set, so boot 12 MEASURES whether the continuation ever becomes named instead of leaving it to inference. Evidence: desk. py_compile + import smoke. Belegstufe: DESK-BEWIESEN.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 28, 2026
Boot 13 (4fde6e5) did not crash: it WEDGED. 5 queued, 0 running, no first token, on all three ranks, behind 239 identical refusals of one shape: sgl-project#791 FORWARDED SCHEDULE UNEXECUTABLE for rid=901a7d29…: the decision names prefix_len=0, this rank holds 7938. ROOT, and it is the second half of the exemption sgl-project#992 found. `sgl-project#791 PP ADMISSION UNIFORMITY` has two halves -- MEMBERSHIP ("admit only what the decision names") and GEOMETRY ("with exactly the prefix it named") -- and both are implemented inside the waiting-queue loop, applied strictly before `adder.add_one_req`. The chunked continuation does not travel that loop: it reaches `can_run_list` through `add_chunked_req`, ~250 lines earlier, and was therefore exempt from BOTH. sgl-project#992 closed membership. Geometry stayed open, so a NAMED continuation entered the batch carrying its own prefix while the decision named another -- and that is a SHAPE disagreement, because `prepare_for_extend` sizes the cross-stage tensor directly off `len(req.prefix_indices)`. The follower refused, correctly, every pass. The decision said 0 because PP0 had spent its `sgl-project#946 PREMISE RECOMPUTE` terminator on that rid. That is PP0's call to make and the follower's to execute; second-guessing it is what the refusal exists to prevent. FIX: apply the same `truncate_prefix_to(told)` the queue loop applies, at the same point in the same order -- immediately before the re-derivation. sgl-project#930: the helper moves `prefix_indices` and `cache_protected_len` together. sgl-project#961: the mover must be followed by the re-derivation it invalidates; in the queue loop that is `add_one_req`, here it is `add_chunked_req` on the next line. Nothing is re-derived by hand and no new helper is introduced. Logged with rid, local prefix and told, counted, so the adoption is affirmative rather than inferred from the absence of refusals. SIBLING SWEEP: the two entries into `can_run_list` under a forwarded schedule are the queue loop and this one. Both now carry both halves of uniformity. PP0 has no incoming decision (`incoming is None`), so its path is byte-identical. BOOT 13 ALSO BOUGHT: sgl-project#993's containment fired and held -- no repeat of boot 12's allocator assert. sgl-project#992 held -- no repeat of boot 11's sgl-project#801-spin. Batch lines were symmetric 5/5/5 across ranks, i.e. no rank is structurally excluded. Evidence: desk. py_compile + import smoke + wiring assertion. Belegstufe: DESK-BEWIESEN.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 28, 2026
…ter a boot Commit 7398727 published two predictions. The second one was wrong, and it was wrong at the time I published it -- its author withdrew it before the boot ran and I re-checked the withdrawal against the log myself. It stands struck through rather than deleted: a published prediction may not quietly vanish. WHY (b) IS FALSE, three ways, all in the specimen: * The refusals' actual cause is printed one line ABOVE each of them: :2033 (PP1) and :2044 (PP2), 'sgl-project#992 CHUNKED CONTINUATION NOT NAMED rid=da614e20 executed=7939 decision_names=5689567b'. That is the sgl-project#992 asymmetry -- the followers hold a resident the decision does not name -- and no false last_chunk is involved. * :2028 'sgl-project#968 MINT none rank=0 rid=5689567b end=4096 prefix=0'. It was a genuine MIDDLE chunk, so last_chunk=False was correct. Cut C carries the same verdict and the refusal fires unchanged. Two stays two. * :2120 'local=8446 -> upstream=8447 appended=1'. The follower is SHORTER and the adopt raised it, which is the covered direction. Site #0 needs the executing rank LONGER. That never happened in this boot. So Site #0 is desk-proven as a defect, has ZERO boot-observed instances, and contributed nothing to Boot 16. Cut C fixes a LATENT defect and the next boot can neither confirm nor refute it -- which matters operationally, because anyone watching for an indicator there is watching for one that cannot come. Exactly one prediction now rides on the boot: the sgl-project#631 leftover SURVIVES. And the class section is corrected rather than left flattering: the two seams do NOT carry the same evidence tier. D1 (:5330-5331) is boot-proven at the symptom; Site #0 (:1433) is desk-proven with no instances. Two independent finds still argue the class better than one, but the class is carried by the metal-backed half, and writing it otherwise would inherit exactly the overclaim the indicator law exists to forbid. The error form is recorded too, because it is not a foreign one: an event that FITS a mechanism was read as BEING that mechanism, without reading the line above naming the alternative. Twice, and both times the refutation was one line higher in the same log. Same shape as the dead ratchet in sgl-project#996 and the false guard hint in sgl-project#997. The cheap counter-check is the same in all three and costs seconds: read the line above.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 24, 2026
…H42) Task sgl-project#118 (Nutzer 24.09. 07:00Z: bei Agentenlast kommen viele kleine Prefills), Folge von H37. Wurzel: Gruppe P haelt mit dem END-ANCHOR (sgl-project#1233) das letzte Token jedes Prompts zurueck; der Koerper [0, N-1') wurde DIE chunked-Fortsetzung (Scheduler.chunked_req, ein Feld, eine je Durchlauf sgl-project#959/sgl-project#996). Der zweite ganz passende Prompt eines Durchlaufs bekam OTHER ([sgl-project#967] SECOND CONTINUATION REFUSED add_one_req/end-anchor), die Zulassungsschleife brach ab: je Forward erreichte hoechstens EIN Request sein Ende, jeder Schwanz (1-4 Token) lief als eigener Forward. Schalter SGLANG_WEG2_ENABLE_P_MULTI_ANCHOR_TAILS (Default aus; wirkt nur mit SGLANG_WEG2_END_ANCHOR, also nur auf P, und nur ohne Draft auf P): jeder END-ANCHOR-Koerper wird ein ANKER-SCHWANZ seines eigenen Requests (managers/anchor_tails.py, Kollaborateur mit schmalen Argumenten). PrefillAdder: new_anchor_tails, _mint_anchor_tail ohne sgl-project#996-Assert und ohne sgl-project#959/sgl-project#967-Verweigerung; dieselbe Geometrie-Regel (Ausdehnung endet am Anker-Schnitt der Fuellung) an allen drei Praegestellen (add_one_req ganz passend, add_one_req gekuerzt, _add_scheduled_req der Folgeraenge mit getragenem last_chunk-Urteil). Scheduler.anchor_tails: aus dem Merge ausgenommen und gestasht wie chunked_req (je Request eigener Ankerknoten, MAMBA-ARENA-Claim, Tail-Capture), im naechsten Durchlauf VOR der Schleife alle ueber add_chunked_req wieder zugelassen (Budget, geplante Ausdehnung sgl-project#791/sgl-project#996, carried_chunk-Locks wie beim einen Feld; nicht benannte Schwaenze bleiben sgl-project#992, abweichender told-Prefix sgl-project#994), danach fuellt die Schleife das Chunk-Budget mit neuen Koerpern. ScheduleBatch.weg2_anchor_tail_bodies nimmt die Koerper beim spaeteren last_batch-Merge aus (PP-Slot). contains_last_prefill_chunk ohne Schwanz byte-gleich. Void (#797d): _pp_void_own_batch stellt die Schwaenze des Slots wieder her, parkt jeden wieder zugelassenen Schwanz (Inflight-Rueckgabe nur wenn genommen) und laesst die Praegungen des verworfenen Durchlaufs als Mitglieder parken (sgl-project#984). Abbruch: Schwanz laeuft seinen letzten Forward auf allen Raengen und endet mit FINISH_ABORT. Leerlauf/Quiesce/Zensus/Flip-Autoritaet zaehlen die Schwaenze; process_batch_result_prefill haelt alle Mittel-Chunks vom Stream fern; tail_handoff haelt bei Schalter Captures und Teildateien fuer --max-running-requests Requests (statt 2). Tests test_weg2_p_multi_anchor_tails_h42.py: echter PrefillAdder in einer PP3-Form (PP0 entscheidet, PP1/PP2 fuehren je rid aus): 4 x 4k in einem 16k-Forward, Schwaenze gemeinsam im naechsten, Ausdehnungen/Anker/Ausgabe je Request auf allen Raengen, 8 Requests gemischt mit einer chunked-Fortsetzung, Abbruch mitten im Burst, Void je Schwanz, Schalter aus = aufgezeichnete Spur des Baums vor H42 (4 und 8 Requests), Startzeile, Capture-Grenze. 18 Tests, 15 Mutanten fallen. Gate (gate_tests.sh-Kopie + H37 + END-ANCHOR/ Void-Kette) unter incg.sh: keine neue Rotmeldung gegen den Baum vor H42.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 9, 2026
…Gate), echter Follower-Test, catalog.json ueber beide Baeume neu
Befund 1 (major): Unter der Default-Row-Authority hat jeder Follower in jedem Pass eine Effective-Map ({} eingeschlossen);
der sgl-project#992-Zweig (not_named) uebersprang add_chunked_req fuer eine Fortsetzung, die die Entscheidung nicht nennt -- der Spur-Hold
lief nur auf PP0, PP1/PP2 hielten die Device-Zeilen der geparkten tieferen Spur gesperrt. Behoben: das sgl-project#992-Praedikat ist jetzt
scheduler._pp_chunked_continuation_not_named(sched, incoming, req) und nimmt die vom gestempelten Floor gehaltene Fortsetzung
aus (lanes_p.continuation_held): sie braucht keinen Sitz (kein Chunk, kein Budget, nicht in can_run_list), add_chunked_req
parkt sie an Ort und Stelle (weg2_pool_parked + weg2_lane_parked), process_pending_weg2_park gibt die Zeilen auf jeder Stufe
mit is_insert=True zurueck. sgl-project#992 loggt fuer die gehaltene Fortsetzung nicht mehr mit falscher Ursache. Ohne Lane-Zustand
(Schalter aus / kein RPC) ist das Praedikat der alte Ausdruck. Kommentare in schedule_policy.py und der Modulkopf von
lanes_p.py korrigiert.
Befund 2 (major): neue Klasse FollowerPathTest in test_weg2_lanes_l3_1008.py nimmt den echten Follower-Weg: echter Stempel
(on_rpc/pp0_pass/stamp/absorb/apply_follower), PP0 incoming=None, PP1/PP2 incoming={} (Row Authority), das echte sgl-project#992-Praedikat,
dann der echte PrefillAdder und der echte Scheduler.process_pending_weg2_park je Stufe. CAN-FAIL-Zwilling mit dem alten
Ausdruck: nur PP0 gibt die Zeilen zurueck, PP1/PP2 halten sie. Mutant (Ausnahme entfernt): 4 der 7 Tests rot.
Befund 3 (major): tools/rig_dashboard/rigdash/profil_data/catalog.json mit --tree-27b/--tree-nf neu gebaut
(122 kuratiert, 133 Kanten, beleg_aufloesung_baeume 27b [] / nf []). NF-Baum = dieser Branch (6b3bd1a+L1+L3); 27B-Baum =
84d04ad (Rev des letzten Katalogbaus) plus nur der environ.py-Hunk von L1 (4fd60eb), weil die Kanten K135/K136 fuer beide
Linien gelten und ihr Anker im 27B-Baum sonst fehlt; der echte 27B-Integ-Neubau gehoert zu L5.
test_profil_force_katalog_2002: Kantenzaehler 131/80 -> 133/82 (K135/K136).
Tests (pytest_gedeckelt.sh, Baum desk/planer-lanesl3-1008):
- weg2/test_weg2_lanes_l3_1008.py: 45 passed, 0 failed, 0 skipped.
- Katalog (test_profile_catalog_1003, _union_1005, test_profile_erklaert_1005, test_kantenkatalog_1433, _anker_2013,
test_kanten_loader_2002): 65 passed, 0 failed, 0 skipped.
- Dashboard, ganze Suite tools/rig_dashboard/rigdash/tests (PYTEST_PYTHONPATH=tools/rig_dashboard HWPROFIL_TREE/COUNTING_TREE):
960 passed, 18 skipped, 0 failed.
- Regression weg2 (park_xsn303, pp_room_vote_int19, lanes_l1, nf_n3_unchanged_1005, fh_progress_beacon_0927,
allreduce_admission_pin_1537, p_fork_cut_uniform_0929, chunk_admit_loadback_q700): 159 passed, 0 failed, 0 skipped.
- Regression managers (test_prefill_adder, second_chunked_req_959, chunked_continuation_clamp_946, pp_forwarded_refusal_stop_1153,
prefetch_deferral_1068): 130 passed, 0 failed, 0 skipped.
- Bekannt rot auch auf der Basis 6b3bd1a (gemessen im Basis-Worktree, identisch 13 failed / 23 passed):
managers/test_pp_idle_void_streak_801, test_pp_void_slot_advance_798, test_pp_upstream_void_before_formation_951.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 16, 2026
…robe findet die END-ANCHOR-Tails -- sie liest die gemeinsame Aufzaehlung pp_request_locations statt ihrer eigenen vier Orte Boots 1016_150003 (weg2-6-94) und 1016_151644 (weg2-0-20), derselbe Client-Request nach jedem Neustart: 89664 Tokens, 89600 gecacht, uncached Rest 64. Der Rest passt ganz in einen Chunk, also teilt die END-ANCHOR-Regel (sgl-project#1233, Anker bei floor_grain(N-1), grain 4) ihn in Body 60 + Tail 4. Mit fnFL2 H42 (multi anchor tails) lebt der Tail in Scheduler.anchor_tails -- absichtlich NICHT im einzigen chunked_req-Feld (das fuehrte weiter weg2-0-18: 'sgl-project#992 CHUNKED CONTINUATION NOT NAMED rid=weg2-0-18 decision_names=weg2-0-20'). PP1/PP2 mintet denselben Tail aus der weitergeleiteten Geometrie (ANCHOR-TAILS minted_rids=weg2-0-20 bei slot 1). PP0s slot-2-Zeile nennt den Tail; die sgl-project#631-Row-Probe in _pp_proxy_frame_pending zaehlte aber nur waiting_queue, chunked_req, den Slot-Chunk und running_batch -> "not yet locatable" ohne Aenderung -> 4 Laps -> PpRowDeferCapExceeded, RANK_EXCEPTION. Der Early-Settle (equal/short_satisfied) ist nur der Weg zum ganzen-Chunk-Rest, nicht die Ursache. Fix: _known = pp_request_locations(self) (sgl-project#946: jede Stelle, an der ein Request leben kann, inkl. anchor_tails und Slot-Ring) plus der Chunk des genannten Slots. Keine Lap-Grenze geaendert; eine rid, die an keinem Ort liegt, wird weiter verschoben und endet benannt. Tests: test_pp_row_probe_anchor_tail_1016.py 3 gruen (weg2-6-94 ueber die Lap-Grenze hinaus lokalisierbar, weg2-0-20 nach equal-Early-Settle, eine rid an keinem Ort wird weiter verschoben); auf 1f4b3e7 rot 2. Mutant: anchor_tails aus pp_request_locations entfernt -> ROT 1. Regression 9 Dateien (Row-Probe/sgl-project#1180/#791T/sgl-project#968/sgl-project#946/sgl-project#961/sgl-project#971/H42/K14/244): Kopf 221/1 rot = Basis 221/1 rot (vorbestehend test_weg2_p_multi_anchor_tails_h42::test_count_arm_uses_the_fresh_admission_count). Kaltstart-Rig s7s8 28/28 GRUEN.
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.