Skip to content

deps: llama.cpp v1.0.0 (Hexagon SmolVLA 919 → 724 ms, TurboVLA 542 → 225 ms) - #88

Open
khanhnd61-vr wants to merge 3 commits into
mainfrom
chore/llama-v1.0.0
Open

khanhnd61-vr wants to merge 3 commits into
mainfrom
chore/llama-v1.0.0

Conversation

@khanhnd61-vr

Copy link
Copy Markdown
Collaborator

Bumps llama.cpp from b11223 to v1.0.0.

  • src/vlm/engine.cpp ported to the new API (common_chat_prompt, common_batch + llama_process).
  • OpenVINO patch 55 → 35 hunks: six fixes are upstream now (GELU modes, Intel OpenCL platform, RESHAPE op_case guard, IMROPE bound, 2D im2col fold → upstream FuseToConv). ggml now registers one device per OpenVINO device, so backend_init opens the one GGML_OPENVINO_DEVICE selects; a missing device aborts with the device list instead of falling back to the CPU plugin.
  • CUDA: v1.0.0's rms_norm sums float4s on aligned rows, so the fused RMSNorm kernels follow it to stay bit-identical to ggml.
  • Hexagon: GELU (tanh) and op fusion are exact upstream, so vla::gelu(), its fallback rule and the GGML_HEXAGON_OPFUSION=0 default are gone. Needs toolchain image v0.8 (tools 21; SDK 6.7 on Windows).
  • CUDA/SYCL patch scripts: migration code for older tags removed (output byte-identical).

Tested

Backend Result
Hexagon v75 (Arduino VENTUNO Q) SmolVLA 919 → 724 ms, ACT 254 → 226, Octo 169 → 142, TurboVLA 542 → 225, Evo-1 4559 → 3311; all ≤ 8.5e-4 max|Δ| vs the CPU build
CUDA (RTX 3060) ctest 17/17; fused == VLA_FUSED_OPS=0 bit-identical on 13 models; F32 main vs PR ≤ 7e-4 (VLA-JEPA 4.9e-3); BF16 error vs an F32 reference unchanged over 8 seeds; latency ±1%
ROCm (RX 9060 XT) F32 main vs PR ≤ 2e-6 (SmolVLA 4.1e-4); latency ±1%
OpenVINO CPU plugin 6 models bit-identical to main; 1-3% faster
vlm-server (SmolVLM2-500M) identical greedy text

TODO: not tested yet

  • SYCL (Intel Arc / Core Ultra iGPU): test_fused_sycl_ops, test_bf16_sycl_ops, parity vs main. ggml-sycl's element-wise and fusion code changed in v1.0.0.
  • OpenVINO GPU and NPU plugins (Core Ultra): SmolVLA, π0 with the f32 precision default, GR00T N1.7, the NPU fixes, device selection.
  • Metal (Apple M4).
  • CUDA latency on the RTX 3090.
  • Hexagon on the IQ-10 (v81) and Windows on Snapdragon X, including GR00T N1.7 with upstream GELU_ERF and op fusion on.

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