linoyts HF Staff commited on
Commit
5d973bd
·
verified ·
1 Parent(s): 055c652

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +6 -2
  2. config.json +27 -12
  3. diffusion_pytorch_model.safetensors +2 -2
README.md CHANGED
@@ -58,6 +58,10 @@ image.save("output.png")
58
  ## Conversion Details
59
 
60
  The model was converted from ComfyUI format to diffusers format with the following key transformations:
61
- - Split combined `attention.qkv` weights into separate `to_q`, `to_k`, `to_v`
 
 
 
62
  - Renamed `attention.out` to `attention.to_out.0`
63
- - Renamed normalization layers to match diffusers conventions
 
 
58
  ## Conversion Details
59
 
60
  The model was converted from ComfyUI format to diffusers format with the following key transformations:
61
+ - Removed `model.diffusion_model.` prefix from all keys
62
+ - Renamed `x_embedder` to `all_x_embedder.2-1`
63
+ - Renamed `final_layer` to `all_final_layer.2-1`
64
+ - Split `attention.qkv` into `attention.to_q`, `attention.to_k`, `attention.to_v`
65
  - Renamed `attention.out` to `attention.to_out.0`
66
+ - Renamed `attention.q_norm` to `attention.norm_q`
67
+ - Renamed `attention.k_norm` to `attention.norm_k`
config.json CHANGED
@@ -1,16 +1,31 @@
1
  {
2
  "_class_name": "ZImageTransformer2DModel",
3
- "_diffusers_version": "0.32.0",
4
- "attention_head_dim": 128,
5
- "cap_embed_dim": 4096,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  "in_channels": 16,
7
- "joint_attention_dim": 4096,
8
- "mlp_ratio": 4.0,
9
- "num_attention_heads": 32,
10
- "num_layers": 30,
11
- "out_channels": 16,
12
- "patch_size": 2,
13
- "pooled_projection_dim": 4096,
14
- "qk_norm": "rms_norm",
15
- "text_embed_dim": 4096
16
  }
 
1
  {
2
  "_class_name": "ZImageTransformer2DModel",
3
+ "_diffusers_version": "0.36.0.dev0",
4
+ "all_f_patch_size": [
5
+ 1
6
+ ],
7
+ "all_patch_size": [
8
+ 2
9
+ ],
10
+ "axes_dims": [
11
+ 32,
12
+ 48,
13
+ 48
14
+ ],
15
+ "axes_lens": [
16
+ 1536,
17
+ 512,
18
+ 512
19
+ ],
20
+ "cap_feat_dim": 2560,
21
+ "dim": 3840,
22
  "in_channels": 16,
23
+ "n_heads": 30,
24
+ "n_kv_heads": 30,
25
+ "n_layers": 30,
26
+ "n_refiner_layers": 2,
27
+ "norm_eps": 1e-05,
28
+ "qk_norm": true,
29
+ "rope_theta": 256.0,
30
+ "t_scale": 1000.0
 
31
  }
diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:afc6f40ec35da524055e78d09b8516d53222ed499dab0a685f4eb5f9df1f2cbb
3
- size 12309874192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2002fbb39c9790b408efc6fd3f92f5ed25e68b4e94d347231de992f78ee68968
3
+ size 12309881888