Views
No views yet
| Property | Value |
|---|---|
| Parameters | 4B |
| Architecture | Transformer (decoder-only) |
| Context Window | 32,768 tokens |
| Output Format | Text |
| License | Apache 2.0 |
| HuggingFace | zenlm/zen-scribe |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "zenlm/zen-scribe",
6 torch_dtype=torch.bfloat16,
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("zenlm/zen-scribe")
10
11prompt = """Write a technical blog post introduction about vector databases:
12
13"""
14
15inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
16outputs = model.generate(
17 **inputs,
18 max_new_tokens=512,
19 temperature=0.7,
20 top_p=0.9,
21 repetition_penalty=1.1,
22)
23print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))1# Content pipeline: Brief → Draft → Edit → Publish
2import hanzo
3
4client = hanzo.Client()
5
6draft = client.completions.create(
7 model="zen-scribe",
8 messages=[
9 {"role": "system", "content": "You are a technical writer. Write clearly and concisely."},
10 {"role": "user", "content": "Write a 500-word introduction to Kubernetes networking."}
11 ],
12 max_tokens=600,
13)
14print(draft.choices[0].message.content)1pip install mlx-lm
2mlx_lm.generate --model zenlm/zen-scribe --prompt "Write an introduction to:" --max-tokens 500llama-cli -m zen-scribe-q4_k_m.gguf -p "Write a technical blog post about:" -n 5121curl https://api.hanzo.ai/v1/chat/completions \
2 -H "Authorization: Bearer $HANZO_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "zen-scribe",
6 "messages": [{"role": "user", "content": "Write a product announcement for a new AI API:"}],
7 "max_tokens": 400
8 }'1@misc{zenlm2025zenscribe,
2 title={Zen Scribe: Professional Content Writing Model},
3 author={Hanzo AI and Zoo Labs Foundation},
4 year={2025},
5 publisher={HuggingFace},
6 howpublished={\url{https://huggingface.co/zenlm/zen-scribe}}
7}