Skip to content

Update backend.md - #1429

Merged
merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1
Sep 15, 2024
Merged

merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

sync with README.md

@merrymercy
merrymercy merged commit 282681b into main Sep 15, 2024
@merrymercy
merrymercy deleted the merrymercy-patch-1 branch September 15, 2024 09:55
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 16, 2026
…ICE counter, so a CUDA-graph replay counts

Boot kvt7d (16.09. 16:06Z, D-layout TP3 uneven DCP + MTP + graphs, --kv-tail-min-tokens 16384):
READY after 120 s, 0 tracebacks at boot; the DCP verify merge (sgl-project#1428) ran (tail_merges rose to
288 during graph capture). On the needle request the verify steps replayed captured graphs:
the tail wrapper's kernels ran, but note_merge() is Python and a replay runs no Python, so
tail_merges_this_step stayed 0 and the W56 falsifier refused a tail that WAS read
(W56 raised from init_forward_metadata_out_graph -> _kv_tail_plan_verify -> plan).

Fix: KvTailRing._merge_dev, an int64 device scalar bumped in note_merge() by a captured
kernel; plan() (out of graph) reads it and folds the delta into tail_merges /
tail_merges_this_step before the W56 judgement. Eager steps count once (delta == Python
count), replays count on the device only. reset() zeroes it.

Tests: test/registered/unit/mem_cache/test_kv_tail_1243.py 130 passed, 19 subtests
(hermetic): replayed-graph merges (device bump, no note_merge) are accepted; eager merges
are not double counted; reset zeroes the device counter.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 16, 2026
…ame walk instead of traceback.format_stack. py-spy on xsn190 caught PP0's main thread formatting a stack (linecache source reads) on every probe-slot free of the idle PP loop, ~1000x/s. Same file:line provenance, microseconds. Tests: mamba floor/583/773/904 green.
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