zeekay commited on
Commit
b71e3e0
·
verified ·
1 Parent(s): a01e5c4

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

Browse files
Files changed (1) hide show
  1. README.md +42 -28
README.md CHANGED
@@ -1,50 +1,64 @@
1
  ---
2
- library_name: transformers
3
- pipeline_tag: text-generation
4
  tags:
5
  - text-generation
6
- - code
7
- - reasoning
8
  - zen
9
- - zen4
10
  - hanzo
11
- license: apache-2.0
 
 
 
 
12
  ---
13
 
14
  # Zen4 Coder Pro
15
 
16
- **Zen LM by Hanzo AI** — Premier code generation model with deep reasoning. Optimized for complex software engineering and architecture.
17
 
18
- ## Specs
19
 
20
- | Property | Value |
21
- |----------|-------|
22
- | Parameters | 685B MoE |
23
- | Context Length | 163K tokens |
24
- | Architecture | Zen MoDE (Mixture of Distilled Experts) |
25
- | Generation | Zen4 |
26
 
27
- ## API Access
28
 
29
- This model is served exclusively via the Hanzo AI API. Weight downloads are not available for this model tier.
30
 
31
  ```python
32
- from openai import OpenAI
33
-
34
- client = OpenAI(base_url="https://api.hanzo.ai/v1", api_key="YOUR_KEY")
35
- response = client.chat.completions.create(
36
- model="zen4-coder-pro",
37
- messages=[{"role": "user", "content": "Hello"}],
38
- )
39
- print(response.choices[0].message.content)
 
 
 
 
 
 
 
 
 
 
 
 
40
  ```
41
 
42
  Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
43
 
44
- ## License
45
 
46
- Apache 2.0
 
 
 
 
 
47
 
48
- ---
49
 
50
- *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
  - text-generation
 
 
6
  - zen
7
+ - zenlm
8
  - hanzo
9
+ - zen4
10
+ - code
11
+ - coding
12
+ pipeline_tag: text-generation
13
+ library_name: transformers
14
  ---
15
 
16
  # Zen4 Coder Pro
17
 
18
+ Professional-grade Zen4 code model for complex software engineering tasks.
19
 
20
+ ## Overview
21
 
22
+ Built on **Zen MoDE (Mixture of Distilled Experts)** architecture with 32B parameters and 128K 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 transformers import AutoModelForCausalLM, AutoTokenizer
30
+
31
+ model_id = "zenlm/zen4-coder-pro"
32
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
33
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
34
+
35
+ messages = [{"role": "user", "content": "Hello!"}]
36
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
37
+ inputs = tokenizer([text], return_tensors="pt").to(model.device)
38
+ outputs = model.generate(**inputs, max_new_tokens=512)
39
+ print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
40
+ ```
41
+
42
+ ## API Access
43
+
44
+ ```bash
45
+ curl https://api.hanzo.ai/v1/chat/completions \
46
+ -H "Authorization: Bearer $HANZO_API_KEY" \
47
+ -H "Content-Type: application/json" \
48
+ -d '{"model": "zen4-coder-pro", "messages": [{"role": "user", "content": "Hello"}]}'
49
  ```
50
 
51
  Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
52
 
53
+ ## Model Details
54
 
55
+ | Attribute | Value |
56
+ |-----------|-------|
57
+ | Parameters | 32B |
58
+ | Architecture | Zen MoDE |
59
+ | Context | 128K tokens |
60
+ | License | Apache 2.0 |
61
 
62
+ ## License
63
 
64
+ Apache 2.0