Instructions to use LLMWildling/gemma4-52b-a6b-canopy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLMWildling/gemma4-52b-a6b-canopy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLMWildling/gemma4-52b-a6b-canopy") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("LLMWildling/gemma4-52b-a6b-canopy") model = AutoModelForCausalLM.from_pretrained("LLMWildling/gemma4-52b-a6b-canopy") messages = [ {"role": "user", "content": "Who are you?"}, ] 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use LLMWildling/gemma4-52b-a6b-canopy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLMWildling/gemma4-52b-a6b-canopy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLMWildling/gemma4-52b-a6b-canopy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LLMWildling/gemma4-52b-a6b-canopy
- SGLang
How to use LLMWildling/gemma4-52b-a6b-canopy with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "LLMWildling/gemma4-52b-a6b-canopy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLMWildling/gemma4-52b-a6b-canopy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "LLMWildling/gemma4-52b-a6b-canopy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLMWildling/gemma4-52b-a6b-canopy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LLMWildling/gemma4-52b-a6b-canopy with Docker Model Runner:
docker model run hf.co/LLMWildling/gemma4-52b-a6b-canopy
Gemma4-52B-A6B Canopy
gemma4-52b-a6b-canopy is an alternate production-evaluation build in the
Gemma4-52B-A6B line. It uses the same expanded Gemma4 MoE backbone as the
primary release, with an alternate evaluation profile for SWE and agentic
workloads.
This is a full model checkpoint, not a LoRA adapter.
Model Details
- Base model:
unsloth/Gemma-4-26B-A4B-it - Architecture: Gemma4 MoE
- Total logical parameters: approximately
50.6B - Active parameters: approximately
6B - Expert layout:
128base experts +128added specialist experts - Native context length:
256ktokens - Validated local serve window:
131ktokens - Primary focus: SWE, code/repository analysis, agentic workflows, and reasoning
- Recommended temperature:
0.5to0.7
Serving
Use the included Gemma4 chat template. Thinking mode is intended to be enabled.
CUDA_VISIBLE_DEVICES=0 \
vllm serve . \
--served-model-name gemma4-52b-a6b-canopy \
--host 0.0.0.0 \
--port 23333 \
--dtype bfloat16 \
--tensor-parallel-size 1 \
--max-model-len 131072 \
--gpu-memory-utilization 0.88 \
--trust-remote-code \
--reasoning-parser gemma4 \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--chat-template ./chat_template.jinja \
--default-chat-template-kwargs '{"enable_thinking": true}'
OpenAI-compatible endpoint:
http://localhost:23333/v1
Notes
Canopy is best treated as an evaluation sibling of the primary
gemma4-52b-a6b release rather than a replacement.
Feedback is welcome. If you notice specific strengths, failures, or behavioral differences versus the primary build, please share them through the model discussion page or the usual Hugging Face repository feedback channels.
- Downloads last month
- 49