How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM

tokenizer = AutoTokenizer.from_pretrained("Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2")
model = AutoModelForMultimodalLM.from_pretrained("Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Configuration Parsing Warning:In config.json: "num_experts" must be a number

Gemma4-E2B-Claude-Sonnet-Distilled-NPU2

FastFlowLM Q4NX conversion of Lufel6848/Gemma4-E2B-Claude-Sonnet-Distilled for AMD XDNA NPU inference.

This repository contains a quantized Q4NX port of the model, compiled for the FastFlowLM (FLM) runtime. It is not a GGUF file.

Item Value
Source model Lufel6848/Gemma4-E2B-Claude-Sonnet-Distilled
Source GGUF gemma-4-e2b-it.Q8_0.gguf
Weights model.q4nx (4.35 GB)
Modality language / vision / audio
FLM version 1.0.1
Converted 2026-08-23

Install and run

This repository works with flm-add, a small installer that copies the model into the FastFlowLM user directory and registers the tag. It never modifies the system FastFlowLM install.

pip install flm-add or uv tool install flm-add

uv tool install flm-add
flm-add Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2 --family qwen3.5 --xclbin-from Gemma4-E2B-Claude-Sonnet-Distilled-NPU2
FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json" FLM_XCLBIN_PATH="$HOME/.config/flm" flm run Gemma4-E2B-Claude-Sonnet-Distilled-NPU2

Files

File Description
model.q4nx Quantized weights (Q8_0 / Q4_1 / BF16)
audio_weight.q4nx Audio encoder weights
config.json FLM runtime configuration
tokenizer.json Tokenizer vocabulary
tokenizer_config.json Tokenizer configuration
chat_template.jinja Chat template
vision_weight.q4nx Vision model

Source model card

See the original model card: Lufel6848/Gemma4-E2B-Claude-Sonnet-Distilled

Downloads last month
40
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2

Quantized
(1)
this model

Collection including Atomic-Germ/Gemma4-E2B-Claude-Sonnet-Distilled-NPU2