Feature/data loader api#785
Merged
Merged
Conversation
Always-on accumulating profiler (quant-NEON / fp32-scalar / generic) on the DefaultCpuOps.matmul dispatch, read via KernelProfile.report(). Clock read per call is negligible next to a matmul. Used to localize native board decode cost: showed 100% of matmul time is the quant-NEON path (fp32-scalar/generic never hit). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…matmul on A55 Two changes to skainet_q4k_matmul, both validated against the Panama reference (aggregate RMS gate, AGG_REL_TOL=0.03) and on-board generation: 1. Loop order block-OUTER / output-row-INNER. The weight is packed block-major (blockIdx*outputDim + o)*144, so for a fixed block consecutive `o` are exactly 144 bytes apart — weight bytes are now read strictly sequentially (prefetch/cache-line friendly). The previous o-outer order strided outputDim*144 (~295 KB on the down-proj) per step, making every weight read a cold miss on the in-order A55 with small caches. out_base[o] accumulates across blocks (stays hot in cache); accumulation order is unchanged so the result is numerically identical. 2. ggml-style Q8 activation quantization + integer vdotq_s32 dot path (asimddp), input row quantized once per 256-block and reused across all output rows; scalar integer fallback when dotprod is absent. On the SL2619 (Cortex-A55, TinyLlama Q4_K_M, 8-tok decode), Q4_K matmul dropped 41730 ms -> 20133 ms (2.07x); end-to-end decode 0.123 -> 0.184 tok/s (1.50x, matmul being ~64% of decode). The loop reorder is the dominant lever — the Q8 dot alone showed no gain because the kernel was memory-stall-bound, not compute-bound. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 29, 2026
Closed
michalharakal
added a commit
that referenced
this pull request
Jul 5, 2026
…nt 2.07× Bumps VERSION_NAME 0.33.0 -> 0.34.0. Bundles the develop changes since 0.33.0: the new skainet-data-source module (URI-backed sources, HF auth, raw format parsers, suspend data pipeline DSL) + dataset operation views and richer batches (#784/#785), the bf16-native DSL -> StableHLO export path and the pluggable per-phase/per-target compile-optimization seam (#788/#791), NEON K-quant matmul perf (block-outer order + fused Q8 int8 dot, 2.07x Q4_K on Cortex-A55) with aarch64 board verification (#786/#787), LayerNorm f32 normalization + rank-0 tensor-type emission fixes, macOS host build fix (#789), Code of Conduct (#790), and the offline markup-antora docs image (#781). Minor bump (not patch): new published module skainet-data-source; all data-api additions are default-bearing (no source-incompatible changes). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
MacOS
pushed a commit
to MacOS/SKaiNET
that referenced
this pull request
Jul 10, 2026
…nt 2.07× Bumps VERSION_NAME 0.33.0 -> 0.34.0. Bundles the develop changes since 0.33.0: the new skainet-data-source module (URI-backed sources, HF auth, raw format parsers, suspend data pipeline DSL) + dataset operation views and richer batches (SKaiNET-developers#784/SKaiNET-developers#785), the bf16-native DSL -> StableHLO export path and the pluggable per-phase/per-target compile-optimization seam (SKaiNET-developers#788/SKaiNET-developers#791), NEON K-quant matmul perf (block-outer order + fused Q8 int8 dot, 2.07x Q4_K on Cortex-A55) with aarch64 board verification (SKaiNET-developers#786/SKaiNET-developers#787), LayerNorm f32 normalization + rank-0 tensor-type emission fixes, macOS host build fix (SKaiNET-developers#789), Code of Conduct (SKaiNET-developers#790), and the offline markup-antora docs image (SKaiNET-developers#781). Minor bump (not patch): new published module skainet-data-source; all data-api additions are default-bearing (no source-incompatible changes). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.