Instructions to use zenlm/zen-5-coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zenlm/zen-5-coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zenlm/zen-5-coder")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zenlm/zen-5-coder", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zenlm/zen-5-coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zenlm/zen-5-coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zenlm/zen-5-coder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/zenlm/zen-5-coder
- SGLang
How to use zenlm/zen-5-coder 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 "zenlm/zen-5-coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zenlm/zen-5-coder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "zenlm/zen-5-coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zenlm/zen-5-coder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use zenlm/zen-5-coder with Docker Model Runner:
docker model run hf.co/zenlm/zen-5-coder
feat: Zen MoDE architecture (Zen 5 only)
Browse files
README.md
CHANGED
|
@@ -14,11 +14,11 @@ library_name: transformers
|
|
| 14 |
|
| 15 |
# Zen 5 Coder
|
| 16 |
|
| 17 |
-
> **Parameters**: TBA | **Context**: 256K | **Status**: In training — expected 2025-07-01
|
| 18 |
|
| 19 |
Zen 5 Coder — next-gen code specialist. In training. Expected Q3 2025.
|
| 20 |
|
| 21 |
-
Zen
|
| 22 |
|
| 23 |
[Subscribe for updates → zenlm.org](https://zenlm.org)
|
| 24 |
|
|
|
|
| 14 |
|
| 15 |
# Zen 5 Coder
|
| 16 |
|
| 17 |
+
> **Parameters**: TBA | **Architecture**: Zen MoDE | **Context**: 256K | **Status**: In training — expected 2025-07-01
|
| 18 |
|
| 19 |
Zen 5 Coder — next-gen code specialist. In training. Expected Q3 2025.
|
| 20 |
|
| 21 |
+
**Zen MoDE** (Mixture of Distilled Experts) — next-generation sparse routing architecture with 1M+ context, enhanced chain-of-thought, and multi-modal reasoning. First introduced with Zen 5.
|
| 22 |
|
| 23 |
[Subscribe for updates → zenlm.org](https://zenlm.org)
|
| 24 |
|