Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
03d1e5f
feat: stage admitted Nemotron Super local image binding and qualifica…
jonathan308 Oct 15, 2026
b56eda7
Merge current upstream provider and document isolated image HTTP qual…
jonathan308 Oct 15, 2026
27a3e6d
docs: record Nemotron fixture validation and pending calibration gates
jonathan308 Oct 15, 2026
fe0da7e
chore(libs): pin mlx-swift-lm #312 at 1ce44e9a and record final-head …
jonathan308 Oct 15, 2026
7eadac2
test(nemotron-super): golden prompt corpus from the reference templat…
jonathan308 Oct 15, 2026
2bdb8e2
feat(nemotron-super): render prompts exactly like the reference template
jonathan308 Oct 15, 2026
ecf1353
feat(nemotron-super): ultra_v3 reasoning channel with validated tool …
jonathan308 Oct 15, 2026
8d6bfb8
feat(qualification): add a loopback Nemotron Super runner to the harness
jonathan308 Oct 15, 2026
b547e58
feat(nemotron-super): serve text, reasoning, tools and JSON through t…
jonathan308 Oct 15, 2026
9e63cdd
feat(qualification): benchmark and calibrate memory through the Super…
jonathan308 Oct 15, 2026
1aa9c26
docs(nemotron-super): document reference prompt parity and hook outpu…
jonathan308 Oct 15, 2026
dd65be4
feat(nemotron-super): opt-in text speculation for the local owner
jonathan308 Oct 15, 2026
d6593ac
docs(nemotron-super): document opt-in local text speculation
jonathan308 Oct 15, 2026
f498392
refactor(nemotron-super): clarify output and channel names after review
jonathan308 Oct 15, 2026
1eb8712
feat(nemotron-super): owner owns and drains its text binding
jonathan308 Oct 15, 2026
5a5e078
test(nemotron-qualification): list the SDK ModelOpt graph parity suites
jonathan308 Oct 15, 2026
c82c3e9
fix(qualification): harden runner retirement, reserves and sampling
jonathan308 Oct 15, 2026
8af24ca
fix(qualification): correct calibration evidence and receipt handling
jonathan308 Oct 15, 2026
f030a41
test(qualification): cover the Super runner client without a runner
jonathan308 Oct 15, 2026
fb5edcc
feat(vision): decode PNG and JPEG with the reference RGB8 semantics f…
jonathan308 Oct 15, 2026
681c92f
test(vision): golden parity and fail-closed coverage for Nemotron Sup…
jonathan308 Oct 15, 2026
dca0dfe
Merge claude/super-prompt (f498392e2) into the Super integration branch
jonathan308 Oct 15, 2026
7d4a0e3
Merge claude/super-runner (f030a41cb) into the Super integration branch
jonathan308 Oct 15, 2026
9f86004
Merge claude/super-mtp (1eb8712a3) into the Super integration branch
jonathan308 Oct 15, 2026
59ef4f0
test(nemotron-qualification): list the SDK ModelOpt graph suites in t…
jonathan308 Oct 15, 2026
ecc2002
Merge claude/super-fastpath (5a5e07852) into the Super integration br…
jonathan308 Oct 16, 2026
dd7c3a1
fix(vision): reserve the Nemotron Super tower working memory per imag…
jonathan308 Oct 16, 2026
7e67555
docs: Nemotron Super image format reference and ingress measurements
jonathan308 Oct 16, 2026
71c653a
feat(nemotron-super): frame owner image prompts like the reference pr…
jonathan308 Oct 16, 2026
4dc7f24
refactor(nemotron-super): build the speculative owner through the sha…
jonathan308 Oct 16, 2026
a3cfbec
feat(nemotron-super): hook text binding, busy 429 and text-only specu…
jonathan308 Oct 16, 2026
0897b10
refactor(qualification): read runner charges and hook through accessors
jonathan308 Oct 16, 2026
df5af44
feat(nemotron-super): admit the calibrated prefill workspace with eac…
jonathan308 Oct 16, 2026
e4ed3a9
docs(nemotron-super): describe the integrated hook, framing and works…
jonathan308 Oct 16, 2026
94e1dbc
chore(libs): pin mlx-swift-lm at the Super integration head d8303e75
jonathan308 Oct 16, 2026
c1c7820
feat(nemotron-super): exact rectangular verification for local specul…
jonathan308 Oct 16, 2026
63a69fd
refactor(nemotron-super): apply the integration refactor review
jonathan308 Oct 16, 2026
666f20d
fix(vision): match Pillow's PNG compressed-chunk limits and cap JPEG …
jonathan308 Oct 16, 2026
f27bc01
refactor(vision): apply the Nemotron Super image refactor review
jonathan308 Oct 16, 2026
0ec51ee
Merge claude/super-mtp (c1c7820f6) into the Super integration branch
jonathan308 Oct 16, 2026
1ae8dea
test(nemotron-super): cover the capture target in the shared-factory …
jonathan308 Oct 16, 2026
ff1b341
Merge claude/super-images (f27bc012c) into the Super integration branch
jonathan308 Oct 16, 2026
3721e4e
chore(libs): pin mlx-swift-lm at the Super integration head 253d9fbe
jonathan308 Oct 16, 2026
386334d
feat(nemotron-super): admit the JPEG data-URI label for inline images
jonathan308 Oct 16, 2026
6652fbc
feat(qualification): record runner speculation and refuse it without …
jonathan308 Oct 16, 2026
03bfb68
refactor(nemotron-super): apply the second integration refactor review
jonathan308 Oct 16, 2026
4ebaec4
test(nemotron-super): expect the admitted JPEG label in the encoded-b…
jonathan308 Oct 16, 2026
c14514e
feat(nemotron-super): batched plain owner and a specific grant refusal
jonathan308 Oct 16, 2026
0d66198
feat(qualification): report the runner's KV grant and size it for MTP…
jonathan308 Oct 16, 2026
aed30f8
test(nemotron-qualification): list the batching suites in the SDK har…
jonathan308 Oct 16, 2026
7543cbf
chore(libs): pin mlx-swift-lm at the Super integration head 8f096476
jonathan308 Oct 16, 2026
a63056f
refactor(nemotron-super): apply the third integration refactor review
jonathan308 Oct 16, 2026
7d01c49
test(nemotron-super): run the batched owner tests on the latent-MoE f…
jonathan308 Oct 16, 2026
258c715
Merge current master into Nemotron Super integration
jonathan308 Oct 16, 2026
1594767
test(nemotron-super): hold batched terminals with a persistent gate
jonathan308 Oct 16, 2026
de4b7d7
docs(nemotron-super): record full-checkpoint and endpoint qualificati…
jonathan308 Oct 16, 2026
4ef705a
feat(nemotron-super): speculative owner serves several requests
jonathan308 Oct 16, 2026
d9444e6
test(nemotron-qualification): list the Super fused SSD tests
jonathan308 Oct 16, 2026
fc8b13a
feat(nemotron-super): fixed prefill chunks and one owner-wide prefill…
jonathan308 Oct 16, 2026
66095c2
test(nemotron-qualification): list the Super decode pipeline and serv…
jonathan308 Oct 16, 2026
328c048
feat(nemotron-super): opt-in adaptive speculation depth
jonathan308 Oct 16, 2026
1409ead
refactor(nemotron-super): apply the serving refactor review
jonathan308 Oct 16, 2026
4caead1
test(nemotron-super): explicit closure types in prompt fixtures
jonathan308 Oct 16, 2026
a2d6518
Merge master (#1515 ab423c1c0) into the Super serving branch
jonathan308 Oct 16, 2026
4441094
test(nemotron-super): observe the lane and request charge while in fl…
jonathan308 Oct 16, 2026
079c37e
chore(libs): pin mlx-swift-lm #312 at 637b1c82 and record ship-check …
jonathan308 Oct 16, 2026
9268688
feat(nemotron-super): opt-in exact text prefix reuse for the plain owner
jonathan308 Oct 16, 2026
23576cd
test(nemotron-qualification): Super text prefix reuse and its charges
jonathan308 Oct 16, 2026
d6e700c
feat(nemotron-qualification): runner prefix bank diagnostics
jonathan308 Oct 16, 2026
a71d585
refactor(nemotron-super): apply the prefix reuse refactor review
jonathan308 Oct 16, 2026
6e2e46a
chore(libs): pin mlx-swift-lm at the Super prefix reuse head 2e97dae4
jonathan308 Oct 16, 2026
6ed4f17
fix(ssd): return a cold staging result only after its host IO refund
jonathan308 Oct 16, 2026
59ce5cb
Merge master into codex/nemotron-super-vl-intake
jonathan308 Oct 20, 2026
a0eae67
chore(nemotron): pin validated SDK parent refresh
jonathan308 Oct 20, 2026
dfce938
Pin the exact Super SSD correction in the intake stack
jonathan308 Oct 20, 2026
f8a2f79
Merge master into the Nemotron Super intake
jonathan308 Oct 20, 2026
5c0a487
Merge master into the Nemotron Super intake
Gajesh2007 Oct 21, 2026
b1a590e
Pin mlx-swift-lm to the merged Nemotron Super base (Layr-Labs/mlx-swi…
Gajesh2007 Oct 21, 2026
7c548f8
Merge remote-tracking branch 'origin/master' into codex/nemotron-supe…
Gajesh2007 Oct 21, 2026
c221da6
Merge remote-tracking branch 'origin/master' into codex/nemotron-supe…
jonathan308 Oct 21, 2026
e659edc
docs(nemotron-super): restore this branch's hardware-support and pref…
jonathan308 Oct 21, 2026
3cfd983
test(nemotron-super): assert the prefill bound of the pinned mlx-swif…
jonathan308 Oct 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions changelog.d/nemotron-super-media-discovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
### Nemotron Super media discovery guard

Staged Nemotron Super VL checkpoints no longer advertise media capability merely
because their configuration includes a vision tower. Native model support and
end-to-end qualification remain incomplete.

Add an unregistered native text binding with explicit LOAD recheck, bounded
calibrated prefill and request retirement ownership. Synthetic fixtures exercise
text and causal image installation through the real bridge, image cancellation
and retirement, plus live loopback HTTP authentication/SSE/restart. The image
owner binds the installation and separate media/KV reservations. Its CPU
decoder accepts PNG of every colour type and bit depth (byte-exact with the
reference loader) and baseline/progressive JPEG (ImageIO samples within
measured bounds), applies EXIF/XMP orientation as Pillow does, and bounds
declared geometry before allocation; the SDK resize is bitwise equal to CPU
PyTorch on the golden fixtures. Inline images use the `data:image/png;base64,`
or `data:image/jpeg;base64,` label; content selects the format. Image media
reservations include a derived tower and projector working-memory bound for the
largest image. An opt-in image HTTP hook uses existing auth, JSON/SSE framing
and cancellation; it is disabled by default. `DARKBLOOM_NEMOTRON_SUPER_MTP=1`
opts the local owner into greedy text speculation with the embedded MTP head
(default off; media is refused while it is on), verified by one exact captured
target window per round (`DARKBLOOM_NEMOTRON_SUPER_MTP_VERIFICATION=serial`
keeps one target step per draft). Synthetic fixtures show token-exact output and
exact rollback in both modes; full-model acceptance and speed are unmeasured.
Full-checkpoint quality, image formats other than PNG and JPEG and shared-slot
publication remain unqualified. Portable fixture harnesses preserve reproducible
continuation and require measured admission and reservation calibration before
enabling serving.

The opt-in Super owner hook now also serves text. Prompts match the reference
chat template and tokenizer byte for byte on a 30-case golden corpus (tool
schemas in request order, tool-call history, images with `<img>` placeholder
spans, reasoning on/off). Reasoning follows the reference `ultra_v3` parser:
`enable_thinking` defaults on and streams `reasoning_content`. Text requests
return validated `tool_calls` and validated `response_format` JSON. Image
requests still refuse tools and structured output; image prompts carry the
reference `<img>`/`</img>` span around each image's placeholders. A request
that arrives while the owner is busy gets 429 before any response starts, and
with speculation installed the hook serves text and refuses images with 400.
Each request's reservation now includes a decode row; a KV grant too small for
the configured requests fails the load with the minimum grant it needs. `DARKBLOOM_NEMOTRON_SUPER_MAX_CONCURRENT`
(default 1) opts the plain owner into row-exact batched text decode of up to
that many requests, and the speculative owner (rectangular verification) into
up to eight concurrent requests verified in one exact captured window per
round, each committing its own accepted prefix; serial verification stays one
request. `DARKBLOOM_NEMOTRON_SUPER_MTP_DEPTH=auto` lets the engine pick each
step's depth up to three. Synthetic fixtures show token-exact output against
solo plain decode. Prompts prefill in fixed chunks (`DARKBLOOM_NEMOTRON_SUPER_PREFILL_CHUNK`,
default 2048 tokens), at most one chunk per step beside every decode or verify
row, optionally with decode-only steps between chunks
(`DARKBLOOM_NEMOTRON_SUPER_DECODE_STEPS_BETWEEN_CHUNKS`); a request's chunks are
the same as when it is served alone. The prefill activation charge is one
owner-wide lane, reserved before the first request and held until retirement
(the pinned checkpoint charges the SDK's measured whole-chunk bound), instead
of a prefill workspace in every request's reservation.
`DARKBLOOM_PREFIX_CACHE_MEMORY=1` opts the plain (non-speculating) owner into
exact text prefix reuse: a resident recurrent checkpoint bank sized from the KV
grant (`min(1 GiB, grant / 8)`, or `DARKBLOOM_CBV2_HYBRID_PREFIX_BYTES`) whose
budget is reserved from load until retirement. Checkpoints sit only at multiples
of the prefill chunk, where a restored request continues a cold prefill bit for
bit on synthetic fixtures; prompts shorter than one chunk restore nothing. Image
requests, the speculating owner and paged KV never use it, and its full-checkpoint
speedup is unmeasured.
7 changes: 7 additions & 0 deletions docs/architecture/hardware-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ understand why a box refuses a load that "should fit"; for the operator view

## Context

The unregistered Super builder requires a live pending LOAD lease and preserves
the ordinary fixed-workspace concurrency floor. Synthetic bridge tests must
provide a grant above the minimum KV floor plus recurrent workspace; a small
checkpoint does not waive that policy. Sources:
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalBridgeBuilder.swift`,
`provider-swift/Sources/ProviderCore/Inference/Engine/Bridge/EngineV2Bridge+MemoryConcurrency.swift`.

The provider is Apple-Silicon-only: the SwiftPM platform floor is declared by
the packages described in
[`components/mlx-swift.md#what-providercore-links`](components/mlx-swift.md#what-providercore-links),
Expand Down
150 changes: 149 additions & 1 deletion docs/architecture/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,153 @@ assistant media remain unsupported; legacy model ingestion is unchanged. Sources

## Context

The unregistered `NemotronSuperLocalBridgeBuilder` assembles an installed Super
language tower through the native CBv2 factory after rechecking a pending LOAD
lease. `NemotronSuperLocalBinding` owns acquisition through engine retirement and
drains its own requests; the owner mints one `localTextBinding` and drains it in
`closeAfterDrain` before the image binding and bridge. It accepts pretokenized text only; media, tools, schemas
and client prompt-cache keys are rejected, and text prefix reuse runs only when the owner has a
checkpoint bank (below). The builder uses serial contiguous KV, bounded
calibrated prefill, and no MTP unless the explicit opt-in below installs text
speculation. These internal paths do not register a model or
expose an HTTP route. `NemotronSuperLocalLoad` owns an unpublished load transaction,
checks the pinned config, reserves the conservative SDK quote and preserves
charges on native completion faults. `NemotronSuperPromptContract` renders the
pinned template with reference `apply_chat_template` semantics: request-order tool
schemas and tool-call arguments, Python `str`/`strip`/`json.dumps` filters, and the
processor's `<img>`, one `<image>` per feature, `</img>` expansion. It rejects
conflicting reasoning controls; `NemotronSuperRequestPlan` resolves those controls,
the shared tool-choice policy and the response-format instruction once per
request. A generated golden corpus pins rendered text and token IDs.
`NemotronSuperVisionSubmission` preserves causal attention and absent position
state when translating admitted SDK features. `NemotronSuperLocalOutput` applies the
reference `ultra_v3` reasoning split in `NemotronSuperReasoningChannel`, streams
reasoning and plain content, and withholds tool calls and JSON content until the
shared tool and response-format validators pass; output stays bounded. The
unregistered `runValidatedText` binding connects rendered tool/schema prompts
to withheld output validation after native retirement. It rejects truncation and
missing/error terminals. Causal vision submission is exercised by a synthetic
fixture through the real bridge, including RADIO/projector preparation, generation
and retirement; public media dispatch remains unwired. SDK fixtures compare
full-position and narrowed image logits, split prefill inside an image span and
exercise recurrent rollback with request isolation. These checks do not establish
full-checkpoint quality or speculative MTP support. Synthetic loopback HTTP tests exercise authentication, model listing, SSE, malformed input and restart through the actual Hummingbird server and native bridge; their weights and tokenizer are fixtures. The local builder wraps the
composite in `NemotronSuperRecurrentAdapter`, a serial causal adapter with explicit
scalar-cache-offset positioning. It rejects explicit position tensors, packed rows
and mismatched state/cache counts; the generic Nemotron type is not widened. Sources:
`provider-swift/Sources/ProviderCore/Inference/Vision/NemotronSuperVisionSubmission.swift`,
`provider-swift/Sources/ProviderCore/Inference/Streaming/NemotronSuperLocalOutput.swift`,
`provider-swift/Sources/ProviderCore/Inference/Streaming/NemotronSuperReasoningChannel.swift`,
`provider-swift/Sources/ProviderCore/Inference/Prompting/NemotronSuperRequestPlan.swift`.
Sources:
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalLoad.swift`,
`provider-swift/Sources/ProviderCore/Inference/Prompting/NemotronSuperPromptContract.swift`,
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalBridgeBuilder.swift`,
`provider-swift/Sources/ProviderCore/Inference/Engine/Bridge/NemotronSuperLocalBinding.swift`.

The dedicated `NemotronSuperLocalImageBinding` is minted by that exact unpublished
load owner, uses separate real media and bridge KV reservations, and cancels/drains
through terminal retirement. Synthetic tests exercise image cancellation, reuse
and close. It does not manufacture a shared native lease or register a public
media route. The CPU `NemotronSuperImageDecode` sniffs PNG or JPEG content and
reproduces the reference loader's RGB8 conversion: PNG of every colour type and
bit depth is decoded in-process and matches Pillow exactly, while JPEG samples
come from ImageIO within test-enforced bounds. Container limits are checked
before any raster buffer exists, and the SDK resize is bitwise equal to CPU
PyTorch on the golden fixtures; see the
[image format reference](../reference/nemotron-super-image-formats.md).
Its quote alone is not admission. The exact-owner `runEncoded` boundary charges
ingress before JSON/base64/header inspection and media before decode. The media
charge adds the SDK's shape-derived tower and projector working-memory bound for
the largest image, which preparation evaluates one at a time; the global
activation reserve is unchanged. It only accepts `data:image/png;base64,` and
`data:image/jpeg;base64,` URIs, whose content selects the format, and uses the
owned tokenizer. Native input arrays are constructed in a separate retained,
fenced epoch before tower preparation. Synthetic RGB tests cover generation,
cancellation, busy rejection and release after task completion; loopback HTTP
tests serve PNG and JPEG variants through the tiny synthetic owner. Actual
tokenizer parity, RADIO peak workspace and full-checkpoint image qualification
remain required.

SDK installation now holds resident plus bounded staging reservations across
sequential exclusive construction epochs. Completed fences release temporary
roots, while failed completion retains resident objects and charges. Header-derived
projection/expert-bank/image staging bounds and explicit backend allowance must
still be checked against full-model measured peak memory. Bundling the upstream
MTP tensors does not qualify execution.
The optional `NemotronSuperLocalImageHTTP` hook reuses the authenticated local
application and standard JSON/SSE framing and defaults to absent. It serves text
through the owner's `localTextBinding` and images through its image binding, admits
the owner's configured number of requests and refuses another with `queueFull`
(429) before any response starts. `NemotronSuperLocalLoad.localImageHTTP(templateBytes:)` builds
it over the transaction's own owner. No production caller installs it.
`DARKBLOOM_NEMOTRON_SUPER_MAX_CONCURRENT` (default `1`) sets how many requests
the owner serves: `1` to `64` plain, `1` to `8` with rectangular speculation, one
with serial speculation. Above one the plain builder serves
`NemotronSuperRecurrentAdapter(_:maximumDecodeRows:decodeProducts:)` with
`.rowExact`, so concurrent requests decode in one `[B, 1]` step bit-identical to
their one-token decode. The hook admits that many requests and refuses the next
with 429.
`NemotronSuperLocalPrefill` fixes prompt scheduling: chunks of
`DARKBLOOM_NEMOTRON_SUPER_PREFILL_CHUNK` tokens (default 2,048, at most the
calibrated prefill limit), at most one prompt chunk per step beside every decode
or verify row, a step budget that holds a whole chunk plus those rows, and
optional decode-only steps between chunks
(`DARKBLOOM_NEMOTRON_SUPER_DECODE_STEPS_BETWEEN_CHUNKS`). A request's chunks are
therefore the same whether or not it is served alone. Because one chunk runs per
step, the prefill activation is one owner-wide lane in the shared budget,
reserved before the first request and released only after native retirement:
`NemotronHModel.prefillActivationBoundBytes(tokens:)` (the SDK's whole-chunk bound
measured on the full checkpoint) for the pinned checkpoint, the ModelOpt
workspace quote for synthetic fixtures. A lane that does not fit fails the load.
Each bridge request reservation carries, beyond the engine's recurrent
generations and any speculation charge, `requestWorkspaceBytes`: one
`NemotronSuperDecodeCharge` decode row. The builder refuses a KV grant that
cannot hold every configured request's fixed bytes plus the minimum KV with
`UnserviceableGrant`, which names the grant, the smallest serviceable grant and
the fixed bytes per request.
`NemotronSuperLocalPrefixCache` gives the plain owner exact text prefix reuse when
`DARKBLOOM_PREFIX_CACHE_MEMORY=1`: `PrefixCachePolicy.hybridConfig` sizes the SDK's
resident recurrent checkpoint bank (`min(1 GiB, KV grant / 8)` unless
`DARKBLOOM_CBV2_HYBRID_PREFIX_BYTES` sets it), the backend carves it from the KV
grant before the grant check, and its whole budget is reserved in the shared
budget from before the first request until native retirement, like the lane; a
bank that does not fit fails the load and a retained native fault keeps it
charged. The adapter is built with `exactPrefixCheckpoints`, so checkpoints sit
only at multiples of the prefill chunk, where a restore continues a cold prefill
bit for bit; prompts shorter than one chunk restore nothing. Text requests are
then submitted with prefix caching on and the local unscoped cache scope; image
requests stay cold and never publish, and a speculating owner has no bank.
`UnserviceableGrant.minimumGrantBytes` includes the bank. Sources:
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalPrefixCache.swift`,
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalAdmission.swift`.

`NemotronSuperLocalMTP` installs text speculation only when
`DARKBLOOM_NEMOTRON_SUPER_MTP` is exactly `1` (default off). The load transaction
adds the embedded head's header-derived payload and loader construction allowance
to its single LOAD claim, loads the head in its own fenced construction epoch, and
the builder serves the SDK `NemotronSuperMTPAssistant`: greedy, up to the
configured requests per round, fixed depth (`DARKBLOOM_NEMOTRON_SUPER_MTP_DEPTH`,
`1` to `3`) or `auto` (the engine's marginal policy picks each step's depth). Verification
(`DARKBLOOM_NEMOTRON_SUPER_MTP_VERIFICATION`) defaults to `rectangular`:
`NemotronSuperMTPCaptureTarget` verifies the seed and drafts in one captured
target window, bit-identical per position to plain decode, and the engine commits
the Mamba state after the last accepted token and trims attention KV. `serial`
serves `NemotronSuperMTPTextTarget` with one ordinary target step per draft. The
shared production factory recognizes both targets like `NemotronSuperRecurrentAdapter`
(layer kinds, caches and the calibrated prefill bound).
The engine admits the assistant's bounded per-request charge (FP8 history, backlog,
every draft step's dense FP8 output head, the rectangular verify window and an
unmeasured 256 MiB backend scratch allowance) plus captured recurrent states before
allocation and holds them until retirement. An owner with speculation refuses
every media entry with `mediaWithSpeculation`; its HTTP hook is text-only and
answers image requests with 400. Synthetic fixtures show
token-exact greedy output against the ordinary owner in both modes, forced
rejection rollback and cancellation; serial verification cannot beat plain
decode, and no full-model acceptance or speed is measured. Sources:
`provider-swift/Sources/ProviderCore/Inference/Engine/Factory/NemotronSuperLocalMTP.swift`.


The `prism_hadamard_qwen35` adapter reuses the native dense Qwen text backbone
and retains its vision wrapper. The SDK validates signed-Hadamard metadata and
packed weights before returning the model. Packed scales and embeddings are
Expand Down Expand Up @@ -740,7 +887,8 @@ At scan time `TemplateRenderCheck.renderOK(at:)` compiles every template
source in runtime precedence (`chat_template.jinja`, `chat_template.json`,
`tokenizer_config.json`) with swift-jinja `lstripBlocks: true, trimBlocks:
true` and renders canonical fixtures; multimodal fixtures run only when
`config.json` declares `vision_config`. The result is advertised per model as
the shared media discovery policy accepts the configuration (see
[model registry boundary](model-registry.md#mechanism)). The result is advertised per model as
`template_render_ok` (`nil` = no template, key omitted); the model stays
advertised, but the provider's capacity quotes reject it with reason `template`
and the coordinator can refuse to route
Expand Down
7 changes: 7 additions & 0 deletions docs/architecture/model-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ downloads published artifacts and verifies them. Discovery is not full weight
hashing: retain fast startup scans and on-demand verification. Broken templates
must be reported rather than silently repaired.

Media discovery uses `ModelMediaPolicy.advertisesMedia` in
`provider-swift/Sources/ProviderCoreFoundation/ModelMediaPolicy.swift`.
Staged `nemotron_h_omni` checkpoints do not advertise media support, even when
`vision_config` is present. The architecture match ignores surrounding whitespace
and case and applies independently of Hugging Face repository IDs or local aliases.
This guard does not enable text inference, qualify a RAM tier, or register the model.

Published metadata is not a loadability or quality certificate. Keep full LOAD
quotations, native transient allowances, memory safeguards and post-load
serviceability checks. Do not replace registry discovery with a hardcoded model
Expand Down
Loading
Loading