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

pipe = pipeline("text-generation", model="LLMWildling/gemma-4-160b-a18b-coder")
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)
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("LLMWildling/gemma-4-160b-a18b-coder")
model = AutoModelForMultimodalLM.from_pretrained("LLMWildling/gemma-4-160b-a18b-coder")
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 = processor.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=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

gemma-4-160b-a18b-coder

gemma-4-160b-a18b-coder is a Gemma 4 based coder model for software engineering, code editing, Q/A, tool use, and long-context assistant workflows.

model

  • Family: gemma-4
  • Variant: coder
  • Model type: sparse Mixture-of-Experts language model
  • Total logical text parameters: approximately 160.2B
  • Active logical text parameters per token: approximately 18.0B
  • Active experts per token: 83
  • Weight format: MXFP4 expert weights with BF16 shared weights
  • Context: up to 200000 tokens in the listed vLLM configuration

serving

CUDA_VISIBLE_DEVICES=0,1 vllm serve /path/to/gemma-4-160b-a18b-coder \
  --served-model-name vllm/doobee \
  --host 0.0.0.0 \
  --port 23333 \
  --dtype bfloat16 \
  --tensor-parallel-size 2 \
  --enable-expert-parallel \
  --max-model-len 200000 \
  --gpu-memory-utilization 0.96 \
  --trust-remote-code \
  --reasoning-parser gemma4 \
  --tool-call-parser gemma4 \
  --enable-auto-tool-choice \
  --default-chat-template-kwargs '{"enable_thinking": true}' \
  --generation-config vllm \
  --language-model-only \
  --skip-mm-profiling \
  --max-num-seqs 1 \
  --max-num-batched-tokens 8192

For clients that should not receive reasoning text, send "include_reasoning": false in chat-completion requests.

files

  • config.json
  • generation_config.json
  • tokenizer.json
  • tokenizer_config.json
  • chat_template.jinja
  • model.safetensors.index.json
  • MXFP4/BF16 safetensor shards

license

This model is released under the Gemma license.

Downloads last month
53
Safetensors
Model size
94B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support