feat: npu workflow#30
Draft
maciejmajek wants to merge 1 commit into
Draft
Conversation
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.
feat: NPU inference setup (FastFlowLM + AMD Ryzen AI)
Adds an optional, one-command setup for running LLM inference on the AMD Ryzen AI NPU via FastFlowLM, targeting the Ryzen AI MAX+ 395 (Strix Halo) machines.
What's in this PR
pixi run -e local install-npu-inference— new optional task under thelocal-inferencefeature (pixi.toml).scripts/install_npu_inference.sh— idempotent installer that:lemonade-team/stablePPA and installslibxrt-npu2+amdxdna-dkms; skips if already present, flags reboot when freshly installed.RobotecAI/FastFlowLMintoinference/FastFlowLM/, builds with thelinux-defaultCMake preset, andsudo cmake --installsflm. Skips ifflmis already on PATH.ulimit -l; appends* soft/hard memlock unlimitedto/etc/security/limits.confif not already unlimited, and flags reboot.xrt-smi examine+flm validate, capturing output. On success prints a clean✓ NPU visible & ready / ✓ FLM ready; on failure prints the captured diagnostics plus a troubleshooting block (kernel module loaded?xrt-smiseeing the device?) with links to the FastFlowLM and Lemonade Linux guides.Tested on
AMD Ryzen AI MAX+ 395, Ubuntu 24.04, kernel 6.17.0-1025-oem.
TODO
flm servetask analogous to theserve-llm/serve-vlmllama.cpp tasks, exposing an OpenAI-compatible endpoint.modprobepersistence + IOMMU check into the script or keep them as manual/documented steps.install-npu-inferencein the setup docs (docs/setup_*.md).