Skip to content

Update README.md by fixing spelling mistakes. - #312

Merged
merrymercy merged 1 commit into
sgl-project:lorafrom
DeyangKong:patch-1
Mar 22, 2024
Merged

merrymercy merged 1 commit into
sgl-project:lorafrom
DeyangKong:patch-1

Conversation

@DeyangKong

Copy link
Copy Markdown

Fixed mistakes of the word "states" in the code

Fixed spelling mistakes.
@merrymercy
merrymercy merged commit e543891 into sgl-project:lora Mar 22, 2024
efschu added a commit to efschu/htsglang that referenced this pull request Jul 31, 2026
…udit of blocking sites in 4 classes (29 host dist calls on gloo, 6 unbounded cuda.synchronize, 2 fixed-constant busy-polls, 8 device spin kernels whose deadline expiry was SILENT); root cause: GroupCoordinator built cpu_group with hardcoded 7200s gloo timeout ignoring --dist-timeout (same divergence as sgl-project#259) — every HTCCL handshake and the capture barrier used it; fix: bounded_barrier/collective/device_sync/poll with deadline + peer census ((hostname,pid,proc-start) exchanged at bring-up, cross-host peers report UNKNOWN not dead), host-settable abort word in pinned device-mapped memory polled every 1024 iterations capture-safe, raise_if_aborted loud; hot path: zero cost on completing collectives (asserted); +50 tests, failure set byte-identical, no kernel spill reintroduced; GPU proof script attached (kill + ab arms); noted follow-up: TCPStore heartbeat would make remote peers decidable for cross-host TP
efschu added a commit to efschu/htsglang that referenced this pull request Jul 31, 2026
…fable per user approval): staircase axes rung x phase x depth-bin (0.05-1.0, 'auch dazwischen') x format; relief order re-pinned per sgl-project#320 (dcp_ratio < admission_cap < kv_spill < weightless_rank < session_offload); solve_operating_grid solves the KV vector per bin as argmin of lockstep time under fit constraint — format factors exclusively from the sgl-project#324 per-(rank,family) scores, missing inputs named not guessed; STAGE-1 LIMITS HONEST: admission_cap + session_offload are wired actuators, dcp_ratio/kv_spill/weightless_rank are PLANNED-ONLY (physical KV move = sgl-project#297), named in boot inventory and every flip line; rank uniformity: replicated inputs only, commits only at consensus boundaries with UNCONDITIONAL cadence, one MIN-reduction of [v,-v] pairs via the sgl-project#312 bounded_collective, min!=max raises the same loud KvLadderError on all ranks; desync falsifier green (poisoned rank -> all three fail loudly, nobody hangs, nobody commits); graph decision: stage-1 rungs mutate CPU scheduler state outside capture paths, geometry rungs get graph sets later; per-family sum(p/r) arithmetic gated on gemm.mixed — single-scheme checkpoints bit-for-bit unchanged (closed-form pin); 38 new tests, planner 1722 green; CARD PASS: flips 0->1->2 rank-uniform with 0 desync, exactly one retract then prevented, descend + release uniform, negative control byte-identical (first 'differs' was a comparison calibration error, corrected)

# Conflicts:
#	docs/dev/INTEGRATION_R3_VALIDATION.md
efschu added a commit to efschu/htsglang that referenced this pull request Jul 31, 2026
…xchange ordering, no idle sleep while armed

Three findings from the first card window (boot A, Qwen3.6-27B-FP8 TP=3,
KV 7,3,3 with ceiling {7,3,3; 2,11,10}) and their fixes:

1. A parked scheduler never reaches a consensus boundary: the idle sleeper
   parks rank 0 in a zmq poll and the request broadcast parks the other
   ranks behind it, so an armed reshard waited forever. maybe_sleep_on_idle
   now skips the sleep while a target is pending (replicated state, every
   rank takes the same branch; spin bounded by the consensus interval plus
   the move).

2. torch gloo p2p works (SendWork/RecvWork) do not implement is_completed,
   so the bounded poll could never observe completion. The sgl-project#312 family
   caught it exactly as designed: CollectiveTimeoutError after 120 s on all
   three ranks, loud, no hang, no serving from a mixed state. The exchange
   now runs device-native over the TP NCCL group via batch_isend_irecv
   (works poll truthfully, payloads never leave the GPUs) with a
   post-exchange device sync ordering the p2p streams before the scatter.

3. Phase ordering hardened: pool writes now happen strictly AFTER a
   successful exchange + checksum verification -- pack and exchange leave
   the pool byte-identical, so a transport failure aborts cleanly and a
   later boundary may retry; only the write phase remains the fatal
   no-return region. New falsifier: injected exchange failure on every
   rank -> all raise, zero pool bytes moved, target stays armed. 19/19
   hermetic tests green; boot-A log further validated the fitted-ceiling
   sizing (C 522197 -> 251965, binding vector 2,11,10; rank1/2 pool rows
   raised to the ceiling) and the rank-uniform RPC arming.
efschu added a commit to efschu/htsglang that referenced this pull request Jul 31, 2026
…KV resharding at phase boundaries — two-phase PACK -> NCCL batch_isend_irecv with per-pair checksums -> layerwise gather-before-scatter WRITE -> cutover; pool untouched until checksums pass (transport error = clean abort, retry legal; only write phase is fatal-loud); core simplification: the physical row is a PURE FUNCTION of slot id + vector, so req_to_token/radix/allocator need NO metadata rebuild; graph decision: fitted ceiling over the declared vector set (--kv-reshard-vectors) gives stable addresses and NO re-capture (replay metadata rebuilt host-side from refreshed backend bounds), VMM growth is the named follow-up; ownership transition matrix with every reader named, cutover refreshes every backend instance via WeakSet registry + hicache memo invalidation; sgl-project#287-pattern consensus with (armed,ready,epoch,vector) MIN-reduction, desync falsifier green (poisoned rank: all loud, nobody hangs, zero bytes moved); MEASURED: 7,3,3 -> 2,11,10 in 63.5 ms (53 ms NCCL warmup) and back in 9.9 ms — the <1 s target beaten 15-100x; rows mirrored exactly, checksums equal, multi-turn coherent, negative control byte-identical, rerun-text gate honestly falsified via A/A (stock path diverges without the move — move exonerated); two card finds fixed (idle loop never reached a consensus boundary; gloo P2P works are unpollable — sgl-project#312 caught it as a loud 120 s CollectiveTimeout on all ranks, exchange now NCCL-device-native); ladder wired: dcp_ratio flip ARMS the move, POST /kv_reshard; open: stage B, C-raise (the 6.18x sgl-project#320 gain needs growing max_total_num_tokens), kv 7,3,3 no-flag OOM footnote; 19/19 hermetic tests

# Conflicts:
#	docs/dev/INTEGRATION_R3_VALIDATION.md
efschu added a commit to efschu/htsglang that referenced this pull request Aug 1, 2026
…) + transport contract — identity carries kv-dtype (sgl-project#241), GDN refuses store route by name (sgl-project#212), message classes reuse the small/bulk vocabulary (sgl-project#240), all-or-nothing registration (sgl-project#221), bounded waits on a fixed peer universe (sgl-project#259/sgl-project#312); LoopbackLink makes the byte gate real, NCCL wire path deliberately unbuilt pending the 2-instance card ticket (sgl-project#111 L0)
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