Zen Specialty
Collection
Vertical-specific finetunes — finance, medical, legal, sql, translate, scribe, designer, etc. • 18 items • Updated
How to use zenlm/zen-translator with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("translation", model="zenlm/zen-translator") # Load model directly
from transformers import ZenTranslatorForSpeechTranslation
model = ZenTranslatorForSpeechTranslation.from_pretrained("zenlm/zen-translator", dtype="auto")# Load model directly
from transformers import ZenTranslatorForSpeechTranslation
model = ZenTranslatorForSpeechTranslation.from_pretrained("zenlm/zen-translator", dtype="auto")Multilingual translation model supporting 100+ language pairs.
Developed by Hanzo AI and the Zoo Labs Foundation.
curl https://api.hanzo.ai/v1/chat/completions \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "zen-translator", "messages": [{"role": "user", "content": "Hello"}]}'
Get your API key at console.hanzo.ai — $5 free credit on signup.
| Attribute | Value |
|---|---|
| Parameters | 7B |
| Architecture | Zen MoDE |
| License | Apache 2.0 |
Apache 2.0
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="zenlm/zen-translator")