Files
leleka/crates/cuda-driver/kernels
Pavlo RatushnyiandClaude Sonnet 5.5 506ec8a83e fix(cuda): seal the assets the Original serve path needs and widen the MMQ shared-size list
First real-model bring-up on the RTX 5090 (CUDA 13.2.86, sm_120) stopped at four build-time gaps:
- mmq_original_group_{swiglu,mul,fixup}.ptx and kernels/mapped_expert_copy.ptx were placeholders; compiled with
  nvcc 13.2.86 (scripts/gpu-bringup/compile_assets.py + seal_pins.py for the MMQ group) and pinned.
- mtp_original_scalar_{norm,gr}.ptx were placeholders that make OriginalPromptExecutor::new fail closed; compiled with the
  recipes of docs/cuda-seal-plan-additions.json against engine/strata headers, stored with a trailing NUL.
- ffi.rs mmq_shared() allowed only widths <= 64; added the eight sizes the same shared() formula gives for widths
  80..128 (51520..61952), all below the 101376-byte opt-in limit of the device.
- native_prompt_device.rs PLE_SHA did not match the committed ple_prompt_device.ptx (CUDA 13.0.88 build); re-pinned to the file.
Structural/build evidence only: no numerical, quality or performance claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:30:40 +02:00
..