Update model card: add zen/zenlm tags, fix branding
Browse files
README.md
CHANGED
|
@@ -1,55 +1,67 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
-
- retrieval
|
| 7 |
-
- sentence-similarity
|
| 8 |
- zen
|
| 9 |
-
-
|
| 10 |
- hanzo
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# Zen3 Embedding Medium
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|----------|-------|
|
| 22 |
-
| Parameters | 335M |
|
| 23 |
-
| Context Length | 512 tokens |
|
| 24 |
-
| Dimensions | 1024 |
|
| 25 |
-
| Architecture | Zen MoDE (Mixture of Distilled Experts) |
|
| 26 |
-
| Generation | Zen3 |
|
| 27 |
|
| 28 |
-
##
|
| 29 |
|
| 30 |
```python
|
| 31 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
## API Access
|
| 38 |
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
-d '{"model": "zen3-embedding-medium", "input": "Your text here"}'
|
| 45 |
```
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
## License
|
| 50 |
|
| 51 |
Apache 2.0
|
| 52 |
-
|
| 53 |
-
---
|
| 54 |
-
|
| 55 |
-
*Zen LM is developed by [Hanzo AI](https://hanzo.ai) — Frontier AI infrastructure.*
|
|
|
|
| 1 |
---
|
| 2 |
+
language: en
|
| 3 |
+
license: apache-2.0
|
| 4 |
tags:
|
| 5 |
+
- feature-extraction
|
|
|
|
|
|
|
| 6 |
- zen
|
| 7 |
+
- zenlm
|
| 8 |
- hanzo
|
| 9 |
+
- zen3
|
| 10 |
+
- embedding
|
| 11 |
+
- retrieval
|
| 12 |
+
pipeline_tag: feature-extraction
|
| 13 |
+
library_name: transformers
|
| 14 |
---
|
| 15 |
|
| 16 |
# Zen3 Embedding Medium
|
| 17 |
|
| 18 |
+
Medium-sized Zen3 embedding model balancing speed and retrieval accuracy.
|
| 19 |
+
|
| 20 |
+
## Overview
|
| 21 |
|
| 22 |
+
Built on **Zen MoDE (Mixture of Distilled Experts)** architecture with medium parameters and 8K context window.
|
| 23 |
|
| 24 |
+
Developed by [Hanzo AI](https://hanzo.ai) and the [Zoo Labs Foundation](https://zoo.ngo).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
## Quick Start
|
| 27 |
|
| 28 |
```python
|
| 29 |
+
from sentence_transformers import SentenceTransformer
|
| 30 |
+
|
| 31 |
+
model = SentenceTransformer("zenlm/zen3-embedding-medium")
|
| 32 |
+
|
| 33 |
+
sentences = [
|
| 34 |
+
"The weather is lovely today.",
|
| 35 |
+
"It's so sunny outside!",
|
| 36 |
+
"He drove to the stadium.",
|
| 37 |
+
]
|
| 38 |
+
embeddings = model.encode(sentences)
|
| 39 |
+
print(embeddings.shape)
|
| 40 |
|
| 41 |
+
# Compute cosine similarities
|
| 42 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 43 |
+
print(similarities)
|
| 44 |
```
|
| 45 |
|
| 46 |
## API Access
|
| 47 |
|
| 48 |
+
```python
|
| 49 |
+
from openai import OpenAI
|
| 50 |
|
| 51 |
+
client = OpenAI(base_url="https://api.hanzo.ai/v1", api_key="your-api-key")
|
| 52 |
+
response = client.embeddings.create(model="zen3-embedding-medium", input="Your text here")
|
| 53 |
+
print(response.data[0].embedding)
|
|
|
|
| 54 |
```
|
| 55 |
|
| 56 |
+
## Model Details
|
| 57 |
+
|
| 58 |
+
| Attribute | Value |
|
| 59 |
+
|-----------|-------|
|
| 60 |
+
| Parameters | medium |
|
| 61 |
+
| Architecture | Zen MoDE |
|
| 62 |
+
| Context | 8K tokens |
|
| 63 |
+
| License | Apache 2.0 |
|
| 64 |
|
| 65 |
## License
|
| 66 |
|
| 67 |
Apache 2.0
|
|
|
|
|
|
|
|
|
|
|
|