Skip to content

Tensor and model files onto the slot API (#1665 arm D B5) - #1713

Merged
InauguralPhysicist merged 2 commits into
mainfrom
arm-d-B5
Oct 11, 2026
Merged

InauguralPhysicist merged 2 commits into
mainfrom
arm-d-B5

Conversation

@InauguralPhysicist

Copy link
Copy Markdown
Collaborator

Part of #1665: batch B5 of the arm D step-2 design. builtins_tensor.c, model_infer.c, model_train.c and model_io.c leave the legacy borrow API and join the migrated-files gate. Storage stays Value**.

Fixes from the local gates

Codex built the migration and ran only the static gates and a rehearsal smoke. The full local run found:

  • relu/leaky_relu SIGSEGV on a ragged tensor ([[7, 1], 1]), found by the bool fuzz [0fb]. tensor_to_flat dereferenced list_get_ref(v, r), which is NULL for a number by contract. The same class is fixed in tensor_to_flat's EIGS_STRICT=0 path and in gather.
  • A silent semantic change: the two broadcast sites passed list_get_ref (NULL) for a number row, so add of [[[1, 2], 3], [1, 1]] raised where main broadcasts the scalar. They now use views, and the results match main.
  • [0fh] gains the three ragged cases: 10/10 pass.
  • Three exempt shape hashes re-pinned (relu, leaky_relu, softmax). They share the tensor_to_flat helper; no policy changed.

Gates (run locally, on top of B3)

check result
Ir vs B3 dmg_shape +0.00004%, idxset +0.0002%, perf +0.0002%
tape identity identical
make http (model files) builds
jit-smoke pass
jit_diff 257 programs pass
full ASan suite, detect_leaks=1 4209/4212, leak tally 0; the failures were the shape pins, now re-pinned with [99s] passing again, and the pre-existing [99d] (#1708)
release suite 4218/4221: the same shape pins plus [99d]
rehearsal suite the same, plus the pre-existing [70d] (#1709)
static gates pass

🤖 Generated with Claude Code

https://claude.ai/code/session_01KC99CmwatKssQYggkBCgwF

xxxxxxxxxxxxx and others added 2 commits October 11, 2026 00:59
Batch B5 of the arm D step-2 design: builtins_tensor.c, model_infer.c,
model_train.c and model_io.c leave the legacy borrow API and join the
migrated-files gate (Codex Cloud builder).

Orchestrator fixes from the local gates: the bool fuzz ([0fb]) found
relu/leaky_relu SIGSEGV on a ragged tensor ([[7, 1], 1]) because
tensor_to_flat dereferenced list_get_ref(v, r) -- NULL for a number by
contract. Same class fixed in tensor_to_flat's EIGS_STRICT=0 path and in
gather, and the two broadcast sites in tensor_elementwise's caller now use
views so a number row stays a scalar (main's behaviour) instead of
raising. [0fh] gains the three ragged cases.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KC99CmwatKssQYggkBCgwF
…_to_flat helper changed; no policy change)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KC99CmwatKssQYggkBCgwF
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 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-11T06:03:37.207788Z 1b277d2 PR opened
🔒 Security Review ✅ Completed 2026-10-11T06:09:06.925175Z 1b277d2 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.

Comment thread src/builtins_tensor.c Dismissed
Comment thread src/builtins_tensor.c Dismissed
@codspeed

codspeed Bot commented Oct 11, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 13 untouched benchmarks


Comparing arm-d-B5 (1b277d2) with main (1d127dd)

Open in CodSpeed

@InauguralPhysicist
InauguralPhysicist added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit 75505a5 Oct 11, 2026
32 checks passed
@InauguralPhysicist
InauguralPhysicist deleted the arm-d-B5 branch October 11, 2026 07:57
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.

3 participants