Skip to content

Fix no-cache mode - #136

Merged
Ying1123 merged 1 commit into
mainfrom
ying-debug
Feb 3, 2024
Merged

Ying1123 merged 1 commit into
mainfrom
ying-debug

Conversation

@Ying1123

@Ying1123 Ying1123 commented Feb 3, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@Ying1123
Ying1123 merged commit 45d6592 into main Feb 3, 2024
@Ying1123
Ying1123 deleted the ying-debug branch February 3, 2024 12:59
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
NorthmanPKU pushed a commit to NorthmanPKU/sglang that referenced this pull request May 16, 2025
* fit for distribution

* Add dockerfile
pi314ever pushed a commit to pi314ever/sglang that referenced this pull request Sep 5, 2025
* use torch inference mode

* decorate model runner method also
sabreshao pushed a commit to sabreshao/sglang that referenced this pull request Jan 8, 2026
vschandramourya pushed a commit to vschandramourya/sglang that referenced this pull request Feb 3, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
rucnyz added a commit to rucnyz/sglang that referenced this pull request Jun 2, 2026
…rror

Renames following the infra non-Tn pattern (sgl-project#135 / sgl-project#136).  Also fixes
a latent NameError in cold_start_probe introduced by my earlier
event_router.py rewrite (commit 119faf5):

  daemon/event_router.py cold_start_probe:
    The new schema rewrite kept the synth-payload's used_bytes/cap_bytes
    fields but dropped the lines that compute them — `used` and `cap`
    were left as undefined names that would NameError when occ >
    theta_hi.  The t5 stub deliberately reports occ=0.885 to trigger
    this exact path; was caught when the verify ran post-rename.  Fix
    computes used = sum(subpool.used_bytes), cap = sum(...).

verify/daemon_webhook_router/verify.py:
  - Updated stub /aginfer/state to emit the DESIGN §5 (post-T17)
    schema shape; pre-fix returned the legacy tier_usage/page_size
    flat dict which would now KeyError the daemon's startup probe.
  - Fixed firer.maybe_fire signature drift: old call
    `maybe_fire(used_tokens=58000, cap_tokens=65536)` used kwargs
    that no longer exist; production API is `maybe_fire(occ: float)`.
    Test now passes 58000/65536 ≈ 0.885.
  - README header banner rewritten; pending probes for T23 / T24 /
    T31 (APPLY_FAILED / HASH_COLLISION / SESSION_END webhooks) noted.

Test result: all 11 layer-A probes PASS.  Arrival→handler
p50 = 0.80 ± 0.01 ms, p99 = 1.10 ± 0.09 ms (5 runs × 50).

verify/README.md top-level index: row 6 updated.
rucnyz added a commit to rucnyz/sglang that referenced this pull request Jun 2, 2026
Same infra-rename pattern (sgl-project#135/sgl-project#136/sgl-project#137).  No code change in the
verify itself — t6 already had no schema-stale refs (the program
tracker is a pure FSM; doesn't touch /aginfer/state).

README:
  - Banner rewritten as 'infrastructure regression-guard' status.
  - OPEN WORK kept (still applies — T33 didn't add ENDED state) but
    now references T31 (SESSION_END EventKind) + T41 (mark_ended +
    EventBus.forget) by Tn instead of the deleted N3_GAPS catalog.

verify/README.md row 4 updated.

Test result: 10 steps PASS in 213 ms.  No defensive-fallback / stale-
schema findings in this refresh.
efschu added a commit to efschu/htsglang that referenced this pull request Jul 23, 2026
…ogy SVGs; add runtime-feature diagrams

TOPOLOGIES.md 2.7: TP=5 co-location was booted+validated on the 3-card rig
(--rank-gpu-id 0,0,0,1,2, 3 ranks time-slicing the 5090 via MPS, 1 rank/3080,
bit-identical across two boots); kv-boundary-aware auto planner (sgl-project#116). Replaces
the incorrect "TP=5 not booted here / TP=4 first boot" wording.

gen.py: rework diagram 07 to the booted TP=5 layout (3 co-located ranks, MPS
time-slice). Neutralize upstream-comparison wording across all paired diagrams
(stock->upstream; drop WASTED/OOM/impossible/refuses/throttles/fails) to match
the neutral prose. Update weightless diagram 06 (graph-decode landed sgl-project#133/sgl-project#136,
262k measured, not eager-only/"4x"). Align offload correctness/perf wording with
the corrected prose (self-deterministic, not bit-identical; factors not
benchmarked).

Add four runtime-feature diagrams + Part 3 sections:
- 17 adaptive drafter routing (NEXTN/DFLASH dual residence, policy vs bandit,
  ctx-gate) (§5)
- 18 session KV spill (newest-first host offload, keeps decoding; S1 measured
  vs modeled curves) (§20)
- 19 fast-lane priority scheduling (reserved-heavy floor, aging, spill interplay)
  (§16)
- 20 measured VRAM budget (component registry, KV as measured remainder,
  corridor rule) (§10)

All 20 SVGs regenerated and validated as well-formed XML.
Chosen-David pushed a commit to Chosen-David/sglang that referenced this pull request Oct 6, 2026
… 样本×8 层,E85 口径)

S1 布局等价性(r1b_pair_map.json + r1b_s1_layout_equiv.json):
- E85b 三重判决 13/13 臂 GPU fp32 逐位复现(delta 全 0):频率单调 0.8113/0.3603/0.0040、
  配对完整性 mismatch 崩 0.5672、16 对饱和 pair8 0.4731→pair16 0.8113
- 置换等价性(审稿 S1 最小验证)通过:split-half→adjacent 重排与随机置换下
  max|Δrecall|=0、选择集合重合率=1.0000(202/202)——按频率对定义的子空间接口布局无关
- 选取规则对比:tail32 频率先验 0.8113 < sparq|q| 0.8482 < static_pair 0.8493 <
  pair_adapt 0.8652;random16pairs 0.2808 负对照
- pair-map 落盘:Qwen3-8B θ=1e6,pair j=(j,j+64) 共 64 对逐对 dims+inv_freq,
  tail32=对 48..63(16 个最低频完整对)

S2 级联损失分解(r1b_cascade_decomposition.json,BP=64 块池,B_TOK=2048/1024 两档):
- 四参照点(宽口径均值):full128_oracle 1.0000 / full128+两级 0.9814 /
  tail32_oracle 0.9590 / tail32+两级 0.9179;主配置 mixed(L1full+L2tail) 0.9428
- 三段分解:降维 0.0410 + 两级@tail 0.0411 = 总 0.0821(紧口径几乎同:0.0828)
- true-top 精确恒等分解:L1 块粗筛 0.0809(总损失 98.5%)+ L2 细筛 0.0011 − spurious≈0,
  identity 自检残差 0;L1 再拆:块预算限制仅 0.0003、minmax 上界近似 0.0807——
  L1 损失主因是 minmax 块粗筛在 tail32 特征下区分度不足,非块数不够也非选频本身
- mixed 比 tail32+两级高 2.5pt:L1 粗筛子空间选择(full128 vs tail32)是主要质量杠杆,
  与 E100 e2e(tail32 L1 臂 −0.25)方向一致

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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