Feature Extraction
Transformers
Safetensors
English
qwen3
text-generation
zen
zenlm
hanzo
zen3
embedding
retrieval
openai-compatible
text-embeddings-inference
Instructions to use zenlm/zen3-embedding-openai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zenlm/zen3-embedding-openai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="zenlm/zen3-embedding-openai")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zenlm/zen3-embedding-openai") model = AutoModelForCausalLM.from_pretrained("zenlm/zen3-embedding-openai") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("zenlm/zen3-embedding-openai")
model = AutoModelForCausalLM.from_pretrained("zenlm/zen3-embedding-openai")Quick Links
Zen3 Embedding Openai
OpenAI-API-compatible Zen3 embedding model for drop-in replacement of cloud embeddings.
Overview
Built on Zen MoDE (Mixture of Distilled Experts) architecture with medium parameters and 8K context window.
Developed by Hanzo AI and the Zoo Labs Foundation.
Quick Start
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("zenlm/zen3-embedding-openai")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium.",
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# Compute cosine similarities
similarities = model.similarity(embeddings, embeddings)
print(similarities)
API Access
from openai import OpenAI
client = OpenAI(base_url="https://api.hanzo.ai/v1", api_key="your-api-key")
response = client.embeddings.create(model="zen3-embedding-openai", input="Your text here")
print(response.data[0].embedding)
Model Details
| Attribute | Value |
|---|---|
| Parameters | medium |
| Architecture | Zen MoDE |
| Context | 8K tokens |
| License | Apache 2.0 |
License
Apache 2.0
- Downloads last month
- 12
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="zenlm/zen3-embedding-openai")