Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/issues/472f09225f157d77 # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [LLAMA-OMEGA P0] Close the dense-model F16 operator and layout profile Open · #75 · open 2026-10-24 23:32 UTC Imported from GitHub aien-dev/CUDApp#75, by drakestapleton drakestapleton wrote on 2026-10-24 23:32 UTC ## Outcome and ownership Supply the exact native operations needed by the llama.cpp adoption backend , using existing tensor realization #35 , Omega #661 /#666 and existing kernel/compiler owners. This is a bounded operator/type/layout profile, not another model engine or a second compiler. ## Freeze before implementation Source-derived candidate: dense Llama, F16 weights with F32 norm vectors/activations, F16 KV, one sequence/device, ordinary RoPE, flash attention off, no LoRA/MoE/multimodal/speculation/context shift. TinyLlama-1.1B is an example, not a frozen user-approved artifact. Existing model owner chooses one supported real model, pins all files/quantization/conversion identities and records actual prefill/decode graphs. If that profile changes, regenerate the required operation manifest. Source inspected: llama.cpp `d327bf1f0780f87b8c01b367b61853b0c291d7c4`, Llama graph , graph construction , KV implementation . This list is source-derived, not an executed graph census. ## Required contract - GET_ROWS: F32 internal/final row selection with I32 indices; upstream token embedding is separately declared host work. - RMS_NORM plus F32 broadcast MUL, residual ADD. - MUL_MAT: F16 storage × F32 activation → F32 output, including batched/strided K/V attention and exact grouped-query head mapping. F16 is not BF16 or FP8; do not reinterpret formats to reuse a kernel. - ROPE: exact configured dimensions/base/position semantics; reject unsupported scaling modes. - SET_ROWS: F32 values narrowed to F16 cache through I64 indices; output aliases destination. Test ordinary K rows AND non-flash V's indexed/strided forms. CPY is not a substitute for this current upstream op. - SOFT_MAX_EXT: stable reduction, causal/padding mask and declared scale; reject unimplemented optional features. - GLU with split SWIGLU: both gate/up inputs; not merely unary SiLU. - CONT: real strided-to-contiguous materialization. - NONE/VIEW/RESHAPE/PERMUTE and admitted TRANSPOSE are metadata/alias operations with root-buffer lifetime, not imaginary independent allocations. Validate ne extents, nb BYTE strides, offsets, spans and overflow. Preserve all read/write dependencies, source/destination aliasing and completion-bound lifetime. Start with correct explicit copies; unified physical memory is not proof of coherent zero-copy. Use existing checked IR, legalizer, kernel registry, launcher and receipts. Implement missing cases in owning native sources; supports_op must be narrow to exact implemented dtype/layout/shape/op parameters. ## Ordered acceptance - Emit/freeze a machine-readable required-case manifest from the actual selected model graphs, including valid partial prefill chunks and multi-token decode. - Independently compare every required operator form to pinned CPU/oracle behavior, including edge values, NaN/Inf, rounding/accumulation and masked cases under predeclared tolerances. - Catch wrong head broadcast, F16/BF16 confusion, I64-index truncation, wrong view offsets, missing CONT, early release and omitted synchronization with discriminating controls. - Pass a full layer, then all model layers, output selection and repeated KV decode through the same native path. - Test near-context limit, nonzero KV positions, chunk boundaries, invalid shapes, OOM, failure and recovery. - Required tests have nonzero executed counts, no skipped mandatory cases, and verified Omega backend identity. - Record source/compiler/artifact/device identities and physical results; prior CUDApp #73 vector/teardown PASS is not full-model or FP16 qualification. Out of scope: quantized weights/KV, flash attention, multi-GPU, new model architectures and speculative rollback. Expand via separately named qualified profiles after this one passes. ## Shared delivery boundary User-requested plan, 2026-10-24. Read current source, ADRs, active PRs and ownership before edits. New first-party implementation/tests use seeded .om and existing compiler/runtime/verifier; no duplicate stack. Preserve licenses/provenance of external integration material. No live serving disruption, unreserved GPU work, install, driver/firmware change, upstream submission, merge or release is implied. Retain exact identities, raw commands/exits, negative controls and independent review. NOT_RUN/BLOCKED is not PASS; source, host, simulator and physical results are separate. No comments. Sign in to comment