Skip to content

Fix the flaky tests in test_moe_eval_accuracy_large.py - #1293

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

merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy
merrymercy merged commit 58fa607 into main Sep 1, 2024
@merrymercy
merrymercy deleted the merrymercy-patch-1 branch September 1, 2024 19:20
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 9, 2026
…-09)

USER ORDER, verbatim: "der decode bs6 soll mit bs6 (nicht mehr bs4) der
standard werden". `D_TP_OBJECTIVE_DEFAULT` moves from "maxkv" to "decode-bs6"
(launcher.py:814). The two operating-point values already exist on this branch
from sgl-project#1293/e6666b0b9c; what changes is which arm you get by saying nothing.

WHAT THE ORDER TRADES, from dec2c's own A/B rather than from an argument: the
bs=6 vector [42,11,11] measured +10.3 % at bs4 for -1.4 % pool. The maxkv law
is therefore OUTRANKED AT THIS OPERATING POINT, not repealed -- the ranking a
boot should follow is the ranking at the operating point it runs, and group D
runs decode. `maxkv` and `speed` stay fully selectable by flag and `maxkv`'s
argv is still byte-identical to the pre-sgl-project#1241 form.

Stated, not just changed. Both provenance lines and the CLI help now carry the
order verbatim, the trade with its numbers, and the fact that maxkv remains
selectable:
  * `WEG2 D-WEIGHTS objective=... (default ...)` -- the old text called maxkv
    "the maxkv law", which would have been a line asserting a default it no
    longer had;
  * `WEG2 D-OPERATING-POINTS ... default %s stays byte-identical` -- that
    clause meant "the default arm's argv did not move", which is only still
    true of the maxkv ARM, so it now says so;
  * `--d-tp-objective` help.

AND ONE STALE CLAIM CORRECTED WHILE IT MATTERS MORE. The help said the two
regime premises are unproven because "no boot has run it yet". A boot HAS run
it: dec2c ran the sgl-project#1241 decode clock and withheld the split on 13,893 of
13,950 rounds (`graph-replay-nodes-overwritten`) -- it measured the rounds and
not the regime. So the premise is still unproven, for a different and nameable
reason, and it is now the premise behind the DEFAULT. sgl-project#1302 fixes that read
and the next dec boot is where the premise first becomes testable. What the
order rests on is the A/B, which is measured; not the regime claim, which is
not.

--d-bs / DEFAULT_D_BS deliberately untouched: separate branch.

Four pins updated, and three of them REBOUND FROM THE CONSTANT TO THE LITERAL
"maxkv" rather than re-pointed at the new default. That is the load-bearing
part of this diff: the byte-identity goldens are about the maxkv ARM, and a
pin written against `D_TP_OBJECTIVE_DEFAULT` would have silently followed the
default to decode-bs6 and gone on passing while proving nothing about the
argv it was written to protect. Renamed accordingly
(`..._the_DEFAULT_maxkv_argv_...` -> `..._the_maxkv_argv_..._when_asked_for`,
`test_the_default_D_argv_renders_identically...` -> `test_the_maxkv_D_argv...`,
`test_1293_the_default_maxkv_argv_is_STILL_byte_identical` ->
`test_1293_the_maxkv_argv_is_STILL_byte_identical`) so no test name asserts a
default it no longer describes.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 9, 2026
… not one sentence

`test_the_bs6_regime_premise_is_marked_UNPROVEN_on_the_row_and_in_help` pinned
the literal "BOTH REGIME PREMISES ARE UNPROVEN" and went red on a wording
change that STRENGTHENED the warning -- the one direction a marking pin should
not defend against.

It now asserts the property: the help says the regime premises are UNPROVEN,
and -- the half that only became true with this order -- that one of them "IS
NOW THE DEFAULT". A reader who gets an arm by saying nothing is entitled to
know its premise is a hypothesis, so that clause is now itself pinned.

Only NEW failure of the objective change; the weg2 suite's other 18 are
present unchanged at the sgl-project#1302 tip (retry-exhaustion, W48 ring-form mismatch,
dormant-image census) and are untouched by this branch.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 26, 2026
…cks, chronologisch)

