Skip to content

hexagon: SmolVLA 1037 → 918 ms on the VENTUNO Q (GELU, patch embed, SigLIP views, time fold, gate|up) - #87

Merged
khanhnd61-vr merged 5 commits into
mainfrom
perf/smolvla-hexagon
Nov 21, 2026
Merged

khanhnd61-vr merged 5 commits into
mainfrom
perf/smolvla-hexagon

Conversation

@khanhnd61-vr

Copy link
Copy Markdown
Collaborator

SmolVLA on the Arduino VENTUNO Q (Hexagon v75, 4 threads, llama.cpp b11223): 1037 → 918 ms mean. max|Δ| is 6.55e-4 against a CPU-only f32 build (bar 2.9e-3), and no op falls back to the CPU any more.

  • The tanh GELU takes five ops instead of seven (ggml_scale_bias carries the offset).
  • The SigLIP patch embed is one matmul over the im2col columns, which drops two transposing copies. SigLipTower::embed_conv is shared, so π0, π0.5 and GR00T N1.5 get this too.
  • SigLIP Q/K/V reach flash attention as permuted views, not copies in the head layout.
  • The time half of action_time_mlp_in is folded per step at load. The per-step concat, which the NPU refuses, is gone, and with it 10 CPU round trips per predict.
  • gate|up is one matmul plus a SwiGLU in the VLM and the expert, unless the GGUF packs that stack's gate. The output is bit-identical to the split weights.

All of it is behind GGML_USE_HEXAGON, so other backends build the same graphs as before. The Windows Snapdragon build picks it up too.

Not measured: the IQ-10 (v81), Windows, and π0, π0.5 and N1.5, which don't fit the VENTUNO Q's FastRPC mapping limit.

@khanhnd61-vr
khanhnd61-vr merged commit 297b9c9 into main Nov 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant