Skip to content

inkling2: in-place conv state, no copies of contiguous row views - #135

Merged
rafasmour merged 1 commit into
masterfrom
inkling/upstream-opt
Nov 22, 2026
Merged

rafasmour merged 1 commit into
masterfrom
inkling/upstream-opt

Conversation

@rafasmour

Copy link
Copy Markdown
Owner

Follow-up to #134.

  • inkling2: the recurrent conv state is read in place (build_rs_in_place) when the state copy is the identity, so the per-layer state gather of 19968 floats goes away; the four convolutions of a layer read their own slice of the state before writing it back
  • llm_graph_input_mem_hybrid_iswa_rel::can_reuse also compares s_copy_identity, like the other hybrid inputs
  • inkling2: the per-input and per-message row views of the depth mix are copied only when they are not contiguous (prompt batches); for one token they are used as they are

RX 7900 XT, Inkling-2-Mini UD-Q3_K_XL: tg128 44.6 -> 47.0 t/s; decode kernels per token 3447 -> 3173 (get_rows 49 -> 1, copies 219 -> 20). Perplexity bit-identical to #134; KL vs the build before #132 0.0025 (noise floor 0.0023).

Assisted-by: Claude Opus 5.5

… are not contiguous

Assisted-by: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant