Skip to content

Moonshot P4b: pin 132 mamba slots; record the second void attempt - #106

Merged
SamMausberg merged 1 commit into
mainfrom
moonshot/p4-mamba-slots
Oct 1, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
moonshot/p4-mamba-slots

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

P4b's second attempt (20261001T104311Z) stopped at its admission preflight, before the
probe and the A/B. This PR records that attempt and the amendment that follows from it. It was
committed before any further run (5207b02, 10:55 UTC).

What the preflight showed

  • Both arms peaked at 127 running in the profiling phase. The KV pool was pinned at 655,360
    tokens and was 40% used, so KV was not the limit.
  • The 128th request stayed queued with mamba num: 127, mamba usage: 0.99. Long prompts are
    admitted five at a time under chunked prefill (8,192 tokens per pass), and the last admission
    found no schedulable mamba slot while one of the 128 was free.
  • Bench's radix-off servers with 128 slots reached 128, because their short prompts were all
    admitted in one pass.

Change

  • p4_pools pins --max-mamba-cache-size 132, identical in both arms. --max-running-requests
    stays at 128 and --max-total-tokens at 655,360.
  • validate_p4_ab.py's pinned-pool constant reads 132 for mamba slots. There is no other
    validator change. The test fixtures follow (FP32 pool size for 133 slots: 6.23 GiB).
  • run_p4_admission.sh runs the admission preflight on its own: both arms with the pinned pools,
    128 long prompts at OSL 512, requiring #running-req: 128 in the profiling phase. It needs
    the full memory configuration, so it runs as a short exclusive job. The full job is queued only
    after it passes.
  • README 2c records the void attempt (no results reported) and the dated amendment.

Testing

The validator, admission, probe and lever tests pass (35 passed, 3 skipped), and
pre-commit run passes.

…reflight on its own

The rerun (20261001T104311Z) stopped at its admission preflight: both arms peaked at 127
running with a 655,360-token KV pool at 40% usage. The 128th request queued with
'mamba num: 127, mamba usage: 0.99': under chunked prefill (five prompts per 8,192-token
pass) the last admission found no schedulable mamba slot while one of 128 was free. The A/B
arms now pin --max-mamba-cache-size 132 (running limit 128 and KV pool unchanged), and the
validator's pinned-pool constant reads 132 (no other validator change). README 2c records
the void attempt (no results) and the amendment. run_p4_admission.sh runs the preflight on
its own (exclusive, a few minutes) before the full job is queued.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T10:57:30.359932Z 5207b02 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional: Codex is running on 5207b02, and I'll re-check it before merge)

Reviewed head 5207b02, committed 10:55:22 UTC.

Integrator checks:

  • The only validator change is the pinned constant. In validate_p4_ab.py only POOLS['max_mamba_cache_size'] changes, 128 → 132, plus the docstring line naming it. The test fixtures follow. Nothing else in the validator moves.
  • The void record reports no results. The second attempt's entry gives what stopped it: a peak of 127 in both arms at 655,360 KV tokens, with KV usage 0.40 and mamba num: 127, mamba usage: 0.99 with one request queued, which I read in its preflight log earlier. It reports no probe or throughput outcome, and says so ("No results of this attempt are reported").
  • The amendment predates both runs.
    • The standalone preflight (run_p4_admission.sh) is queued with arrival ~10:56:13 and has not run: p4_admission.log is empty.
    • The job's checkout ~/vp-wt/moonshot-decl is at 5207b02 with a clean tree.
    • The only earlier preflight output (p4_admission_20261001T104311Z) is the second void attempt.
    • The full run is queued only after the preflight passes.

The rest:

  • The change is minimal and identical in both arms. --max-mamba-cache-size 132, with running 128 and KV 655,360 unchanged.
  • run_p4_admission.sh mirrors the main script's protections. It sanitizes the environment, requires both trees clean, and runs the same check_admission.py, so it decides before the full job is queued.
  • Checks. The tests pass (33), pre-commit passes, and the commit is Sam's with no AI attribution.

Suggestions (not blocking):

  • validate_p4_ab.py's docstring still says "(max_total_num_tokens; 360,448 requested)". The pin has been 655,360 since Moonshot P4b: void-run record; rerun with 655,360 KV tokens and a 128-admission preflight #103; please correct it in the next change.
  • The README states the mechanism as fact: "the last admission found no schedulable mamba slot while one was free". It comes from reading the log and SGLang's scheduler, not from an instrumented run. Mark it "likely" or "from the log" until the 132-slot preflight confirms it.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Codex finished on 5207b02 with no comments, so my provisional approval at 5207b02 (#106 (comment)) now stands without conditions.

@SamMausberg
SamMausberg merged commit 342c17f into main Oct 1, 2026
SamMausberg added a commit that referenced this pull request Oct 1, 2026
From moonshot README 2c after #106. The first run is void, with the
cause then judged likely given as such. The second attempt was void at
its admission preflight: 127 running again with the attention cache at
40% use, so the cache was not the limit; likely, from the log, the
recurrent-state slots were. Both arms then pin 132 recurrent-state slots
before any further run, and the preflight runs on its own first. No
result of either attempt is reported. The p4-declared entry covers both
attempts and lists run_p4_admission.sh.
SamMausberg added a commit that referenced this pull request Oct 1, 2026
Appendix E.5: P4's two void attempts and the pre-declared amendments (#103, #106)
@SamMausberg
SamMausberg deleted the moonshot/p4-mamba-slots branch October 1, 2026 14:35
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