hipEngine is a ROCm-native local inference engine built primarily for AMD Radeon GPUs. It pairs a small Python host with custom HIP kernels for torch-free model loading, generation, and OpenAI-compatible serving on supported hardware.
Current release: v0.5.0. Besides the Qwen 3.6 PARO and GGUF models, the latest version of hipEngine now supports GGUF inference for more model families. These include Laguna S 2.1, Maple ternary, and Moonshine ASR.
hipEngine is a new, small software project focused on making a select list of models perform well, particularly Qwen 3.x variants and fine-tunes.
Yes means that public text generation has been tested. A dash means that the
combination is not supported. The Qwen rows group closely related model
versions, with size-specific format coverage shown explicitly. Features such as
batching, sampling, tools, and long context can differ by model.
| Model family | Tested models and formats | RX 7900 XTX / W7900 (gfx1100) | Radeon 8060S (gfx1151) | NVIDIA Blackwell (sm_120a) |
|---|---|---|---|---|
| Qwen3.x Dense | 0.8B: GGUF Q4_K_M, Q8_0, Q4_1, UD-Q4_K_XL27B: GGUF Q4_K_M; Qwen3.8-27B Q4_K_S on gfx1151 | Yes | Yes | — |
| Qwen3.x MoE | 35B-A3B: GGUF Q4_K_M, Q4_K_S, UD-Q3_K_M, UD-Q4_K_MParoQuant W4 | Yes | Yes | — |
| Laguna S 2.1 | GGUF Q4_K_M | — | Yes | — |
| Maple-Preview 20B-A1B | 2-bit MLX | Yes | Yes | Python API only |
CPU model generation is not supported. The CPU backend is used for correctness
tests. On NVIDIA, load Maple with backend="cuda_sm120a"; automatic hardware
selection currently covers AMD only.
Support is specific to the listed model families and formats. hipEngine does not yet run every GGUF model. See the GGUF, Laguna, and Maple guides for model-specific limits.
For Qwen3.6 35B-A3B on W7900, the optimized ParoQuant W4 checkpoint currently leads short-context generation and uses less memory. GGUF leads prompt processing from 1K tokens onward in the current six-shape sweep.
GGUF has a much larger model and quantization ecosystem. Current development is therefore focused on GGUF compatibility. Choose PARO for this exact optimized checkpoint or GGUF for broader compatibility.
| Platform | Requirements |
|---|---|
| AMD | Linux x86-64, Python 3.11+ and ROCm with hipcc and libamdhip64.so |
| NVIDIA Blackwell | Linux x86-64, Python 3.11+ and the CUDA toolkit with nvcc; Maple only |
| Published wheel | glibc 2.39 or newer, such as Ubuntu 24.04 |
ROCm 7.x is the safest choice for the current wheel. The first model load compiles and caches kernels, so it takes longer than later starts.
Install from PyPI:
pip install hipengine huggingface_hub
Or install a source checkout:
git clone https://github.com/shisa-ai/hipEngine.git
cd hipEngine
git lfs install
git lfs pull
pip install -e .
Confirm that the command is available:
hipengine --help
hipengine serve --help
hipEngine does not download model weights during startup. Download a supported model first, or use a GGUF file that is already on disk.
For the ParoQuant Qwen checkpoint:
hf download shisa-ai/Qwen3.6-35B-A3B-PARO-packed
hipengine serve \
--model shisa-ai/Qwen3.6-35B-A3B-PARO-packed \
--served-model-name qwen-paro
For GGUF, pass the path to the model file:
hipengine serve \
--model /path/to/Qwen3.6-35B-A3B-Q4_K_M.gguf \
--served-model-name qwen
The server listens on http://127.0.0.1:8000 by default. Test it with:
curl http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen",
"messages": [{"role": "user", "content": "Why is the sky blue?"}],
"max_tokens": 128
}'
Point any client that accepts a custom OpenAI base URL at
http://127.0.0.1:8000/v1. See the server guide for API keys,
streaming, tools, structured output, and model capability checks.
from hipengine import LLM, SamplingParams
llm = LLM("shisa-ai/Qwen3.6-35B-A3B-PARO-packed")
outputs = llm.generate(
["Hello, hipEngine."],
SamplingParams(max_tokens=64, temperature=0.0),
)
print(outputs[0])
llm.close()
LLM(...) detects a supported AMD GPU and chooses the model format
automatically. You can also pass a local GGUF or Maple path. Advanced users can
override the choice with backend= and quant=. The opt-in
execution_profile="strict"|"production"|"batch_invariant" selector is
fail-closed to registered kernel plans with exact fallbacks; omitting it
preserves the migration default until profile calibration completes.
These are measured results, not estimates. Prompt processing is the speed of reading the input. Text generation is the speed of producing new tokens.
Every number below is measured on the named hardware and links to a reproducible artifact. Prompt processing is how fast hipEngine reads your input; text generation is how fast it writes new tokens. With MTP is speculative decoding, which is enabled only where it is qualified for that model and shape. Rows use different models and protocols — compare within a row, not across them.
gfx1100)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Qwen3.6-35B-A3B | ParoQuant W4 | 2852.1 | 115.8 | 115.8 | — |
| Qwen3.6-35B-A3B | GGUF Q4_K_M | 2763.6 | 94.6 | 122.7 (opt-in) | — |
| Qwen3.6-27B Dense | GGUF Q4_K_M | 875.4 | 28.7 | 32.1 | — |
| Qwen3.8-27B Dense | GGUF Q4_K_M | 678.8 | 29.6 | — | — |
| Laguna S 2.1 | GGUF UD-Q2_K_XL | 440.9 (4K) | — | — | — |
gfx1151)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Maple-Preview | 2-bit | 754.5 | 153.2 | — | — |
| Qwen3.6-35B-A3B | GGUF UD-Q4_K_M | 1369.5 | 54.3 | 80.1 (opt-in) | — |
| Laguna S 2.1 | GGUF Q4_K_M | 654.2 | 23.2 | — | — |
| Qwen3.8-27B Dense | GGUF Q4_K_S | 396.1 | 13.1 | 23.9 | — |
| Qwen3.8-27B Dense | GGUF Q4_K_M | — | — | 15.6 | — |
sm_120a)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Maple-Preview | 2-bit | 1917.5 | 402.4 | — | — |
hipEngine is very strong at multi-concurrency vs llama.cpp (or even vLLM).
Aggregate tokens per second across all active requests, Qwen3.8-27B Q4_K_M
on the W7900 under one server protocol; the peers use F16 KV where hipEngine
uses BF16.
| Requests | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| hipEngine | 23.6 | 39.1 | 53.1 | 63.9 | 72.8 | 79.5 | 83.2 | 85.9 |
| llama.cpp HIP | 21.0 | 34.4 | 30.6 | 27.7 | 36.7 | 46.4 | 52.1 | 58.4 |
| hipEngine advantage | +12% | +14% | +74% | +130% | +99% | +71% | +60% | +47% |
Direct engine route on the same card and model, 512-token prompts and 128 generated tokens per request, showing what each added request costs in memory:
| Requests | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Text generation (total) | 29.6 | 54.0 | 75.2 | 92.3 | 105.9 | 117.6 | 123.9 | 131.3 |
| Prompt processing (total) | 678.8 | 368.9 | 362.6 | 380.0 | 378.3 | 403.6 | 385.3 | 376.6 |
| Peak memory (GiB) | 19.4 | 20.3 | 21.1 | 22.0 | 22.8 | 23.7 | 24.5 | 25.4 |
Eight concurrent requests need about 25 GiB, so this shape wants a 32 GB or larger card. What the same model tolerates on a 24 GB card is not qualified yet.
On Strix Halo, Maple-Preview 2-bit scales to 214.788 tok/s across eight requests (123.131 at one, 165.697 at two, 202.038 at four). Where speculative decoding runs automatically in production it is scoped to a qualified shape: Qwen3.6-35B-A3B GGUF reaches 93.644 tok/s public — 1.1565x its own AR — at two concurrent requests on the W7900.
Full commands, software versions, model hashes, memory use, and correctness checks are in the benchmark report.
v0.5.0 adds the dense Qwen models, and hipEngine now picks some performance routes on its own, but only where they have been measured as safe:
strict, production,
batch_invariant) that runs a registered kernel plan, checks that its
fallbacks are installed, and rejects a combination hipEngine has not been
shown to complete.fair prefill/decode policy, a smaller
per-process GPU memory reserve on Radeon RDNA 3, and FP16 recurrent state for
Qwen3.8 Q4_K_S on Strix Halo.Full user-facing change history is in the changelog.
Important limits:
HIPENGINE_GGUF_MTP_VERIFY_MODE=serial_exact restores token-for-token
agreement. See Server API.backend="auto" recognizes gfx1100 and gfx1151. These cover the tested
Radeon RX 7900 XTX / Pro W7900 and Ryzen AI MAX+ 395 / Radeon 8060S systems.
Other AMD architecture numbers are not automatically treated as compatible.
You can force a nearby backend, but do so only after checking output quality and performance. hipEngine will not silently use PyTorch when a GPU is unsupported.
| Guide | Contents |
|---|---|
| Server API | OpenAI-compatible endpoints, clients, authentication, and limits |
| GGUF models | Supported Qwen formats and model-specific behavior |
| Laguna S 2.1 | Hardware, memory, context, and serving limits |
| Maple-Preview | AMD and NVIDIA support, memory use, and current limits |
| Environment settings | Runtime settings and overrides |
| Changelog | User-facing changes by release |
| Guide | Contents |
|---|---|
| Architecture and roadmap | Engine design and planned work |
| Kernel catalog | Kernel implementations and source history |
| Testing | Correctness tests and release checks |
| Benchmark methods | Rules used for performance claims |
| Benchmark results | Full result tables and evidence |
| Contributor guide | Repository workflow |
hipEngine is an independent project that builds on ideas and software from ROCm, HIP, Nano-vLLM, ParoQuant, FastDMS, llama.cpp, and other open-source projects. See the source and model guides for detailed attribution.
hipEngine source code is licensed under AGPL-3.0-or-later. Model weights, checkpoints, and external datasets remain under their own licenses.
6,233 commits
1 commits
Python
87.6%
HIP
9.9%
C++
1.6%
hipEngine is a ROCm-native local inference engine built primarily for AMD Radeon GPUs. It pairs a small Python host with custom HIP kernels for torch-free model loading, generation, and OpenAI-compatible serving on supported hardware.
Current release: v0.5.0. Besides the Qwen 3.6 PARO and GGUF models, the latest version of hipEngine now supports GGUF inference for more model families. These include Laguna S 2.1, Maple ternary, and Moonshine ASR.
hipEngine is a new, small software project focused on making a select list of models perform well, particularly Qwen 3.x variants and fine-tunes.
Yes means that public text generation has been tested. A dash means that the
combination is not supported. The Qwen rows group closely related model
versions, with size-specific format coverage shown explicitly. Features such as
batching, sampling, tools, and long context can differ by model.
| Model family | Tested models and formats | RX 7900 XTX / W7900 (gfx1100) | Radeon 8060S (gfx1151) | NVIDIA Blackwell (sm_120a) |
|---|---|---|---|---|
| Qwen3.x Dense | 0.8B: GGUF Q4_K_M, Q8_0, Q4_1, UD-Q4_K_XL27B: GGUF Q4_K_M; Qwen3.8-27B Q4_K_S on gfx1151 | Yes | Yes | — |
| Qwen3.x MoE | 35B-A3B: GGUF Q4_K_M, Q4_K_S, UD-Q3_K_M, UD-Q4_K_MParoQuant W4 | Yes | Yes | — |
| Laguna S 2.1 | GGUF Q4_K_M | — | Yes | — |
| Maple-Preview 20B-A1B | 2-bit MLX | Yes | Yes | Python API only |
CPU model generation is not supported. The CPU backend is used for correctness
tests. On NVIDIA, load Maple with backend="cuda_sm120a"; automatic hardware
selection currently covers AMD only.
Support is specific to the listed model families and formats. hipEngine does not yet run every GGUF model. See the GGUF, Laguna, and Maple guides for model-specific limits.
For Qwen3.6 35B-A3B on W7900, the optimized ParoQuant W4 checkpoint currently leads short-context generation and uses less memory. GGUF leads prompt processing from 1K tokens onward in the current six-shape sweep.
GGUF has a much larger model and quantization ecosystem. Current development is therefore focused on GGUF compatibility. Choose PARO for this exact optimized checkpoint or GGUF for broader compatibility.
| Platform | Requirements |
|---|---|
| AMD | Linux x86-64, Python 3.11+ and ROCm with hipcc and libamdhip64.so |
| NVIDIA Blackwell | Linux x86-64, Python 3.11+ and the CUDA toolkit with nvcc; Maple only |
| Published wheel | glibc 2.39 or newer, such as Ubuntu 24.04 |
ROCm 7.x is the safest choice for the current wheel. The first model load compiles and caches kernels, so it takes longer than later starts.
Install from PyPI:
pip install hipengine huggingface_hub
Or install a source checkout:
git clone https://github.com/shisa-ai/hipEngine.git
cd hipEngine
git lfs install
git lfs pull
pip install -e .
Confirm that the command is available:
hipengine --help
hipengine serve --help
hipEngine does not download model weights during startup. Download a supported model first, or use a GGUF file that is already on disk.
For the ParoQuant Qwen checkpoint:
hf download shisa-ai/Qwen3.6-35B-A3B-PARO-packed
hipengine serve \
--model shisa-ai/Qwen3.6-35B-A3B-PARO-packed \
--served-model-name qwen-paro
For GGUF, pass the path to the model file:
hipengine serve \
--model /path/to/Qwen3.6-35B-A3B-Q4_K_M.gguf \
--served-model-name qwen
The server listens on http://127.0.0.1:8000 by default. Test it with:
curl http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen",
"messages": [{"role": "user", "content": "Why is the sky blue?"}],
"max_tokens": 128
}'
Point any client that accepts a custom OpenAI base URL at
http://127.0.0.1:8000/v1. See the server guide for API keys,
streaming, tools, structured output, and model capability checks.
from hipengine import LLM, SamplingParams
llm = LLM("shisa-ai/Qwen3.6-35B-A3B-PARO-packed")
outputs = llm.generate(
["Hello, hipEngine."],
SamplingParams(max_tokens=64, temperature=0.0),
)
print(outputs[0])
llm.close()
LLM(...) detects a supported AMD GPU and chooses the model format
automatically. You can also pass a local GGUF or Maple path. Advanced users can
override the choice with backend= and quant=. The opt-in
execution_profile="strict"|"production"|"batch_invariant" selector is
fail-closed to registered kernel plans with exact fallbacks; omitting it
preserves the migration default until profile calibration completes.
These are measured results, not estimates. Prompt processing is the speed of reading the input. Text generation is the speed of producing new tokens.
Every number below is measured on the named hardware and links to a reproducible artifact. Prompt processing is how fast hipEngine reads your input; text generation is how fast it writes new tokens. With MTP is speculative decoding, which is enabled only where it is qualified for that model and shape. Rows use different models and protocols — compare within a row, not across them.
gfx1100)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Qwen3.6-35B-A3B | ParoQuant W4 | 2852.1 | 115.8 | 115.8 | — |
| Qwen3.6-35B-A3B | GGUF Q4_K_M | 2763.6 | 94.6 | 122.7 (opt-in) | — |
| Qwen3.6-27B Dense | GGUF Q4_K_M | 875.4 | 28.7 | 32.1 | — |
| Qwen3.8-27B Dense | GGUF Q4_K_M | 678.8 | 29.6 | — | — |
| Laguna S 2.1 | GGUF UD-Q2_K_XL | 440.9 (4K) | — | — | — |
gfx1151)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Maple-Preview | 2-bit | 754.5 | 153.2 | — | — |
| Qwen3.6-35B-A3B | GGUF UD-Q4_K_M | 1369.5 | 54.3 | 80.1 (opt-in) | — |
| Laguna S 2.1 | GGUF Q4_K_M | 654.2 | 23.2 | — | — |
| Qwen3.8-27B Dense | GGUF Q4_K_S | 396.1 | 13.1 | 23.9 | — |
| Qwen3.8-27B Dense | GGUF Q4_K_M | — | — | 15.6 | — |
sm_120a)| Model | Quant | Prompt processing | Text generation | With MTP | Max context |
|---|---|---|---|---|---|
| Maple-Preview | 2-bit | 1917.5 | 402.4 | — | — |
hipEngine is very strong at multi-concurrency vs llama.cpp (or even vLLM).
Aggregate tokens per second across all active requests, Qwen3.8-27B Q4_K_M
on the W7900 under one server protocol; the peers use F16 KV where hipEngine
uses BF16.
| Requests | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| hipEngine | 23.6 | 39.1 | 53.1 | 63.9 | 72.8 | 79.5 | 83.2 | 85.9 |
| llama.cpp HIP | 21.0 | 34.4 | 30.6 | 27.7 | 36.7 | 46.4 | 52.1 | 58.4 |
| hipEngine advantage | +12% | +14% | +74% | +130% | +99% | +71% | +60% | +47% |
Direct engine route on the same card and model, 512-token prompts and 128 generated tokens per request, showing what each added request costs in memory:
| Requests | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Text generation (total) | 29.6 | 54.0 | 75.2 | 92.3 | 105.9 | 117.6 | 123.9 | 131.3 |
| Prompt processing (total) | 678.8 | 368.9 | 362.6 | 380.0 | 378.3 | 403.6 | 385.3 | 376.6 |
| Peak memory (GiB) | 19.4 | 20.3 | 21.1 | 22.0 | 22.8 | 23.7 | 24.5 | 25.4 |
Eight concurrent requests need about 25 GiB, so this shape wants a 32 GB or larger card. What the same model tolerates on a 24 GB card is not qualified yet.
On Strix Halo, Maple-Preview 2-bit scales to 214.788 tok/s across eight requests (123.131 at one, 165.697 at two, 202.038 at four). Where speculative decoding runs automatically in production it is scoped to a qualified shape: Qwen3.6-35B-A3B GGUF reaches 93.644 tok/s public — 1.1565x its own AR — at two concurrent requests on the W7900.
Full commands, software versions, model hashes, memory use, and correctness checks are in the benchmark report.
v0.5.0 adds the dense Qwen models, and hipEngine now picks some performance routes on its own, but only where they have been measured as safe:
strict, production,
batch_invariant) that runs a registered kernel plan, checks that its
fallbacks are installed, and rejects a combination hipEngine has not been
shown to complete.fair prefill/decode policy, a smaller
per-process GPU memory reserve on Radeon RDNA 3, and FP16 recurrent state for
Qwen3.8 Q4_K_S on Strix Halo.Full user-facing change history is in the changelog.
Important limits:
HIPENGINE_GGUF_MTP_VERIFY_MODE=serial_exact restores token-for-token
agreement. See Server API.backend="auto" recognizes gfx1100 and gfx1151. These cover the tested
Radeon RX 7900 XTX / Pro W7900 and Ryzen AI MAX+ 395 / Radeon 8060S systems.
Other AMD architecture numbers are not automatically treated as compatible.
You can force a nearby backend, but do so only after checking output quality and performance. hipEngine will not silently use PyTorch when a GPU is unsupported.
| Guide | Contents |
|---|---|
| Server API | OpenAI-compatible endpoints, clients, authentication, and limits |
| GGUF models | Supported Qwen formats and model-specific behavior |
| Laguna S 2.1 | Hardware, memory, context, and serving limits |
| Maple-Preview | AMD and NVIDIA support, memory use, and current limits |
| Environment settings | Runtime settings and overrides |
| Changelog | User-facing changes by release |
| Guide | Contents |
|---|---|
| Architecture and roadmap | Engine design and planned work |
| Kernel catalog | Kernel implementations and source history |
| Testing | Correctness tests and release checks |
| Benchmark methods | Rules used for performance claims |
| Benchmark results | Full result tables and evidence |
| Contributor guide | Repository workflow |
hipEngine is an independent project that builds on ideas and software from ROCm, HIP, Nano-vLLM, ParoQuant, FastDMS, llama.cpp, and other open-source projects. See the source and model guides for detailed attribution.
hipEngine source code is licensed under AGPL-3.0-or-later. Model weights, checkpoints, and external datasets remain under their own licenses.
6,233 commits
1 commits
Python
87.6%
HIP
9.9%
C++
1.6%