Grundlage: Präsenz-Scan aller 230 27B-Commits seit 76f8deb gegen diesen Baum
(Stichprobe der hinzugefügten Zeilen je Commit); die 94 fehlenden minus die bewusst
anders gewählten Formen (76e87ac/4ae11ababd -> S3 form.calibration_identity;
479f6ec/d7f588e017/d0fba8955f/34892e3017 -> S2 NF-Formen; 7f81f09/3c14481318 ->
S4/S7a; 3dbb790 line_gate_27b (Werkzeug, Schritt 9); 8604d13 W100-by-name
(Nutzer: bleibt aus); 6545e2c flashinfer-Pin in pyproject (Image-Frage, nicht Baum)).
Liste: 92bbccb eb5d044 829ebd0 431fcbc ef4d11f 6816062 a233e50 2cc593c f0c8451 87cc4fb c529777 31f2dbe c50085a 3301a96 036b368 e1d1fe9 03c68af 6dddc2e 06932b5 87389c4 58a7490 f85ac55 fc64aa5 5aa24dd 97c0e9a 159333c d9f1532 f3c685b 8550655 e50fb59 db2c2ef f09dc0d c255e10 51b810e 28a55a2 34965fc ff3d9cc 340a018 bee5e10 67b6352 fdade85 ed6630d f1c9a43 b434831 517f26d 0b6b60b a40837f 644de86 aff2b7c 197b701 856024b 238512a 9738626 b857a22 1f8c24d d294b3e 810239d b429dfd e714c95 9efd974 3d63e0a d3cfcf3 fee6134 7985b56 49a14e9 fc45706 19c720e 5306bee 6f1235a c98eaa3 93bc802 328349e f9fb3a2 572af73 94fa8b4 d342caa 2fd7d7e 3ebbb96 871d55f 78c2f16 3babf51 196f6a8 e70af54 22eccfc

