Adds the six audited assets (head_native, original_verify_qsa, router, gr_post,
gr_norm, ple_native_batch) as an atomic reseal group built with --use_fast_math,
re-pins their old digests (incl. ple PTX_BYTES) and window-plan hex, and a
generic --flag-override recorded in the manifest and re-applied by the sealer.
compile_assets --isa-inventory/--driver-check and run_gpu_smokes.sh refuse a
driver older than the highest PTX ISA in the tree (9.0 needs >= 580.65.06).
Runbook: mandatory reseal + golden comparison section, step d' (linux-tests).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- check-cu.py now defaults to clang -x cuda --cuda-host-only with real qualifiers; --plain keeps the C++-only pass.
- qsa_prompt_attention_variants.cu: block_q4_0 under pack(1) as in kv_q4.hpp (cu_pin refreshed).
- native_head_native.cu: orphan copy had __launch_bounds__ before extern "C" __global__ (never nvcc-built); now the sealed twin's text.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The three adapters reduce pictures to a Responses input_image, the prompt renderer writes the template's
picture items and returns their sources in prompt order, and the request path encodes them (in turn with the
engine), expands every image pad to its token count and sends GENI with the combined SVE1 file. The encoder
is configured by a top-level vision section, stops with the engine and starts before it. Goldens recorded from
the Python handlers cover fourteen Chat and Messages requests.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The window seal plan only said 'some copies are a numerics risk'. List them
from the instruction mix of the sealed PTX against the fast-math-sensitive
operations of the Original sources: head_quant (amax / 127.0f, xi / d),
the analytic indexer append (powf/cosf/sinf), the native router (expf, 1/x),
native_gr_postops (sigmoid/silu), native_gr_norm (partial / n_cols) and the
native PLE post-ops are precise in the seals and fast-math in the Original;
bf16/combine differ in FTZ only; qsa_decode_postops, the shared expert and
the precise Original files already match. Names the re-seal action and that
native_flash_attn / native_qsa_score never run in the verify window.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves the window-producer and experimental-modes merges. The verifier
assembly now attaches the native projections, hyper-connection/PLE, QSA and
router/shared-expert operands (borrowed from the dense and MoE caches) to every
window graph and the commit graph; the asset probe also lists the unsealed
window kernels; auto selection refuses a configuration with an experimental mode.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The resident layers mint a fresh witness per roll-back; the session adopts
those objects so a layer and the session name one witness. Adds the opt-in
GPU smoke and docs/original-serve.md, and updates the stale claims in the
port-gaps ledger and the sampler/rope notes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- QSA KV binding admits the serving index image size; kv addresses refuse until the resolver is reset
- GR shared-memory attributes only emitted for sm_70+
- docs/cuda-seal-plan-additions-window.json merges the new sources, bound pins and fast-math risk list
- ignored GPU smokes for asset load and shared opt-in
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
K/V append, norm+RoPE, q/gate split, indexer paths, block scores+top-k, device-side KV
resolve, batched decode attention and the output gate (new fast-math source with a
placeholder PTX); pub(crate) address views on the mapped KV owner, resolver and QSA journal.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Native grouped expert gate/up and down kernels are a new source with a placeholder
PTX (UNSEALED) and a seal-plan fragment; everything else binds the sealed assets.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Port of serve/mcp.py: server config validation, background start, paged
tools/list, <server>__<tool> namespacing, error-as-text results with the
character cap, restart on demand, cancellation, GET /mcp. Tested against the
Original's fake MCP server. The server-side tool loop is intentionally not
ported (documented).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
control-plane serves /props, /slots, /v1/status, /api/health, /settings, /load, /unload,
/v1/load, /v1/unload, model aliases, CORS with the preflight ahead of authentication and the
own-page guard; replayed scenario by scenario against the real Python handlers. The worker
supervisor gains load/unload, lazy start, idle unload, reload gates (before_load, min free VRAM),
an outside stall watchdog and the reasoning-budget wrap-up (budget tracker golden-tested against
the Python Detokenizer/OutputParser loop). leleka-serving-policy adds CORS, idle, stall watchdog,
logits stride (golden vs the C++ header), request timings and alias rules.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
backend-api carries SamplingOptions; backend.rs plans each request with the
validated SamplingParams instead of refusing temperature != 0; the output stage
bypasses the compact argmax for an armed request and draws with the bit-exact
host reference (counter = fed-token position, penalty history = prompt+generated).
MTP with sampling is refused explicitly. Desktop RPC only bounds temperature.
Docs: docs/sampler-reference.md (verified vs open).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
KarExpertSource (pinned base + optional overlay, levels 2..=5) verifies whole
archives on the retained descriptor, validates the 48-layer expert map at load,
stages exact ranges and runs one-drain device expert FFNs; ModelBinding gains a
consuming with_kar_expert_source builder, MoeExpertStage routes experts through
it (shared expert/combine unchanged, MMQ cache refused), and NativeBackendConfig
gets kar_expert_source with identity-mixed mode digest and a Load-time probe.
The pure selection, stager, expert map and CPU reference move to model-format
so they run on macOS; the CUDA program gains a SwiGLU entry and a per-context
cached module. Linux-target type-checked only; nvcc/GPU unverified, PTX unpinned.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>