Qwen2.5-Coder-7B-Instruct-GGUF-loom
running a coding model via AMD Loom
2 min read
This is not a new model weight, but a ready-made set of configurations and programs to run the Qwen2.5-Coder-7B-Instruct-GGUF model via the AMD Loom engine (hrx-system). The package by author 1bit-MONSTER adapts programs from loom-fun/bartowski-Qwen2.5-7B-Instruct-loom for the Q4_K_M quantized version of the 7-billion-parameter Qwen2.5-Coder model. The weights themselves are not stored in the repository—the loom-fetch utility downloads them directly from the original Qwen repository and checks the sha256 checksum. This solution will be useful for developers who run local programming models on AMD Ryzen AI Max+ 395 processors and want to squeeze out more speed when processing context.
Key features
- Native operation in AMD Loom: includes
.loomprograms andmodel.jsonfor running vialoom-servewithout manual graph configuration. - Accelerated prefill and lower latency: on long prompts of 2,000 tokens, processing speed reaches 2141.1 tok/s compared to 1857.2 tok/s for llama.cpp-HRX, and time to first token (TTFT) is reduced from 64.14 to 43.74 ms.
- Complete accuracy match: on a test set of 8 prompts, the answers 100% match the reference CPU run without empty generations or discrepancies.
- Automatic weight downloading: the
loom-fetchcommand itself pulls the required revision of theqwen2.5-coder-7b-instruct-q4_k_m.gguffile and verifies integrity.
What you can do
- Deploy a local code auto-completion and generation server with the
/v1/chat/completionsAPI on a mini-PC or laptop with a Strix Halo chip. - Use it to analyze large code snippets (up to 4k tokens), where the Loom setup maintains generation speed at 43.34 tok/s.
- Compare the performance of the
hrx-loomengine with the classicllama.cppbackend on your own working tasks.
Example
pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:1bit-MONSTER/Qwen2.5-Coder-7B-Instruct-GGUF-loom:chat --materialize=copy --output=Qwen2.5-Coder-7B-Instruct
loom-serve --model=Qwen2.5-Coder-7B-Instruct --preset=chat '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed
Read more
DetailsHardware: tested only on AMD Ryzen AI Max+ 395 "Strix Halo" (gfx1151 architecture).
Speed at 4k context: generation 43.34 tok/s (vs 34.87 tok/s for llama.cpp-HRX); processing 512 tokens — 1515.4 tok/s.
Limitations: Loom does not return logprobs, so the KLD metric was not measured; requires an installed ROCm stack and
hrx-loom==0.2.0 to work.









Comments