Skip to content

Draft Intern-Decision-4B native text and multi-field readout - #216

Draft
psv666 wants to merge 1 commit into
mainfrom
codex/intern133-4b-text-20261123
Draft

psv666 wants to merge 1 commit into
mainfrom
codex/intern133-4b-text-20261123

Conversation

@psv666

@psv666 psv666 commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Required human contributor answers

  1. Outcome. Advance the assigned Intern-Decision issue toward reproducible acceptance on the target hardware.
  2. Highest-leverage variable. Credible native model coverage and numerical consistency.
  3. Approach. Reuse the existing Qwen backbone and worker runtime, then close the model-specific contract and validation gaps in a small 4B text stage.
  4. Users. System1-Omni model, application and agent developers who need a stable API, reliable decisions and reproducible deployment.

PR necessity. The contributor approved a draft PR for work that needs implementation. The current main has no native Intern worker. This is new model support; bug-fix evidence is inapplicable.

Summary

POST /v1/systemone
  Intern processor → one complete prompt with ordered readout rows
  shared FIFO scheduler → one causal 4B prefill
  tied BF16 head → legal symbol logits per field
  Intern finisher → typed Choice / Noul / Score

This is a draft for the 4B text and multi-field part of #133. The numerical gate remains open. The shared Qwen change adds an opt-in merged 4B eager causal profile with an owned multi-row readout. Existing profiled paths retain their original guards. No CUDA ABI or frontend changes are required.

The reference is the published inference.py at checkpoint revision 38c9dafbbef52dd04bae943c0c6ac918419adfd5, on BF16/SDPA with Torch 2.9.1+cu128, Transformers 5.14.1, FLA 0.4.2, Triton 3.5.1, Torch convolution and temperature 1.99241824. Pinned checkpoint source

Evidence

Base 2bb7d2affb46b29f13fa8d9e647a47051b455dca. Draft head 5630a84abc71ead5f8bc0c53dda38c9616f16c65. Rust 1.100.0, CUDA 12.8, one NVIDIA L20 (sm_89).

Frozen text comparison Default fixed prefill control Eager framework-style candidate Gate
Exact prompt, token IDs and readout positions 6/6 6/6 6/6
Exact categorical decisions 23/23 23/23 23/23
Maximum selected-logit absolute error 0.1875 0.125 ≤0.125
Maximum calibrated probability error 0.013008 0.011571 ≤0.01
Maximum confidence error 0.013008 0.011193 ≤0.01
Maximum Noul error 0.004976 0.004976 ≤0.01

Both passes satisfy the continuous Score range gate. The candidate misses probability and confidence in field_10 and field_13 of the 16-field request. Neither pass triggered the 0.02 top-two margin report. A same-hidden head control reproduced all 1,426 native symbol logits with the pinned Torch BF16 projection. The observed drift is upstream of that projection; the first divergent operation remains unlocated.

  • Workspace format, Clippy with warnings denied and the release build passed. The workspace CPU suite passed 429 tests with 125 opt-in tests skipped. Intern's three CPU contract tests passed and Cargo discovered all three opt-in tests.
  • Five named L20 checks for the new profile guards and existing RMSNorm, causal attention, GDN and fixed GEMM behavior. These checks establish their named scope.
  • Readiness followed a real warmup. Direct worker and Rust frontend agreed on all six response bodies excluding elapsed timing. Both accepted 8192 tokens and rejected 8193. Malformed JSON, invalid semantics, media and body-limit errors followed by valid requests were exercised on both routes. Socket disconnects recovered on both routes. The precise post-dispatch guarantee comes from the shared scheduler barrier test.

See the recipe for the input contract and reproduction commands. The original media cases, real-weight near ties and extreme levels, smaller checkpoints, other hardware and performance remain outside this qualification.

Merge risk

The new crate and explicit profile can be reverted independently of model weights or user data. The new shared profile only runs for callers that select it at startup. Keep the draft open pending the unchanged numerical gate and a separate maintainer review.

Self-review

  • Reviewed the complete diff and its module ownership, input order, device buffer lifetimes and shared profile guards.
  • Ran the Rust workspace checks and reported the L20 failure and remaining numerical coverage.
  • Compared the worker and frontend response contracts and checked that the recipe labels the implementation experimental.
  • Numerical parity remains open.

This branch has not been deployed

No deployments
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