Inhalt: Upstream-Ports (sgl-project#33758 sgl-project#37818 sgl-project#36738 sgl-project#33459/sgl-project#30096 sgl-project#34446 sgl-project#36267 sgl-project#33778 sgl-project#34859
sgl-project#36415 sgl-project#35255/sgl-project#36638 sgl-project#39858/sgl-project#40259 sgl-project#31417 sgl-project#34892 sgl-project#32225 sgl-project#30832/sgl-project#36626 sgl-project#39574 sgl-project#29579
sgl-project#31468 sgl-project#32575 sgl-project#31648); xsn409/410-Wake-Verdikte; Vision-Linie V1-V3b + xsn438
(SGLANG_WEG2_VISION_FLIP_URGENT); D-Planer L6 (159333c); DFLASH-Window-Pool
sync-frei, PLAN_SYNC_FREE, D-Kollektive (vocab-argmax, a2a-Merge, deferred rebuild),
#DGAP/D_DEFER_SEQ_LENS_CPU; Mamba-Anker Raster 4096 + Per-Path-Cap + Inner-Release;
P-TRIM (--p-trim-end-anchor); FP8 uniform Marlin; ModelOpt/NVFP4 RadixArk; GGUF G1-G6
+ F1/F2; native-mixed sgl-project#38 (sm_8x W4A8, sm_12x CUTLASS/W4A16); RC1-Capture-Set; sgl-project#49
Agent-Turns; dynchunk (--p-chunk-policy, --p-chunk-dynamic-min-tokens).

Auflösungen (Gabel -> Form, Grund):
- L6 d_operating_point_rows: 27B (d) "Token-Vektor auf jeder Position aus der Kapazität"
  nur bei TP-symmetrischem D (Profil d_layout paged_dcp); sonst NF-sgl-project#1293-Pin + NF-Anker-
  Klausel. mamba_ssm_dtype aus EARLY_READ_FACTS nur bei Profil early_read_flags.
  Overhead-Kalibrierung liest mit form.CalibrationIdentity statt LineIdentity.
- RC1 Capture-Set: neuer RecordKey-Term d_capture_set (qwen27b), Leser
  CalibrationIdentity.d_max_running_requests; nextflash unverändert.
- URC Carrier-Hold: 27B _weg2_carrier_hold entfällt (S2 NF-Rotation), Inner-Release und
  Per-Path-Cap bleiben (Env, Default aus; 27b.env setzt sie).
- scheduler_pp_mixin/overlap_utils/batch_result_processor: NF H49/H58 und 27B #PGAP/#DGAP
  komponiert (beide Instrumente getrennt schaltbar).
- schedule_policy: P-TRIM-Kurzschluss vor NF H63-Fold/QSA-Korn; sgl-project#36415 Hoist + NF
  computed_input_len.
- gdn_backend sgl-project#33778: 27B-strided-Verify; NF-Ring flacht beide Layouts ab.
- flashinfer_backend: RC9-Datei + NF-Form-A-Waiver (27B-intern mehrfach gegabelt).
- checkpoint_census: GGUF-Leser + NF exclude_segments (PLE) in einer Aggregation.
- xchg_manifest: FLAT_SEGMENTS in beiden (dst/src) NF-Breitenbedingungen ausgenommen.
- vram_peak_window: NF-Kumulativ-Peak liest über den 27B-Fast-Read.
- FP8: 8c86eb8-Rest nachgezogen (private Workspace-Registry entfernt, wie RC9).
- argv_d: vision= an allen drei Aufrufstellen (inkl. NF --d-only).
- census_checkpoint_decision (W161) jetzt für beide Profile aktiv.

Gates: py_compile aller geänderten Dateien; ruff F821/F811 ohne neue Funde gegenüber
dem Vorgänger (PendingSeqLensCpu ist String-Annotation wie in RC9); dup_defs_gate 0 neu.
Tests: 73 portierte Testdateien, Lauf nach dem Ruhefenster (Boot aktiv).
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 26, 2026
…lots-Felder, Anker-Raster aus dem Profil, 27B-Tests auf die Profilform

- Front --record-line (27B 76e87ac) in der S3-Form: der Launcher gibt die Identitaet
  (model|repo|head|evidence) nur bei Profilen mit Linien-Term (qwen27b); die Front baut
  daraus form.CalibrationIdentity, SidecarView (Sleep-Leg-Gate) liest den Record ueber
  accepts_sample, Warm-up vor READY. nextflash: Front-argv byte-gleich, liest wie bisher.
- weight_updater (slots=True): _weg2_scratch_residue und _weg2_xchg_leg_lock als Felder.
  Gefunden vom 27B-Pin test_weight_updater_slots_fields: der erste schrieb S2 ungeschuetzt
  im NF-Experten-Rearm-Pfad des Wakes (AttributeError), der zweite (fnFL2x82
  Single-Flight) wurde per except AttributeError nie gespeichert.
- Schritt 8 (mamba_anchor): grid4096 traegt SGLANG_WEG2_MAMBA_ANCHOR_INTERVAL 4096 /
  MAX_STATES_PER_PATH 4 als Profil-Default (27b.env-Werte), deepest/none 0; Leser
  mamba_ckpt_utils je Form-String gecacht, explizites Env gewinnt, Desk-Mapping liest
  wie bisher. Neuer Test test_unify_s8_anchor_profile.py.
- schedule_policy/scheduler: NF-H63/QSA-Korn und tp_match_floor.clear lesen page_size,
  Allocator und tree_cache per getattr (27B-Desk-Stubs ohne Pool).
- 27B-Tests auf die Profilform: sgl-project#1293-27B-Tests und Planer-Pool unter veroeffentlichter
  qwen27b-Form; LineIdentity -> form.CalibrationIdentity (planner_pool,
  dc_residue_capture_bs); fp8_xsn441 Default-Aus nur unter qwen27b (S2: Default je
  Profil); inner_anchor_release gegen die NF-H81-Rotation; vision_d_launcher: drei
  argv_d-Stellen (NF --d-only).

Tests (test27b.sh): 102 neue/geaenderte Testdateien, Lauf vor diesen Fixes: 16 Batches,
2 OOM-gekillt (3-GiB-Slot), Rote s. Plan "Schritt 7-9 - Stand"; unify s2/s3/s7/s8 +
record_line 72 passed. dup_defs_gate 0 neu.
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