zeekay commited on
Commit
6916527
·
verified ·
1 Parent(s): 5515a0c

Update model card: add zen/zenlm tags, fix branding

Browse files
Files changed (1) hide show
  1. README.md +42 -30
README.md CHANGED
@@ -1,55 +1,67 @@
1
  ---
2
- library_name: transformers
3
- pipeline_tag: feature-extraction
4
  tags:
5
- - embedding
6
- - retrieval
7
- - sentence-similarity
8
  - zen
9
- - zen3
10
  - hanzo
11
- license: apache-2.0
 
 
 
 
12
  ---
13
 
14
  # Zen3 Embedding Medium
15
 
16
- **Zen LM by Hanzo AI** — Text embedding model optimized for retrieval and similarity tasks. 335M parameters, 1024-dim embeddings.
 
 
17
 
18
- ## Specs
19
 
20
- | Property | Value |
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
- ## Usage
29
 
30
  ```python
31
- from transformers import AutoModel, AutoTokenizer
 
 
 
 
 
 
 
 
 
 
32
 
33
- model = AutoModel.from_pretrained("zenlm/zen3-embedding-medium")
34
- tokenizer = AutoTokenizer.from_pretrained("zenlm/zen3-embedding-medium")
 
35
  ```
36
 
37
  ## API Access
38
 
39
- Available via the Hanzo AI API:
 
40
 
41
- ```bash
42
- curl https://api.hanzo.ai/v1/embeddings \
43
- -H "Authorization: Bearer $HANZO_API_KEY" \
44
- -d '{"model": "zen3-embedding-medium", "input": "Your text here"}'
45
  ```
46
 
47
- Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
 
 
 
 
 
 
 
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