[Engine] Combine STRATA_SPEC_COST with online depth calibration for adaptive MTP stopping
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp
- Lĩnh vực
- backend, performance
Hướng nghiên cứu
Start by reviewing the linked draft-gate repository’s ZeroMLRenewalController reference and the Strata code that implements STRATA_SPEC_COST; the issue does not name source files or tests. Compare the reference stopping rule with Strata’s measured ver_ms[T] costs, then validate behavior in the engine across model and quantization settings. Done means the opt-in rule adapts draft depth while preserving standard MTP verification; the issue notes that in-source and batch or long-context testing remain outstanding.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Improve adaptive MTP draft stopping (e.g., as an opt-in evolution of STRATA_SPEC_COST) by combining Strata's measured per-window cost table (ver_ms[T]) with online per-depth acceptance calibration and a global throughput stopping rule (surv_k > lambda_ema * delta_T_ver[k]).
Why / measured evidence (Strata 0.1.54, RTX 3060 12 GB + Xeon E5-2695 v4, Qwen3.8-Flash-Next IQ3_XXS, 5 mirrored/interleaved rounds, 360 requests, --prompt-cache 0, read-only expert-profile.bin):
Strata's per-window CUDA Graph capture (T=1..8) already lets --spec-min-p deliver real, consistent live speedups over static MTP (p_min=0.00):
Mode (qwen-fast-128k base) |
Rounds (n) | Mean (tok/s) | Median (tok/s) | Weighted (tok/s) | vs p=0.00 (same --spec) |
Acc (%) | Avg T |
Win / Ver / Drf (ms) |
|---|---|---|---|---|---|---|---|---|
No MTP (--spec 2, no --mtp, --suffix-draft 0) |
2 (20) | 45.62 | 45.85 | 45.61 | — | 0.0% | 1.00 | 21.9 / 21.8 / 0.0 |
--spec 4, p_min=0.00 |
5 (50) | 71.22 | 73.90 | 68.25 | base | 51.8% | 3.97 | 37.2 / 34.0 / 3.1 |
--spec 4, STRATA_SPEC_COST=1 |
2 (20) | 71.09 | 71.65 | 69.76 | +2.32% | 68.2% | 2.75 | 31.2 / 29.0 / 2.1 |
--spec 4, p_min=0.50 |
5 (50) | 75.02 | 74.05 | 72.99 | +6.95% | 68.1% | 3.21 | 33.7 / 30.9 / 2.7 |
--spec 4, p_min=0.65 |
5 (50) | 75.83 | 76.95 | 73.75 | +8.06% | 77.6% | 2.84 | 32.1 / 29.5 / 2.4 |
--spec 5, p_min=0.00 |
2 (20) | 62.27 | 62.00 | 58.17 | base | 44.2% | 4.96 | 47.1 / 43.1 / 3.8 |
--spec 5, STRATA_SPEC_COST=1 |
2 (20) | 72.82 | 73.05 | 71.04 | +22.12% | 67.8% | 2.97 | 32.5 / 30.0 / 2.3 |
--spec 5, p_min=0.65 |
2 (20) | 72.82 | 75.25 | 71.24 | +22.46% | 74.5% | 3.20 | 35.9 / 33.0 / 2.8 |
Two specific observations from STRATA_DECODE_TIMING=1 and STRATA_SPEC_DEPTH=1:
- Verify time scales at
+4.1 ms/draftforT=1..4(21.8 -> 34.0 ms), then jumps+9.1 msonT=4->5(34.0 -> 43.1 ms), while MTP draft time stays ~1.0 ms/draft. STRATA_SPEC_COST=1successfully avoided theT=5cliff on--spec 5(and slightly beatp_min=0.65on JSON and refactoring), but on--spec 4it trailedp_min=0.65(69.76vs74.00 tok/s) because acceptance atavg T=2.75was68.2%vs78.4%forp_min=0.65atavg T=2.85.
Combining Strata's measured window-cost table with calibrated cumulative survival probability (ZeroMLRenewalController, ~25 lines of zero-ML C++17 in the linked repo) aims to keep --spec 4's high acceptance/speed while automatically adapting to nonlinear window cliffs and per-model/per-quantization overconfidence—lossless relative to standard MTP verification.
Full raw JSONL data, exact flags (including STRATA_ROUTE_PRIOR=1.5 and STRATA_ROUTE_TAIL_SKIP=7 held identical across all arms), charts, and reference C++17 header: https://github.com/piwoMazda/draft-gate
(Transparency note: the idea is mine, while benchmarking, analysis, and reference C++ code were prepared with Gemini 4 Neon. Not yet tested inside Strata's C++ source, nor under --batch or long contexts. I won't be returning to reply to comments, so all reproduction data and FOR_LLMS.md are self-contained in the repository.)
What do you do today instead?
Today I stay on --spec 4 and tune --spec-min-p manually (0.65 slightly beat the 0.50 default across our 5 mirrored rounds on this RTX 3060 12 GB, with 77.6% vs 68.1% acceptance and ~+1.1% weighted throughput), leaving STRATA_SPEC_COST off on --spec 4.
- Ngôn ngữ chính
- C++
- Star
- 11.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Niko1221/Strata
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Niko1221/Strata#7365 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 4 ngày
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Niko1221/Strata#7276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Niko1221/Strata#7230 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của Niko1221/Strata
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Quantinuum/tket#2282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
Maintainer thường phản hồi trong vòng 10 ngày
-
Server crashes when a mob dies to poisonCó thể đã có người làm @joelstiller đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DarkCastleMUD/DarkCastle#305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Issue]: RAS status report lists the wrong pids for an outlier nodeCó thể đã có người làm @bhargavchintam đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày