Skip to content

Public slim logits parity from m1-demo-v1 - #2

Merged
RAFAELDCOELHO merged 2 commits into
mainfrom
cursor/public-slim-fresh-clone-2f23
Sep 1, 2026
Merged

Public slim logits parity from m1-demo-v1#2
RAFAELDCOELHO merged 2 commits into
mainfrom
cursor/public-slim-fresh-clone-2f23

Conversation

@RAFAELDCOELHO

@RAFAELDCOELHO RAFAELDCOELHO commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Public proof from m1-demo-v1 model_slim.pt only. No private checkpoint. No invented numbers.

Forward / logits (allowed)

  • Generator: scripts/gen_slim_logits_fixture.py loads the public slim, runs PersonaCore PyTorch (attn_impl=manual, float64) and this engine on the documented 16-token input [8184, 1, …, 15] (not private val.bin).
  • Committed fixture: fixtures/slim_logits_public.npz (~1.9 MB). Not the 55 MB .pt.
  • Measured relative error: 2.123856e-15. Argmax identical. Tests recompute that error against the derived 1e-11 bound / 1e-12 canary.
  • Fresh clone: 435 passed, 24 skipped. The logits test passes without downloading the slim.

M4 / AdamW (not allowed — honest skip)

  • Slim keys are {schema_version, model, model_config, git_sha, step, val_loss}. No optimizer.
  • test_m4_adamw_from_public_slim_is_not_claimed is an explicit skip. Do not invent that proof.

CI

  • .github/workflows/ci.yml runs pytest with no slim download.

v1.0 proof table in the README is unchanged. LICENSE is not on this branch (it lives on PR #1).

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 1, 2026 22:26
The m1-demo-v1 model_slim.pt matches this GPT (6/6/384/256, tied embed,
13,891,584 params) and can drive a forward. It is inference-only: no
published PyTorch grads, so backward parity is not claimed. Architecture
and schema gates always run; the 55 MB file is not committed and CI must
not download it.

Co-authored-by: RAFAELDCOELHO <RAFAELDCOELHO@users.noreply.github.com>
Freeze a 16-token forward from m1-demo-v1 model_slim.pt (PyTorch manual
attn, float64) against this engine. Measured relative error 2.123856e-15.
No private checkpoint, no optimizer/AdamW claim. CI runs without
downloading the 55 MB weights.

Co-authored-by: RAFAELDCOELHO <RAFAELDCOELHO@users.noreply.github.com>
@cursor cursor Bot changed the title Prove what the public PersonaCore slim allows on a fresh clone Public slim logits parity from m1-demo-v1 Sep 1, 2026
@RAFAELDCOELHO
RAFAELDCOELHO marked this pull request as ready for review September 1, 2026 22:33
@RAFAELDCOELHO
RAFAELDCOELHO merged commit 0b578ed into main Sep 1, 2026
2 checks passed
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.

2 participants