Repository navigation
hexagon: build and run on Snapdragon Linux (IQ-10) - #68
Open
thanhdq1o2 wants to merge 2 commits into
Open
thanhdq1o2 wants to merge 2 commits into
thanhdq1o2 wants to merge 2 commits into
Conversation
The Hexagon SDK has no arm64 Linux build, so on a Snapdragon Linux board such as IQ-10 vla.cpp is cross-built in Qualcomm's toolchain container. build_linux_snapdragon.sh runs that build and packages bin/ and lib/ with the HTP skels. With vla-server it installs Debian's arm64 protobuf and ZeroMQ dev packages in the container (multiarch); --no-server skips them. HTP_SKEL_POST runs a command on each skel, for boards that load only processed skels. Verified on IQ-10 (Linux, Hexagon v81): vla-server serves SmolVLA to eval/client/vla_cpp_client.py, and vla_predict_check matches the CPU F32 reference to 7.2e-4.
Document the IQ-10 under Linux: cross-building with scripts/build_linux_snapdragon.sh, installing the HTP skel (FastRPC there ignores ADSP_LIBRARY_PATH and loads only processed skels from /vendor/dsp/cdspN), running vla-server, the CONCAT refusal, and the fidelity of the six archs run so far. Add a CHANGELOG entry.
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.
Adds a build script and docs for running vla.cpp on the Hexagon NPU of a Snapdragon Linux board
(IQ-10). Follow-up to #67, which fixed the runtime abort; this makes the setup reproducible.
What changes
scripts/build_linux_snapdragon.sh(new): cross-builds vla.cpp,vla-serverincluded, inQualcomm's toolchain container, and packages the binaries and HTP skels.
docs/backend/hexagon.md: a Linux (IQ-10) section with build, skel install, run and results.CHANGELOG.md: one Unreleased entry.Risk
Tested on an IQ-10 (Linux, Hexagon v81, llama.cpp
b11223) with the publishedvrfai/*GGUFs:vla-server, and the binaries run on the board.vla-serverserves SmolVLA toeval/client/vla_cpp_client.py.vla_predict_checkagainst CPU F32 (bar 2.9e-3):Not in this PR