zeekay commited on
Commit
9870ca4
·
verified ·
1 Parent(s): 27db3bd

Update model card with Zen branding

Browse files
Files changed (1) hide show
  1. README.md +38 -38
README.md CHANGED
@@ -1,55 +1,55 @@
1
  ---
2
- license: mit
3
- language:
4
- - en
5
- - zh
6
- tags:
7
- - zen4
8
- - zenlm
9
- - hanzo
10
- - abliterated
11
- - uncensored
12
- base_model: huihui-ai/Huihui-GLM-4.7-Flash-abliterated
13
  pipeline_tag: text-generation
 
 
 
 
 
 
 
14
  ---
15
 
16
  # Zen4 Coder Flash
17
 
18
- **31B MoE total, 3B active | 131K Context**
19
-
20
- Code-focused MoE model based on GLM-4.7-Flash with abliterated weights. 131K context for entire codebases. Tool calling and reasoning mode support.
21
-
22
- Part of the [Zen4 family](https://zenlm.org) by [Zen LM](https://huggingface.co/zenlm) and [Hanzo AI](https://hanzo.ai).
23
 
24
- ## Model Details
25
 
26
  | Property | Value |
27
  |----------|-------|
28
- | **Parameters** | 31B MoE total, 3B active |
29
- | **Context** | 131K tokens |
30
- | **Base** | GLM-4.7-Flash (abliterated) |
31
- | **License** | MIT |
32
- | **Family** | Zen4 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- ## Usage
35
 
36
- ```python
37
- from transformers import AutoModelForCausalLM, AutoTokenizer
38
 
39
- model = AutoModelForCausalLM.from_pretrained("zenlm/zen4-coder-flash", torch_dtype="auto", device_map="auto")
40
- tokenizer = AutoTokenizer.from_pretrained("zenlm/zen4-coder-flash")
 
41
 
42
- messages = [{"role": "user", "content": "Hello"}]
43
- text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
44
- inputs = tokenizer([text], return_tensors="pt").to(model.device)
45
- outputs = model.generate(**inputs, max_new_tokens=512)
46
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
47
- ```
48
 
49
- ## About Zen4
50
 
51
- The Zen4 family provides abliterated (uncensored) variants of the best open-source models, ranging from 4B to 1T+ parameters.
52
 
53
- - **Website**: [zenlm.org](https://zenlm.org)
54
- - **Organization**: [Zen LM](https://huggingface.co/zenlm)
55
- - **Built by**: [Hanzo AI](https://hanzo.ai) (Techstars '17)
 
1
  ---
2
+ library_name: transformers
 
 
 
 
 
 
 
 
 
 
3
  pipeline_tag: text-generation
4
+ tags:
5
+ - text-generation
6
+ - code
7
+ - zen
8
+ - zen4
9
+ - hanzo
10
+ license: apache-2.0
11
  ---
12
 
13
  # Zen4 Coder Flash
14
 
15
+ **Zen LM by Hanzo AI** Ultra-fast code generation model. 30B parameter MoE optimized for real-time coding assistance.
 
 
 
 
16
 
17
+ ## Specs
18
 
19
  | Property | Value |
20
  |----------|-------|
21
+ | Parameters | 30B MoE |
22
+ | Context Length | 131K tokens |
23
+ | Architecture | Zen MoDE (Mixture of Distilled Experts) |
24
+ | Generation | Zen4 |
25
+
26
+ ## API Access
27
+
28
+ This model is served via the Hanzo AI API. Weight downloads are not available for this model tier.
29
+
30
+ ```bash
31
+ curl https://api.hanzo.ai/v1/chat/completions \
32
+ -H "Authorization: Bearer $HANZO_API_KEY" \
33
+ -H "Content-Type: application/json" \
34
+ -d '{
35
+ "model": "zen4-coder-flash",
36
+ "messages": [{"role": "user", "content": "Hello"}],
37
+ "max_tokens": 1024
38
+ }'
39
+ ```
40
 
41
+ Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
42
 
43
+ ## Pricing
 
44
 
45
+ | Tier | Input | Output |
46
+ |------|-------|--------|
47
+ | Standard | See [pricing](https://zenlm.org) | See [pricing](https://zenlm.org) |
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.*