zeekay commited on
Commit
22ce91e
·
verified ·
1 Parent(s): 1361a4f

Update model card: Fix library_name to diffusers, add diffusers/zenlm tags, add usage example

Browse files
Files changed (1) hide show
  1. README.md +28 -6
README.md CHANGED
@@ -1,36 +1,58 @@
1
  ---
2
- library_name: transformers
3
  pipeline_tag: text-to-image
4
  tags:
 
5
  - text-to-image
6
- - diffusion
7
  - japanese
8
  - zen
9
  - zen3
 
10
  - hanzo
11
  license: apache-2.0
12
  ---
13
 
14
  # Zen3 Image JP
15
 
16
- **Zen LM by Hanzo AI** — Japanese-optimized image generation with enhanced text rendering.
17
 
18
  ## Specs
19
 
20
  | Property | Value |
21
  |----------|-------|
22
  | Parameters | 12B |
23
- | Context | 1024px |
24
  | Architecture | Zen MoDE (Mixture of Distilled Experts) |
25
  | Generation | Zen3 |
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ## API Access
28
 
29
  ```bash
30
- curl https://api.hanzo.ai/v1/chat/completions \
31
  -H "Authorization: Bearer $HANZO_API_KEY" \
32
  -H "Content-Type: application/json" \
33
- -d '{"model": "zen3-image-jp", "messages": [{"role": "user", "content": "Hello"}]}'
34
  ```
35
 
36
  Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.
 
1
  ---
2
+ library_name: diffusers
3
  pipeline_tag: text-to-image
4
  tags:
5
+ - diffusers
6
  - text-to-image
7
+ - image-generation
8
  - japanese
9
  - zen
10
  - zen3
11
+ - zenlm
12
  - hanzo
13
  license: apache-2.0
14
  ---
15
 
16
  # Zen3 Image JP
17
 
18
+ **Zen LM by Hanzo AI** — Japanese-optimized image generation with enhanced Japanese text rendering and aesthetics.
19
 
20
  ## Specs
21
 
22
  | Property | Value |
23
  |----------|-------|
24
  | Parameters | 12B |
25
+ | Resolution | 1024x1024 |
26
  | Architecture | Zen MoDE (Mixture of Distilled Experts) |
27
  | Generation | Zen3 |
28
 
29
+ ## Usage
30
+
31
+ ```python
32
+ from diffusers import AutoPipelineForText2Image
33
+ import torch
34
+
35
+ pipe = AutoPipelineForText2Image.from_pretrained(
36
+ "zenlm/zen3-image-jp",
37
+ torch_dtype=torch.float16,
38
+ )
39
+ pipe = pipe.to("cuda")
40
+
41
+ image = pipe(
42
+ "A serene Japanese garden with cherry blossoms",
43
+ num_inference_steps=50,
44
+ guidance_scale=5.0,
45
+ ).images[0]
46
+ image.save("output.png")
47
+ ```
48
+
49
  ## API Access
50
 
51
  ```bash
52
+ curl https://api.hanzo.ai/v1/images/generations \
53
  -H "Authorization: Bearer $HANZO_API_KEY" \
54
  -H "Content-Type: application/json" \
55
+ -d '{"model": "zen3-image-jp", "prompt": "A serene Japanese garden with cherry blossoms"}'
56
  ```
57
 
58
  Get your API key at [console.hanzo.ai](https://console.hanzo.ai) — $5 free credit on signup.