Repository navigation
jump-forward rename - #144
Merged
Merged
Conversation
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
NorthmanPKU
added a commit
to NorthmanPKU/sglang
that referenced
this pull request
May 16, 2025
* initial impl * format * fix bugs and add a docu * add more operators * a functional version for the nki_rms_norm example * Triton transpiler first version (sgl-project#144) * Initial version. Generated demo can run. * clear json --------- Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> * bug fix * bug fix * Triton Transpiler Update (sgl-project#150) * Initial version. Generated demo can run. * clear json * Dynamic scheduling of search with OpenMP (sgl-project#142) * fork-join working * improve gqa * modified z3 caching * tested different threads * did format.sh * redundant code * modified num threads * Formal verification for equivalence checking between MuGrpahs (sgl-project#141) * set default strides for outputs * checkpoint * Support input/output stride specification in search * undo changes in cmake files * fix json key error * refactor search code a bit & initialize symbolic verification * checkpoint * debug * fix * fix * format * remove debug code * [Transpiler] Allow the transpiler to return errors for untranspilable muGraphs (sgl-project#147) * Update a state field to the transpileresult * compile issues * update interface * add missing files * add a constraint that each stensor can have at most 1 swizzled dim * 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit --------- Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Kit Ao <[email protected]> Co-authored-by: Mengdi Wu <[email protected]> Co-authored-by: Zhihao Jia <[email protected]> * [NKI] Allow NKI transpiler to report descriptive errors for valid mugraph to proceed to (sgl-project#151) next mugraph * Add Triton Transpiler doc (sgl-project#152) * Initial version. Generated demo can run. * clear json * 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit * triton doc --------- Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> * fix unbalanced parenthesis in matmul transpose (sgl-project#154) --------- Co-authored-by: NorthmanPKU <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Gabriele Oliaro <[email protected]> Co-authored-by: Kit Ao <[email protected]> Co-authored-by: Mengdi Wu <[email protected]> Co-authored-by: segfault <[email protected]>
NorthmanPKU
added a commit
to NorthmanPKU/sglang
that referenced
this pull request
May 16, 2025
* initial impl * format * fix bugs and add a docu * add more operators * a functional version for the nki_rms_norm example * Initial version. Generated demo can run. * clear json * Triton transpiler first version (sgl-project#144) * Initial version. Generated demo can run. * clear json --------- Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> * bug fix * bug fix * 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit * Triton Transpiler Update (sgl-project#150) * Initial version. Generated demo can run. * clear json * Dynamic scheduling of search with OpenMP (sgl-project#142) * fork-join working * improve gqa * modified z3 caching * tested different threads * did format.sh * redundant code * modified num threads * Formal verification for equivalence checking between MuGrpahs (sgl-project#141) * set default strides for outputs * checkpoint * Support input/output stride specification in search * undo changes in cmake files * fix json key error * refactor search code a bit & initialize symbolic verification * checkpoint * debug * fix * fix * format * remove debug code * [Transpiler] Allow the transpiler to return errors for untranspilable muGraphs (sgl-project#147) * Update a state field to the transpileresult * compile issues * update interface * add missing files * add a constraint that each stensor can have at most 1 swizzled dim * 1. Debug offset 2. Add TritonProfiler 3. Add mask for 'power of 2' limit 4. Add min 16 tl.dot() limit --------- Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Kit Ao <[email protected]> Co-authored-by: Mengdi Wu <[email protected]> Co-authored-by: Zhihao Jia <[email protected]> * triton doc * [NKI] Allow NKI transpiler to report descriptive errors for valid mugraph to proceed to (sgl-project#151) next mugraph * dtype consistence & del generated code * 1. MIRAGE_ROOT in kernel.py 2. add paras in kernel.py 3. rm tqdm in loop and redundant notes 4. rm redundant output in get_input_dim_expr * ignore * add tqdm to requirements * run all iters in a single subprocess * 1. Support directly calling graph as funcs 1.1. add execute_mugraph() in generated code 1.2. change __call__ to support several backends 1.3. other relative modify 2. fix some errors in triton transpiler including mask form and matmul op --------- Co-authored-by: Zhihao Jia <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Jianan Ji <[email protected]> Co-authored-by: Gabriele Oliaro <[email protected]> Co-authored-by: Kit Ao <[email protected]> Co-authored-by: Mengdi Wu <[email protected]> Co-authored-by: segfault <[email protected]>
rucnyz
added a commit
to rucnyz/sglang
that referenced
this pull request
Jun 2, 2026
…el README
DESIGN.md is the spec source of truth. Removed docs whose content
duplicates DESIGN, narrates an incident now closed, or refers to the
pre-round-9 schema:
- NOTES.md (incident narratives + env table duplicated in CLAUDE.md memory)
- scenarios/MIGRATION_PLAN.md (migration done)
- scenarios/_shared/methodology.md (N>=3 protocol now in PLAN.md §5)
- scenarios/experiments_notes/{GAPS, runaway_tail, ttft_analysis,
swa_assert_hypothesis, instrument_chain, algo_baselines_sim}.md
- scenarios/1_swebench_default/_archive_N3_matrix_SUMMARY.md
- scenarios/2_hbm_pressure/PLAN.md (duplicates top-level PLAN.md)
Top-level README rewritten as a 1-page index pointing at
DESIGN/PLAN/RUNBOOK and per-subdir READMEs. Methodology block added
to PLAN.md §5 (N>=3 cycles, B/O alternation, fixed knobs, acceptance
rule). Lingering dead links in active docs fixed; per-arm RESULTS.md
frozen records left intact.
Per-verify-T cleanup happens in tasks sgl-project#133-sgl-project#144 (verify/t1 ... t11
+ g10 audit-and-refresh).
efschu
added a commit
to efschu/htsglang
that referenced
this pull request
Jul 21, 2026
…lect, per-card reserve, RAM-offload fit Config-planner dashboard improvements (sgl-project#144), CPU-only. PART 1 — size estimation (the "no space when there IS space" bug): * MoE weight sizing: a sparse-MoE checkpoint (Qwen3.5-MoE) carries no dense intermediate_size, only num_experts routed experts of moe_intermediate_size. The cost model KeyError'd on the missing key and (before that) ignored the expert mass entirely. Now falls back to the MoE width and counts num_experts*3*H*moe_i (+ shared expert) as the FFN mass. FP8 / AWQ / GPTQ / GGUF 35B-A3B now size within ~2% of on-disk weight bytes and fit on the rig. * GGUF MoE header: read expert_count / expert_feed_forward_length / expert_shared_feed_forward_length; map ffn_*_exps tensors into the mlp family so the expert bytes are counted. * Replicated-KV regime: when kv_heads < tp (2 KV heads, TP=3) the shard now follows the q-head grid (KV replicated + token-shard) instead of crashing in partition_units. Only reached when attn_units < tp; the kv_heads>=tp path is byte-identical. * model.py: a GGUF export dir that ALSO carries a BF16 config.json (Unsloth) now sizes from the .gguf header, never the BF16 config (~4x over-count). Multi-gguf dirs expose a quant picker (list_gguf_options); mmproj/imatrix sidecars excluded. * Regression guard: test_moe_gguf_sizing.py asserts the six refs size within +/-10% of on-disk weight bytes and yield a feasible plan on the real rig (skips when the local model cache is absent). PART 2 — web UI GPU auto-detect + selection: /api/detect auto-lists the local GPUs as a checkbox card list (name + VRAM + free); manual "add card" and "add future GPU" rows let you plan hypothetical/future rigs alongside the detected ones (set the VRAM yourself, multiple times) to see what context a new card would buy. PART 3 — per-card free-reserve: each card row has a "keep N GiB free" input, threaded into user_free_reserve_mib (visually tied to its card). PART 4 — RAM-offload in the fit logic: instead of a flat "no space", the planner computes how much must tier to host RAM and reports fits-in-VRAM (fast) / fits-with-RAM-offload (slower, PCIe-bound) / cannot-fit. Only the MoE routed experts are treated as offloadable (the fork's sgl-project#77 expert-offload); dense MLP / attention / embeddings / GDN / shared expert stay resident, so offload is never claimed for a class the runtime cannot tier. Host RAM is auto-detected or supplied (--host-ram-gb / UI input). CLI/back-compat: --gpu and --plan-free-reserve-gb paths unchanged; the offload verdict is surfaced in text + JSON output. Tests: 209 planner/uneven unit tests pass; new sizing/offload guard green on the real model cache.
efschu
added a commit
to efschu/htsglang
that referenced
this pull request
Jul 22, 2026
…lect, per-card reserve, RAM-offload fit Config-planner dashboard improvements (sgl-project#144), CPU-only. PART 1 — size estimation (the "no space when there IS space" bug): * MoE weight sizing: a sparse-MoE checkpoint (Qwen3.5-MoE) carries no dense intermediate_size, only num_experts routed experts of moe_intermediate_size. The cost model KeyError'd on the missing key and (before that) ignored the expert mass entirely. Now falls back to the MoE width and counts num_experts*3*H*moe_i (+ shared expert) as the FFN mass. FP8 / AWQ / GPTQ / GGUF 35B-A3B now size within ~2% of on-disk weight bytes and fit on the rig. * GGUF MoE header: read expert_count / expert_feed_forward_length / expert_shared_feed_forward_length; map ffn_*_exps tensors into the mlp family so the expert bytes are counted. * Replicated-KV regime: when kv_heads < tp (2 KV heads, TP=3) the shard now follows the q-head grid (KV replicated + token-shard) instead of crashing in partition_units. Only reached when attn_units < tp; the kv_heads>=tp path is byte-identical. * model.py: a GGUF export dir that ALSO carries a BF16 config.json (Unsloth) now sizes from the .gguf header, never the BF16 config (~4x over-count). Multi-gguf dirs expose a quant picker (list_gguf_options); mmproj/imatrix sidecars excluded. * Regression guard: test_moe_gguf_sizing.py asserts the six refs size within +/-10% of on-disk weight bytes and yield a feasible plan on the real rig (skips when the local model cache is absent). PART 2 — web UI GPU auto-detect + selection: /api/detect auto-lists the local GPUs as a checkbox card list (name + VRAM + free); manual "add card" and "add future GPU" rows let you plan hypothetical/future rigs alongside the detected ones (set the VRAM yourself, multiple times) to see what context a new card would buy. PART 3 — per-card free-reserve: each card row has a "keep N GiB free" input, threaded into user_free_reserve_mib (visually tied to its card). PART 4 — RAM-offload in the fit logic: instead of a flat "no space", the planner computes how much must tier to host RAM and reports fits-in-VRAM (fast) / fits-with-RAM-offload (slower, PCIe-bound) / cannot-fit. Only the MoE routed experts are treated as offloadable (the fork's sgl-project#77 expert-offload); dense MLP / attention / embeddings / GDN / shared expert stay resident, so offload is never claimed for a class the runtime cannot tier. Host RAM is auto-detected or supplied (--host-ram-gb / UI input). CLI/back-compat: --gpu and --plan-free-reserve-gb paths unchanged; the offload verdict is surfaced in text + JSON output. Tests: 209 planner/uneven unit tests pass; new sizing/offload guard green on the real model cache.
Chosen-David
pushed a commit
to Chosen-David/sglang
that referenced
this pull request
Oct 6, 2026
- per-sample jsonl(git add -f 绕过 *.jsonl 忽略):E98 主表臂/E100 tail 13 任务、 E98 e2e 网格 15 臂、E103/E90/E87/E89(MoBA) 消融臂、E101/E104 RULER、 FullKV pred_1024 -none- 13 文件(+0.42 CI 配对至此双双落 git) - exp/trace_archives/:跑批脚本/日志/runs ledger/mass 16 分片/tli_chain 全目录 + README/MANIFEST/md5 清单(CODEMAP.md 加归档索引节) - trace dump 68GB(qwen3-8b/30b/32b,不可再生)→ ~/.archive/trace-dumps/ (不入 git,逐文件 md5 同步入库 trace_dumps_md5/,抽样核对一致) - /tmp 原文件未删;e105/e107 在跑资产与可再生外部 clone 按 MANIFEST 跳过 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Chosen-David
pushed a commit
to Chosen-David/sglang
that referenced
this pull request
Oct 7, 2026
E71/E81/E89 基线臂(Quest/TIA/TWI/none/TLI 变体)per-sample 预测 此前被根 .gitignore *.jsonl 挡住未跟踪,add -f 补齐——至此 pred_1024 86 文件全部落 git,主表基线证据 per-sample 级可复算。 Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.