zeekay commited on
Commit
f3fdd81
·
verified ·
1 Parent(s): 4564d68

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

Browse files
Files changed (1) hide show
  1. README.md +35 -51
README.md CHANGED
@@ -1,81 +1,65 @@
1
  ---
 
2
  license: apache-2.0
3
- language:
4
- - en
5
- pipeline_tag: text-to-image
6
  tags:
7
- - diffusers
8
- - text-to-image
9
- - image-generation
10
- - zen
11
- - zen3
12
- - zenlm
13
- - hanzo
 
14
  library_name: diffusers
15
  ---
16
 
17
  # Zen3 Image Fast
18
 
19
- **Zen3 Image Fast** is a high-speed text-to-image generation model developed by [Hanzo AI](https://hanzo.ai) as part of the Zen model family. It generates high-quality images from text prompts in just 1-4 inference steps.
20
 
21
  ## Overview
22
 
23
- Zen3 Image Fast is optimized for rapid image generation without sacrificing quality. Using a rectified flow transformer architecture, it produces 1024x1024 images in minimal inference steps, making it ideal for real-time applications and interactive workflows.
24
-
25
- ### Key Features
26
 
27
- - **Ultra-fast generation**: 1-4 step inference for near-instant image creation
28
- - **High resolution**: Native 1024x1024 output
29
- - **Rectified flow**: Advanced flow matching for efficient sampling
30
- - **Production ready**: Optimized for low-latency deployment
31
 
32
- ## Usage
33
 
34
  ```python
35
  from diffusers import AutoPipelineForText2Image
36
  import torch
37
 
38
- pipe = AutoPipelineForText2Image.from_pretrained(
39
- "zenlm/zen3-image-fast",
40
- torch_dtype=torch.bfloat16
41
- )
42
- pipe.to("cuda")
43
-
44
- image = pipe(
45
- "A futuristic cityscape at sunset with neon lights",
46
- num_inference_steps=4,
47
- guidance_scale=0.0,
48
- height=1024,
49
- width=1024,
50
- ).images[0]
51
 
 
52
  image.save("output.png")
53
  ```
54
 
55
- ## Model Details
56
-
57
- | Property | Value |
58
- |----------|-------|
59
- | Architecture | Rectified Flow Transformer |
60
- | Precision | bfloat16 |
61
- | License | Apache 2.0 |
62
- | Inference Steps | 1-4 |
63
-
64
  ## API Access
65
 
66
- ```bash
67
- curl https://api.hanzo.ai/v1/images/generations \
68
- -H "Authorization: Bearer $HANZO_API_KEY" \
69
- -H "Content-Type: application/json" \
70
- -d '{"model": "zen3-image-fast", "prompt": "A futuristic cityscape at sunset"}'
 
 
 
 
 
71
  ```
72
 
73
- Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
 
 
 
 
 
 
 
74
 
75
  ## License
76
 
77
  Apache 2.0
78
-
79
- ---
80
-
81
- *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
+ - zen
6
+ - zenlm
7
+ - hanzo
8
+ - zen3
9
+ - text-to-image
10
+ - diffusion
11
+ - fast
12
+ pipeline_tag: text-to-image
13
  library_name: diffusers
14
  ---
15
 
16
  # Zen3 Image Fast
17
 
18
+ Fast inference variant of Zen3 Image for low-latency image generation.
19
 
20
  ## Overview
21
 
22
+ Built on **Zen MoDE (Mixture of Distilled Experts)** architecture with 12B parameters.
 
 
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 diffusers import AutoPipelineForText2Image
30
  import torch
31
 
32
+ model_id = "zenlm/zen3-image-fast"
33
+ pipe = AutoPipelineForText2Image.from_pretrained(model_id, torch_dtype=torch.bfloat16)
34
+ pipe = pipe.to("cuda")
 
 
 
 
 
 
 
 
 
 
35
 
36
+ image = pipe("A serene mountain landscape at sunset, photorealistic").images[0]
37
  image.save("output.png")
38
  ```
39
 
 
 
 
 
 
 
 
 
 
40
  ## API Access
41
 
42
+ ```python
43
+ from openai import OpenAI
44
+
45
+ client = OpenAI(base_url="https://api.hanzo.ai/v1", api_key="your-api-key")
46
+ response = client.images.generate(
47
+ model="zen3-image-fast",
48
+ prompt="A serene mountain landscape at sunset",
49
+ size="1024px",
50
+ )
51
+ print(response.data[0].url)
52
  ```
53
 
54
+ ## Model Details
55
+
56
+ | Attribute | Value |
57
+ |-----------|-------|
58
+ | Parameters | 12B |
59
+ | Architecture | Zen MoDE |
60
+ | Max Resolution | 1024px |
61
+ | License | Apache 2.0 |
62
 
63
  ## License
64
 
65
  Apache 2.0