DynaGuard-4B - Q4NX for FastFlowLM (AMD Ryzen AI XDNA2)
A safety-focused Qwen3-4B fine-tune, converted to Q4NX for FastFlowLM.
What is Q4NX?
Q4NX is FastFlowLM's native packed-quantization format - a rearranged Q4_1
layout tuned for the NPU matrix engine's tile sizes and memory access
patterns. It is
not
a GGUF file and it does not run on llama.cpp or
Ollama; it is meant exclusively for the
FastFlowLM
engine on AMD Ryzen AI NPUs.
Requirements
FastFlowLM >= 0.9.45 (
flm
CLI)
AMD Ryzen AI processor with
XDNA2 (NPU2)
- Strix Point / Ryzen AI 300
series or later
Linux with the XRT NPU stack installed
~16 GB of unified system memory (Q4NX weights + activations + KV cache)
Files
File
Purpose
model.q4nx
Quantized Q4NX weights
config.json
FastFlowLM model configuration
tokenizer.json
Tokenizer
tokenizer_config.json
Special tokens and chat template
chat_template.jinja
Chat template (optional)
flm-add.py
Installer script - registers this model with FastFlowLM
Install and run
This repository ships
flm-add.py
, a small installer that copies the model
into the FastFlowLM user directory and registers the tag
qwen3.5-code:9b
. It never
modifies the system FastFlowLM install.
# one-time environment (add these to ~/.bashrc)export FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json"export FLM_XCLBIN_PATH="$HOME/.config/flm"
git lfs install
git clone https://huggingface.co/Atomic-Germ/DynaGuard-4B-NPU2
cd Qwen3.5-9B-Claude-Code-NPU2
python3 ./flm-add.py . --tag dynaguard:4b
flm run qwen3.5-code:9b
Run
python3 ./flm-add.py --help
for all options. Without a clone, the same
command works against the repo id directly:
FastFlowLM's NPU kernels (xclbins) are closed source and are not shipped in
this repository.
flm-add.py
links the kernels of the official
qwen3.5:9b
model (
Qwen3.5-9B-NPU2
), because this model shares the same engine family
(
qwen3.5
) and architecture.
DynaGuard-4B-NPU2 huggingface.co is an AI model on huggingface.co that provides DynaGuard-4B-NPU2's model effect (), which can be used instantly with this Atomic-Germ DynaGuard-4B-NPU2 model. huggingface.co supports a free trial of the DynaGuard-4B-NPU2 model, and also provides paid use of the DynaGuard-4B-NPU2. Support call DynaGuard-4B-NPU2 model through api, including Node.js, Python, http.
DynaGuard-4B-NPU2 huggingface.co is an online trial and call api platform, which integrates DynaGuard-4B-NPU2's modeling effects, including api services, and provides a free online trial of DynaGuard-4B-NPU2, you can try DynaGuard-4B-NPU2 online for free by clicking the link below.
Atomic-Germ DynaGuard-4B-NPU2 online free url in huggingface.co:
DynaGuard-4B-NPU2 is an open source model from GitHub that offers a free installation service, and any user can find DynaGuard-4B-NPU2 on GitHub to install. At the same time, huggingface.co provides the effect of DynaGuard-4B-NPU2 install, users can directly use DynaGuard-4B-NPU2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.