WaveCut commited on
Commit
116abcf
·
verified ·
1 Parent(s): e01a139

Re-quantize with OrbitQuant 0.16.1: two rotation rounds for the SwiGLU output projections

Browse files
README.md CHANGED
@@ -28,7 +28,7 @@ The transformer and the language model of the Qwen3-VL-4B text encoder both run
28
  The runtime is the original `BriaFibo2Pipeline` of Diffusers (50 steps, guidance 5) and the ComfyUI-OrbitQuant nodes.
29
  The bundle is 8.1 GB. The original is 25.5 GB.
30
 
31
- On one RTX 5090 a 1024×1024 image (50 steps with guidance 5) takes 20.4 s with 11.4 GiB of device memory at the peak; the original in BF16 takes 46.2 s and 27.6 GiB. With `--offload` the peak is 5.9 GiB and it takes 22.7 s. The [Performance](#performance) section has the details.
32
 
33
  ![Generation time, device memory peak and checkpoint size: BF16 original and OrbitQuant W4A8 on one RTX 5090](assets/latency_and_memory.png)
34
 
@@ -80,22 +80,22 @@ image.save("image.png")
80
  `load_pipeline` returns the original `BriaFibo2Pipeline`; call it with the original arguments (`image=` and `mask=` for edits; `NEGATIVE_EDIT` is the negative caption for edits). Options of `run_fibo2.py` (`load_pipeline` takes the same settings as arguments):
81
 
82
  - `--offload`: keep the transformer, the text encoder and the autoencoder in host memory. Each moves to the GPU for its own stage.
83
- - `--attention int8`: INT8 Q·K attention. It takes 18.5 s instead of 20.4 s here and changes the image slightly.
84
  - `--width`, `--height` (multiples of 16), `--steps`, `--cfg`, `--seed`, `--negative-prompt`.
85
 
86
  Sampling defaults follow the original model card: 50 steps, guidance 5 with the card's negative caption for text to image and the empty caption for edits. Without `--width` and `--height`, an edit keeps the aspect ratio of the first image at about one megapixel.
87
 
88
  ### ComfyUI
89
 
90
- [ComfyUI-OrbitQuant](https://github.com/iamwavecut/ComfyUI-OrbitQuant) 0.9.0 lists this release as `WaveCut/Fibo-2.0-dev-OrbitQuant-W4A8`.
91
  Connect **OrbitQuant Model Loader** to **OrbitQuant Generate Image** and save the result with a standard save node. The prompt is the JSON caption. For an edit, connect a **Load Image** node to `reference_images`. The node package includes the example workflow `Fibo 2.0 dev - image.json`.
92
  The generator runs in the Python environment that `python_executable` selects. Install the packages of the Usage section there.
93
 
94
  - `profile`: `default`, `model-offload` or `int8-attention`.
95
- - `keep_loaded` (on by default): the worker keeps the model for the next request. On the RTX 5090 the first 1024×1024 image took 30.3 s with loading, the next image 21.2 s and an edit with the kept model 53.5 s.
96
  - `steps`, `width` and `height` set to 0 use the defaults of the Usage section.
97
 
98
- Through ComfyUI v0.42.1 the device peak with `default` was 12.7 GiB for text to image and 12.8 GiB for the edit, including the 1.0 GiB that the idle ComfyUI server holds. `model-offload` took 39.3 s in a new worker. With `default` and `model-offload`, the images were pixel-identical to the output of `run_fibo2.py` for the same caption, image and seed.
99
 
100
  ## Quality
101
 
@@ -103,11 +103,11 @@ All numbers compare against the original BF16 model with the same caption, seed,
103
 
104
  | Measure | Result |
105
  | --- | --- |
106
- | Mean LPIPS to BF16, 12 text-to-image captions | 0.187 |
107
- | Same with nearest rounding (no calibration) | 0.256 |
108
  | BF16 weights through the fused kernels, same captions | 0.011 |
109
- | Mean LPIPS to BF16, 8 edits | 0.037 |
110
- | Same with nearest rounding | 0.070 |
111
 
112
  Over 50 steps with guidance 5, the rounding noise of the 4-bit weights and 8-bit activations moves objects and poses, so the text-to-image LPIPS mostly measures composition drift; the 20 images show no visible noise, banding or broken text. The fused kernels alone do not cause it: with the unchanged BF16 weights they stay at the floor in the table. The image to edit anchors the layout, so edits stay much closer to BF16.
113
  Every caption with text (the shop sign, the neon sign, the travel poster, the Cyrillic chalkboard and the whiteboard) rendered the same words as BF16. On the chalkboard BF16 misspells both dishes and W4A8 one of them.
@@ -128,12 +128,12 @@ Text to image, 1024×1024, 50 steps, guidance 5:
128
 
129
  | Configuration | Time | Device peak | Tensor peak | Host RAM peak | Checkpoint |
130
  | --- | ---: | ---: | ---: | ---: | ---: |
131
- | **OrbitQuant W4A8** | **20.4 s** | **11.4 GiB** | **9.2 GiB** | **5.0 GiB** | **8.1 GB** |
132
- | OrbitQuant W4A8, INT8 attention | 18.5 s | 11.4 GiB | 9.2 GiB | 5.0 GiB | 8.1 GB |
133
- | **OrbitQuant W4A8, offload** | **22.7 s** | **5.9 GiB** | **4.8 GiB** | **12.6 GiB** | **8.1 GB** |
134
- | BF16 (original) | 46.2 s | 27.6 GiB | 26.1 GiB | 10.7 GiB | 25.5 GB |
135
 
136
- Edits in the evaluation runs (one process per set, every edit once, 50 steps, guidance 5): the 6 edits that both runs timed took 52.3 s each (median, 49.5–90.6 s) with W4A8 and 110.9 s (106.8–178.7 s) with BF16; device peaks 12.3 and 29.0 GiB.
137
 
138
  The loader enables expandable allocator segments when `PYTORCH_CUDA_ALLOC_CONF` is empty. With `--offload`, each component moves to the GPU for its own stage, so the device peak is that of the largest stage. Other GPUs are untested.
139
 
@@ -145,6 +145,8 @@ The loader enables expandable allocator segments when `PYTORCH_CUDA_ALLOC_CONF`
145
  | Text encoder, Qwen3-VL-4B | OrbitQuant 4-bit weights with GPTQ rounding and 8-bit activations for the 252 projections of the language model. BF16 vision tower (it encodes the images to edit and the drawn caption texts), token embeddings and norms. | 3.43 GB |
146
  | Autoencoder (FLUX.2) | FP32 file of the original, loaded in BF16 as in the original pipeline | 0.34 GB |
147
 
 
 
148
  The loader drops the LM head and the last decoder layer of the text encoder: the pipeline reads hidden states up to layer 34 and never the logits. The cut does not change the result: with BF16 weights, the cut and the full encoder give bit-identical caption embeddings for all 20 evaluation cases. The 0.8 GB token-embedding table stays in host memory, since a caption reads a few hundred of its 152k rows.
149
 
150
  GPTQ calibration used 8 text-to-image captions and 4 edits written for calibration, none of them in the evaluation set: 12 of the 50 sampling steps of each BF16 run, both guidance passes (288 transformer calls) for the transformer; the same captions, three random field subsets of each and the two negative captions (26,586 tokens, with the images to edit) for the text encoder. GPTQ keeps the codebook, rotation, bit width and file format of plain OrbitQuant; `transformer/gptq-info.json` and `text_encoder/gptq-info.json` list the error of each projection group before and after it.
@@ -154,7 +156,7 @@ GPTQ calibration used 8 text-to-image captions and 4 edits written for calibrati
154
 
155
  - `transformer/`: the packed transformer (`model.safetensors`), its codebooks, rotations, OrbitQuant configuration and manifest, and the original `config.json`. `gptq-info.json` lists the error of each projection group before and after GPTQ rounding.
156
  - `text_encoder/`: the quantized Qwen3-VL model with its BF16 vision tower. `gptq-info.json` lists the GPTQ errors. `vae/`, `processor/`, `scheduler/`, `fonts/`, `styles/`: the files of the original model.
157
- - `fibo2_orbitquant.py`: the loader. `run_fibo2.py`: the command-line entry point. The fused transformer blocks come from `orbitquant` 0.15.
158
  - `manifest.json`: the components and the runtime pins. `SHA256SUMS`: the checksums of all files.
159
  - `LICENSE`: CC BY-NC 4.0. `NOTICE.md`: attribution and changes.
160
  - `assets/`: the images of this card.
 
28
  The runtime is the original `BriaFibo2Pipeline` of Diffusers (50 steps, guidance 5) and the ComfyUI-OrbitQuant nodes.
29
  The bundle is 8.1 GB. The original is 25.5 GB.
30
 
31
+ On one RTX 5090 a 1024×1024 image (50 steps with guidance 5) takes 19.3 s with 11.4 GiB of device memory at the peak; the original in BF16 takes 44.8 s and 27.6 GiB. With `--offload` the peak is 5.9 GiB and it takes 20.8 s. The [Performance](#performance) section has the details.
32
 
33
  ![Generation time, device memory peak and checkpoint size: BF16 original and OrbitQuant W4A8 on one RTX 5090](assets/latency_and_memory.png)
34
 
 
80
  `load_pipeline` returns the original `BriaFibo2Pipeline`; call it with the original arguments (`image=` and `mask=` for edits; `NEGATIVE_EDIT` is the negative caption for edits). Options of `run_fibo2.py` (`load_pipeline` takes the same settings as arguments):
81
 
82
  - `--offload`: keep the transformer, the text encoder and the autoencoder in host memory. Each moves to the GPU for its own stage.
83
+ - `--attention int8`: INT8 Q·K attention. It takes 17.3 s instead of 19.3 s here and changes the image slightly.
84
  - `--width`, `--height` (multiples of 16), `--steps`, `--cfg`, `--seed`, `--negative-prompt`.
85
 
86
  Sampling defaults follow the original model card: 50 steps, guidance 5 with the card's negative caption for text to image and the empty caption for edits. Without `--width` and `--height`, an edit keeps the aspect ratio of the first image at about one megapixel.
87
 
88
  ### ComfyUI
89
 
90
+ [ComfyUI-OrbitQuant](https://github.com/iamwavecut/ComfyUI-OrbitQuant) 0.9.1 lists this release as `WaveCut/Fibo-2.0-dev-OrbitQuant-W4A8`.
91
  Connect **OrbitQuant Model Loader** to **OrbitQuant Generate Image** and save the result with a standard save node. The prompt is the JSON caption. For an edit, connect a **Load Image** node to `reference_images`. The node package includes the example workflow `Fibo 2.0 dev - image.json`.
92
  The generator runs in the Python environment that `python_executable` selects. Install the packages of the Usage section there.
93
 
94
  - `profile`: `default`, `model-offload` or `int8-attention`.
95
+ - `keep_loaded` (on by default): the worker keeps the model for the next request. On the RTX 5090 the first 1024×1024 image took 29.2 s with loading, the next image 20.2 s and an edit with the kept model 51.4 s.
96
  - `steps`, `width` and `height` set to 0 use the defaults of the Usage section.
97
 
98
+ Through ComfyUI v0.42.1 the device peak with `default` was 12.4 GiB for text to image and 12.7 GiB for the edit, including the 1.0 GiB that the idle ComfyUI server holds. `model-offload` took 38.3 s in a new worker. With `default` and `model-offload`, the images were pixel-identical to the output of `run_fibo2.py` for the same caption, image and seed.
99
 
100
  ## Quality
101
 
 
103
 
104
  | Measure | Result |
105
  | --- | --- |
106
+ | Mean LPIPS to BF16, 12 text-to-image captions | 0.157 |
107
+ | Same with nearest rounding (no calibration) | 0.264 |
108
  | BF16 weights through the fused kernels, same captions | 0.011 |
109
+ | Mean LPIPS to BF16, 8 edits | 0.033 |
110
+ | Same with nearest rounding | 0.071 |
111
 
112
  Over 50 steps with guidance 5, the rounding noise of the 4-bit weights and 8-bit activations moves objects and poses, so the text-to-image LPIPS mostly measures composition drift; the 20 images show no visible noise, banding or broken text. The fused kernels alone do not cause it: with the unchanged BF16 weights they stay at the floor in the table. The image to edit anchors the layout, so edits stay much closer to BF16.
113
  Every caption with text (the shop sign, the neon sign, the travel poster, the Cyrillic chalkboard and the whiteboard) rendered the same words as BF16. On the chalkboard BF16 misspells both dishes and W4A8 one of them.
 
128
 
129
  | Configuration | Time | Device peak | Tensor peak | Host RAM peak | Checkpoint |
130
  | --- | ---: | ---: | ---: | ---: | ---: |
131
+ | **OrbitQuant W4A8** | **19.3 s** | **11.4 GiB** | **9.2 GiB** | **5.0 GiB** | **8.1 GB** |
132
+ | OrbitQuant W4A8, INT8 attention | 17.3 s | 11.4 GiB | 9.2 GiB | 5.0 GiB | 8.1 GB |
133
+ | **OrbitQuant W4A8, offload** | **20.8 s** | **5.9 GiB** | **4.8 GiB** | **12.2 GiB** | **8.1 GB** |
134
+ | BF16 (original) | 44.8 s | 27.6 GiB | 26.1 GiB | 10.8 GiB | 25.5 GB |
135
 
136
+ Edits in the evaluation runs (one process per set, every edit once, 50 steps, guidance 5): the 7 edits that both runs timed took 49.4 s each (median, 46.9–86.3 s) with W4A8 and 107.8 s (104.5–173.6 s) with BF16; device peaks 12.3 and 27.9 GiB.
137
 
138
  The loader enables expandable allocator segments when `PYTORCH_CUDA_ALLOC_CONF` is empty. With `--offload`, each component moves to the GPU for its own stage, so the device peak is that of the largest stage. Other GPUs are untested.
139
 
 
145
  | Text encoder, Qwen3-VL-4B | OrbitQuant 4-bit weights with GPTQ rounding and 8-bit activations for the 252 projections of the language model. BF16 vision tower (it encodes the images to edit and the drawn caption texts), token embeddings and norms. | 3.43 GB |
146
  | Autoencoder (FLUX.2) | FP32 file of the original, loaded in BF16 as in the original pipeline | 0.34 GB |
147
 
148
+ The 48 SwiGLU output projections of the transformer (9536 inputs) take their weights and activations through two RPBH rotation rounds, as `rotation_rounds="auto"` of OrbitQuant 0.16 sets for inputs whose rotation block is below 512; every other projection uses one round. OrbitQuant 0.16.1 applies the second round inside the 8-bit activation kernel.
149
+
150
  The loader drops the LM head and the last decoder layer of the text encoder: the pipeline reads hidden states up to layer 34 and never the logits. The cut does not change the result: with BF16 weights, the cut and the full encoder give bit-identical caption embeddings for all 20 evaluation cases. The 0.8 GB token-embedding table stays in host memory, since a caption reads a few hundred of its 152k rows.
151
 
152
  GPTQ calibration used 8 text-to-image captions and 4 edits written for calibration, none of them in the evaluation set: 12 of the 50 sampling steps of each BF16 run, both guidance passes (288 transformer calls) for the transformer; the same captions, three random field subsets of each and the two negative captions (26,586 tokens, with the images to edit) for the text encoder. GPTQ keeps the codebook, rotation, bit width and file format of plain OrbitQuant; `transformer/gptq-info.json` and `text_encoder/gptq-info.json` list the error of each projection group before and after it.
 
156
 
157
  - `transformer/`: the packed transformer (`model.safetensors`), its codebooks, rotations, OrbitQuant configuration and manifest, and the original `config.json`. `gptq-info.json` lists the error of each projection group before and after GPTQ rounding.
158
  - `text_encoder/`: the quantized Qwen3-VL model with its BF16 vision tower. `gptq-info.json` lists the GPTQ errors. `vae/`, `processor/`, `scheduler/`, `fonts/`, `styles/`: the files of the original model.
159
+ - `fibo2_orbitquant.py`: the loader. `run_fibo2.py`: the command-line entry point. The fused transformer blocks come from `orbitquant` 0.16.1.
160
  - `manifest.json`: the components and the runtime pins. `SHA256SUMS`: the checksums of all files.
161
  - `LICENSE`: CC BY-NC 4.0. `NOTICE.md`: attribution and changes.
162
  - `assets/`: the images of this card.
SHA256SUMS CHANGED
@@ -1,24 +1,24 @@
1
  41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0 LICENSE
2
  b12acf509d088f8b0d7785550f9774dbb3bdd65bf8269e602ffc892e9cd41962 NOTICE.md
3
- 70d573738db87e284ba07e14b77d0b86d56b8d60ed668f673d38264ae243d0c4 README.md
4
- 916dbfd8c724d2e78c4190d10bed510dc0c41714da8b6c393de3ba20164a0701 assets/edits_original_vs_orbitquant_w4a8.webp
5
- c45c8dac7bdf5969b9eadcaefd730cdc607b0d1e2616e181d163848048ec37f6 assets/edits_original_vs_orbitquant_w4a8_preview.webp
6
  618f8ed896ce6e5bda4bdff44e63fccdfa8a4c478eaaf385b1af08f4a6b469fe assets/evaluation_cases.json
7
- 64ef89645e54c24eeab3c116c368e51dec9398f9e806527e32ea895b9262562d assets/latency_and_memory.png
8
- f3b076e2b260007d817d0f5befc675c2b1c090551bbee0822b66f19571b5ef74 assets/original_vs_orbitquant_w4a8.webp
9
- df778487d6e03a501f7f9e0a366a2710486b464621b4e2d844ee0261408ab6ed assets/original_vs_orbitquant_w4a8_preview.webp
10
  4a5bb402d26857a9ed79bffcae7ce57f3cb0b5e6b74d61b557883888e7cc0e4f fibo2_orbitquant.py
11
  2762f4fc2ebad8323264aea52ffa2260b86c9677493d3ce2dc4f34e5851d2aa2 fonts/Aileron-Regular.otf
12
  437a5ecec2ec177cba9284cbffc56055311347f3e9fe4f2b4b40323d0290a6db fonts/DejaVuSans.ttf
13
  d9f3c3a524f8f3d671de2bfb42a924e9ca8aa4afb66fbee04441ad6e7f623fd2 fonts/LICENSE-Aileron.txt
14
  c67177807098edcacec9f10f724eb9f79d93fab5c9ad7422ca7e351a3376de97 fonts/LICENSE-DejaVu.txt
15
  1787088f27e72b314c9cfc20831fef4cf9a0cbd24630162c1a2a123236112e47 fonts/README.md
16
- d8b0fb3ff4606c0853a85541c7ba1b5de34de70132a2920147036d7fca758658 manifest.json
17
  3636d0f0bd6bef02654cdffdc447b79cb2cef8ab02cc75267345946291a489e4 processor/chat_template.jinja
18
  11924a8c5152ade8b15d25d3e4464fcc961f86cf856d168c4fe1535ea0a29702 processor/processor_config.json
19
  be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 processor/tokenizer.json
20
  7ce86d685d3fb775073b9b1c0f576dd89b7943194c771dd2573cc10e5cae4a48 processor/tokenizer_config.json
21
- 6262e6506846ba4fab4457debc85289f1f23690fca407d93f4f3a32747d2f283 requirements.txt
22
  ba78cdf53a8d3866e189ecb2a2cff4e8acd8ad242770ec66c273bf4404b4b701 run_fibo2.py
23
  1d030c3b5f422e08a49aed14a3a1c78e57f3721a7be1fd9ab2404787af22a32c scheduler/scheduler_config.json
24
  4f857fcbb24352f1db2e4069cde5509b09b4d2f2eca882651fbd14b0dedb1082 styles/boring_reality/negative_prompt.json
@@ -36,16 +36,16 @@ a4466d16aef20ff2948d5fd674e056398074a32f1d5ed180ffb8cbea331499d4 styles/kodak_f
36
  4f857fcbb24352f1db2e4069cde5509b09b4d2f2eca882651fbd14b0dedb1082 styles/lens_distortion/negative_prompt.json
37
  8df0cd867e217f78da4d0a865cb4c1ffeaca4ab50ce04fc2e8de22db64529c5b styles/lens_distortion/system_prompt.txt
38
  a4466d16aef20ff2948d5fd674e056398074a32f1d5ed180ffb8cbea331499d4 styles/lens_distortion/user_prompt.txt
39
- 866d8defc94b6ec8233cfd998ebc420905449fc7d1e41985e695d21df28b73f1 text_encoder/config.json
40
  5cd5c00e03e8197b1991aafbb6b4583075c55a46788b7d3262aec98d6a49ba64 text_encoder/generation_config.json
41
- 3b91f0b3a426bb5cd062524a14d850935a7da082b91790b4094dc1e38ad91dab text_encoder/gptq-info.json
42
  c112d0262eb40cc3a19d3447bc0891fdfc23dc6fca4d8c5a39c34e72387d81bd text_encoder/model.safetensors
43
  2fd8dd1787a014c46a5cb23f119c33c219a1111de12263e75279d158c9194c87 transformer/config.json
44
- 12f1b1af9851320cb22aeb2c4e69105cdf2d4b468e915271def031223a0ffeca transformer/gptq-info.json
45
- 1a7e6eccf0f85b570301e8c8eab769ba3c20b14d3ea17fdde4a67b52b7227260 transformer/model.safetensors
46
  354b4de89d7dbecbca33cba491af43aa0e94a9f469658c384d3743dbdb99c288 transformer/orbitquant_codebooks.safetensors
47
- b892de24a34a1f0417b2be18d2fbbe00b8b9e563966c2a006df6d40b61b5fb11 transformer/orbitquant_manifest.json
48
- 52a2273038ff076d0b9fef76844210857779682c594905dee0e769d14a1424ed transformer/orbitquant_rotations.safetensors
49
- ed1bde093e2ed3403e7cb5fa154750216bc78519ce869cc7b00a77b8eb126369 transformer/quantization_config.json
50
  2d6a93c6803b535edf928fd19215751c3d55ffd8b981974992a36c4088298b1f vae/config.json
51
  d64f3a68e1cc4f9f4e29b6e0da38a0204fe9a49f2d4053f0ec1fa1ca02f9c4b5 vae/diffusion_pytorch_model.safetensors
 
1
  41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0 LICENSE
2
  b12acf509d088f8b0d7785550f9774dbb3bdd65bf8269e602ffc892e9cd41962 NOTICE.md
3
+ b8a39b1d02a0922d9f4f1832f01d905664b30ddece536e874ab073f34b8abaaf README.md
4
+ 83cdeaa09ebe1e51d60faa2933ee99a204292166454cb05181215c8ed929045d assets/edits_original_vs_orbitquant_w4a8.webp
5
+ 26caad03dc774731c01d65b5dd9b35c0f7fca29ba12011471dcee77f19d5a7e1 assets/edits_original_vs_orbitquant_w4a8_preview.webp
6
  618f8ed896ce6e5bda4bdff44e63fccdfa8a4c478eaaf385b1af08f4a6b469fe assets/evaluation_cases.json
7
+ ce4209c70772b520651c13df0d31a4e22ea782bb0910a6790f48cdfd2fc7d06c assets/latency_and_memory.png
8
+ 200e0655a1e6bca0e6af504c21cae0a14b5e58d1901ee6da1ab1378b084f8d10 assets/original_vs_orbitquant_w4a8.webp
9
+ 9115e1c524dde2c59bdd99f6bdd5365d0ac5378105fa589020cdfb2622d863da assets/original_vs_orbitquant_w4a8_preview.webp
10
  4a5bb402d26857a9ed79bffcae7ce57f3cb0b5e6b74d61b557883888e7cc0e4f fibo2_orbitquant.py
11
  2762f4fc2ebad8323264aea52ffa2260b86c9677493d3ce2dc4f34e5851d2aa2 fonts/Aileron-Regular.otf
12
  437a5ecec2ec177cba9284cbffc56055311347f3e9fe4f2b4b40323d0290a6db fonts/DejaVuSans.ttf
13
  d9f3c3a524f8f3d671de2bfb42a924e9ca8aa4afb66fbee04441ad6e7f623fd2 fonts/LICENSE-Aileron.txt
14
  c67177807098edcacec9f10f724eb9f79d93fab5c9ad7422ca7e351a3376de97 fonts/LICENSE-DejaVu.txt
15
  1787088f27e72b314c9cfc20831fef4cf9a0cbd24630162c1a2a123236112e47 fonts/README.md
16
+ 4ca1c56e55d40e3d5ac0e5f771368174c731a928643c80c2ef49daeb28af1308 manifest.json
17
  3636d0f0bd6bef02654cdffdc447b79cb2cef8ab02cc75267345946291a489e4 processor/chat_template.jinja
18
  11924a8c5152ade8b15d25d3e4464fcc961f86cf856d168c4fe1535ea0a29702 processor/processor_config.json
19
  be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 processor/tokenizer.json
20
  7ce86d685d3fb775073b9b1c0f576dd89b7943194c771dd2573cc10e5cae4a48 processor/tokenizer_config.json
21
+ e93f00c58176b1db1d115363ac187c4219e2defdca2a363a2eb9a62c17b73af2 requirements.txt
22
  ba78cdf53a8d3866e189ecb2a2cff4e8acd8ad242770ec66c273bf4404b4b701 run_fibo2.py
23
  1d030c3b5f422e08a49aed14a3a1c78e57f3721a7be1fd9ab2404787af22a32c scheduler/scheduler_config.json
24
  4f857fcbb24352f1db2e4069cde5509b09b4d2f2eca882651fbd14b0dedb1082 styles/boring_reality/negative_prompt.json
 
36
  4f857fcbb24352f1db2e4069cde5509b09b4d2f2eca882651fbd14b0dedb1082 styles/lens_distortion/negative_prompt.json
37
  8df0cd867e217f78da4d0a865cb4c1ffeaca4ab50ce04fc2e8de22db64529c5b styles/lens_distortion/system_prompt.txt
38
  a4466d16aef20ff2948d5fd674e056398074a32f1d5ed180ffb8cbea331499d4 styles/lens_distortion/user_prompt.txt
39
+ cacd366497e6c82eb027035e181e26565bad1c768c45f8bc0f6fce4d28b959bb text_encoder/config.json
40
  5cd5c00e03e8197b1991aafbb6b4583075c55a46788b7d3262aec98d6a49ba64 text_encoder/generation_config.json
41
+ 13d2a3ecb622fdfb0d8bce5c475447036e9175a7f260d3ab4776e57fc05bb2d2 text_encoder/gptq-info.json
42
  c112d0262eb40cc3a19d3447bc0891fdfc23dc6fca4d8c5a39c34e72387d81bd text_encoder/model.safetensors
43
  2fd8dd1787a014c46a5cb23f119c33c219a1111de12263e75279d158c9194c87 transformer/config.json
44
+ e9ff037912e9ebf32dfeb3db777369960925fa603139f2eb824300e8596e658b transformer/gptq-info.json
45
+ 7300901894e5141c4fd592d806cf81ec65951701f5c1f6402c3ce217067b3b4a transformer/model.safetensors
46
  354b4de89d7dbecbca33cba491af43aa0e94a9f469658c384d3743dbdb99c288 transformer/orbitquant_codebooks.safetensors
47
+ b33e6f4dfc52d2fd4175c438f2a7f2d9145c0aa5647f8fabc7e307cb221514e0 transformer/orbitquant_manifest.json
48
+ 259b889b0b61fc4ea1cb53fcbd012de5fffc793f451a476a0be872874397e0cc transformer/orbitquant_rotations.safetensors
49
+ 530e68a34e9cfe8026698d04fa777867b536fa47c705dc2b0bce6196f1550dad transformer/quantization_config.json
50
  2d6a93c6803b535edf928fd19215751c3d55ffd8b981974992a36c4088298b1f vae/config.json
51
  d64f3a68e1cc4f9f4e29b6e0da38a0204fe9a49f2d4053f0ec1fa1ca02f9c4b5 vae/diffusion_pytorch_model.safetensors
assets/edits_original_vs_orbitquant_w4a8.webp CHANGED

Git LFS Details

  • SHA256: 916dbfd8c724d2e78c4190d10bed510dc0c41714da8b6c393de3ba20164a0701
  • Pointer size: 131 Bytes
  • Size of remote file: 767 kB

Git LFS Details

  • SHA256: 83cdeaa09ebe1e51d60faa2933ee99a204292166454cb05181215c8ed929045d
  • Pointer size: 131 Bytes
  • Size of remote file: 770 kB
assets/edits_original_vs_orbitquant_w4a8_preview.webp CHANGED

Git LFS Details

  • SHA256: c45c8dac7bdf5969b9eadcaefd730cdc607b0d1e2616e181d163848048ec37f6
  • Pointer size: 131 Bytes
  • Size of remote file: 387 kB

Git LFS Details

  • SHA256: 26caad03dc774731c01d65b5dd9b35c0f7fca29ba12011471dcee77f19d5a7e1
  • Pointer size: 131 Bytes
  • Size of remote file: 388 kB
assets/latency_and_memory.png CHANGED

Git LFS Details

  • SHA256: 64ef89645e54c24eeab3c116c368e51dec9398f9e806527e32ea895b9262562d
  • Pointer size: 131 Bytes
  • Size of remote file: 115 kB

Git LFS Details

  • SHA256: ce4209c70772b520651c13df0d31a4e22ea782bb0910a6790f48cdfd2fc7d06c
  • Pointer size: 131 Bytes
  • Size of remote file: 137 kB
assets/original_vs_orbitquant_w4a8.webp CHANGED

Git LFS Details

  • SHA256: f3b076e2b260007d817d0f5befc675c2b1c090551bbee0822b66f19571b5ef74
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB

Git LFS Details

  • SHA256: 200e0655a1e6bca0e6af504c21cae0a14b5e58d1901ee6da1ab1378b084f8d10
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
assets/original_vs_orbitquant_w4a8_preview.webp CHANGED

Git LFS Details

  • SHA256: df778487d6e03a501f7f9e0a366a2710486b464621b4e2d844ee0261408ab6ed
  • Pointer size: 131 Bytes
  • Size of remote file: 303 kB

Git LFS Details

  • SHA256: 9115e1c524dde2c59bdd99f6bdd5365d0ac5378105fa589020cdfb2622d863da
  • Pointer size: 131 Bytes
  • Size of remote file: 304 kB
manifest.json CHANGED
@@ -5,7 +5,7 @@
5
  "source_revision": "fb2b781f9e9e5572a6c348a5af7a4d155a2b1ed0",
6
  "source_license": "cc-by-nc-4.0",
7
  "runtime": {
8
- "orbitquant": "0.15.0",
9
  "torch": "2.12.1",
10
  "transformers": "5.20.1",
11
  "diffusers": "git+https://github.com/huggingface/diffusers@48cdbaef5ee3d718aaee392b44f2099ae511c4a5"
@@ -26,12 +26,12 @@
26
  "final_layer",
27
  "norms"
28
  ],
29
- "bytes": 4329652163
30
  },
31
  "text_encoder": {
32
  "precision": "OrbitQuant 4-bit weights with GPTQ rounding for the language model; 8-bit activations at run time; BF16 vision tower and token embeddings",
33
  "quantized_projections": 252,
34
- "bytes": 3428012665
35
  },
36
  "vae": {
37
  "precision": "original (FP32 file, loaded in BF16 as in the original pipeline)",
 
5
  "source_revision": "fb2b781f9e9e5572a6c348a5af7a4d155a2b1ed0",
6
  "source_license": "cc-by-nc-4.0",
7
  "runtime": {
8
+ "orbitquant": "0.16.1",
9
  "torch": "2.12.1",
10
  "transformers": "5.20.1",
11
  "diffusers": "git+https://github.com/huggingface/diffusers@48cdbaef5ee3d718aaee392b44f2099ae511c4a5"
 
26
  "final_layer",
27
  "norms"
28
  ],
29
+ "bytes": 4329814938
30
  },
31
  "text_encoder": {
32
  "precision": "OrbitQuant 4-bit weights with GPTQ rounding for the language model; 8-bit activations at run time; BF16 vision tower and token embeddings",
33
  "quantized_projections": 252,
34
+ "bytes": 3428012863
35
  },
36
  "vae": {
37
  "precision": "original (FP32 file, loaded in BF16 as in the original pipeline)",
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- orbitquant[hf]==0.15.0
2
  diffusers @ git+https://github.com/huggingface/diffusers@48cdbaef5ee3d718aaee392b44f2099ae511c4a5
3
  transformers==5.20.1
4
  accelerate
 
1
+ orbitquant[hf]==0.16.1
2
  diffusers @ git+https://github.com/huggingface/diffusers@48cdbaef5ee3d718aaee392b44f2099ae511c4a5
3
  transformers==5.20.1
4
  accelerate
text_encoder/config.json CHANGED
@@ -10,13 +10,15 @@
10
  "activation_eps": 1e-10,
11
  "activation_kernel_backend": "auto",
12
  "activation_norm_dtype": "float32",
 
13
  "adaln_group_size": 64,
14
  "adaln_policy": "int4_rtn",
 
15
  "artifact_format_version": 1,
16
  "block_size": "paper",
17
  "codebook": "lloyd_max",
18
  "codebook_dtype": "float32",
19
- "codebook_version": 2,
20
  "fused_layout": null,
21
  "lowbit_boundary_protection": "auto",
22
  "lowbit_interior_protection": "auto",
@@ -29,16 +31,20 @@
29
  "lm_head"
30
  ],
31
  "modules_to_use_adaln": [],
 
 
32
  "packed_matmul_block_k": 128,
33
  "packed_matmul_block_m": 64,
34
  "packed_matmul_block_n": 64,
35
  "packed_matmul_num_warps": 4,
36
  "quant_method": "orbitquant",
37
  "rotation": "rpbh",
 
38
  "rotation_seed": 0,
39
  "row_norm_dtype": "bfloat16",
40
  "runtime_mode": "auto_fused",
41
  "target_policy": "universal",
 
42
  "w4a4_int8_weight_cache": false,
43
  "weight_bits": 4,
44
  "weight_pack_dtype": "uint8",
 
10
  "activation_eps": 1e-10,
11
  "activation_kernel_backend": "auto",
12
  "activation_norm_dtype": "float32",
13
+ "activation_quantizer": "lloyd_max",
14
  "adaln_group_size": 64,
15
  "adaln_policy": "int4_rtn",
16
+ "adaln_scale": "absmax",
17
  "artifact_format_version": 1,
18
  "block_size": "paper",
19
  "codebook": "lloyd_max",
20
  "codebook_dtype": "float32",
21
+ "codebook_version": 3,
22
  "fused_layout": null,
23
  "lowbit_boundary_protection": "auto",
24
  "lowbit_interior_protection": "auto",
 
31
  "lm_head"
32
  ],
33
  "modules_to_use_adaln": [],
34
+ "outlier_channels": {},
35
+ "output_gain_correction": false,
36
  "packed_matmul_block_k": 128,
37
  "packed_matmul_block_m": 64,
38
  "packed_matmul_block_n": 64,
39
  "packed_matmul_num_warps": 4,
40
  "quant_method": "orbitquant",
41
  "rotation": "rpbh",
42
+ "rotation_rounds": "auto",
43
  "rotation_seed": 0,
44
  "row_norm_dtype": "bfloat16",
45
  "runtime_mode": "auto_fused",
46
  "target_policy": "universal",
47
+ "target_policy_version": 2,
48
  "w4a4_int8_weight_cache": false,
49
  "weight_bits": 4,
50
  "weight_pack_dtype": "uint8",
text_encoder/gptq-info.json CHANGED
@@ -709,5 +709,5 @@
709
  "rtn": 0.006686,
710
  "gptq": 0.000563
711
  },
712
- "seconds": 52.6
713
  }
 
709
  "rtn": 0.006686,
710
  "gptq": 0.000563
711
  },
712
+ "seconds": 51.2
713
  }
transformer/gptq-info.json CHANGED
@@ -48,8 +48,8 @@
48
  "damp": 0.009999999776482582
49
  },
50
  "noise_refiner.0.feed_forward.w2": {
51
- "rtn": 0.002435,
52
- "gptq": 0.000403,
53
  "damp": 0.009999999776482582
54
  },
55
  "noise_refiner.1.attention.to_q": {
@@ -68,8 +68,8 @@
68
  "damp": 0.009999999776482582
69
  },
70
  "noise_refiner.1.feed_forward.w2": {
71
- "rtn": 0.003332,
72
- "gptq": 0.000667,
73
  "damp": 0.009999999776482582
74
  },
75
  "perceiver.layers.0.cross_attention.to_q": {
@@ -103,7 +103,7 @@
103
  "damp": 0.009999999776482582
104
  },
105
  "perceiver.layers.0.ffn.w2": {
106
- "rtn": 0.002934,
107
  "gptq": 4e-06,
108
  "damp": 0.009999999776482582
109
  },
@@ -138,8 +138,8 @@
138
  "damp": 0.009999999776482582
139
  },
140
  "perceiver.layers.1.ffn.w2": {
141
- "rtn": 0.005421,
142
- "gptq": 3e-06,
143
  "damp": 0.009999999776482582
144
  },
145
  "layers.0.attention.to_q": {
@@ -158,8 +158,8 @@
158
  "damp": 0.009999999776482582
159
  },
160
  "layers.0.feed_forward.w2": {
161
- "rtn": 0.012292,
162
- "gptq": 3e-05,
163
  "damp": 0.009999999776482582
164
  },
165
  "layers.1.attention.to_q": {
@@ -178,8 +178,8 @@
178
  "damp": 0.009999999776482582
179
  },
180
  "layers.1.feed_forward.w2": {
181
- "rtn": 0.032419,
182
- "gptq": 0.001202,
183
  "damp": 0.009999999776482582
184
  },
185
  "layers.2.attention.to_q": {
@@ -198,8 +198,8 @@
198
  "damp": 0.009999999776482582
199
  },
200
  "layers.2.feed_forward.w2": {
201
- "rtn": 0.017544,
202
- "gptq": 0.000348,
203
  "damp": 0.009999999776482582
204
  },
205
  "layers.3.attention.to_q": {
@@ -218,8 +218,8 @@
218
  "damp": 0.009999999776482582
219
  },
220
  "layers.3.feed_forward.w2": {
221
- "rtn": 0.004782,
222
- "gptq": 4.5e-05,
223
  "damp": 0.009999999776482582
224
  },
225
  "layers.4.attention.to_q": {
@@ -238,8 +238,8 @@
238
  "damp": 0.009999999776482582
239
  },
240
  "layers.4.feed_forward.w2": {
241
- "rtn": 0.009405,
242
- "gptq": 0.000542,
243
  "damp": 0.009999999776482582
244
  },
245
  "layers.5.attention.to_q": {
@@ -258,8 +258,8 @@
258
  "damp": 0.009999999776482582
259
  },
260
  "layers.5.feed_forward.w2": {
261
- "rtn": 0.042309,
262
- "gptq": 0.000162,
263
  "damp": 0.009999999776482582
264
  },
265
  "layers.6.attention.to_q": {
@@ -278,9 +278,9 @@
278
  "damp": 0.009999999776482582
279
  },
280
  "layers.6.feed_forward.w2": {
281
- "rtn": 0.007299,
282
- "gptq": 3.4e-05,
283
- "damp": 0.09999999403953552
284
  },
285
  "layers.6.cross_attention.to_q": {
286
  "rtn": 0.005628,
@@ -313,7 +313,7 @@
313
  "damp": 0.009999999776482582
314
  },
315
  "layers.7.feed_forward.w2": {
316
- "rtn": 0.004546,
317
  "gptq": 1.8e-05,
318
  "damp": 0.009999999776482582
319
  },
@@ -333,9 +333,9 @@
333
  "damp": 0.009999999776482582
334
  },
335
  "layers.8.feed_forward.w2": {
336
- "rtn": 0.069567,
337
- "gptq": 3.9e-05,
338
- "damp": 0.09999999403953552
339
  },
340
  "layers.9.attention.to_q": {
341
  "rtn": 0.005928,
@@ -353,9 +353,9 @@
353
  "damp": 0.009999999776482582
354
  },
355
  "layers.9.feed_forward.w2": {
356
- "rtn": 0.037066,
357
- "gptq": 8.5e-05,
358
- "damp": 0.09999999403953552
359
  },
360
  "layers.10.attention.to_q": {
361
  "rtn": 0.005875,
@@ -373,7 +373,7 @@
373
  "damp": 0.009999999776482582
374
  },
375
  "layers.10.feed_forward.w2": {
376
- "rtn": 0.004258,
377
  "gptq": 1.8e-05,
378
  "damp": 0.009999999776482582
379
  },
@@ -393,7 +393,7 @@
393
  "damp": 0.009999999776482582
394
  },
395
  "layers.11.feed_forward.w2": {
396
- "rtn": 0.005118,
397
  "gptq": 1.7e-05,
398
  "damp": 0.009999999776482582
399
  },
@@ -413,9 +413,9 @@
413
  "damp": 0.009999999776482582
414
  },
415
  "layers.12.feed_forward.w2": {
416
- "rtn": 0.019204,
417
- "gptq": 6.7e-05,
418
- "damp": 0.09999999403953552
419
  },
420
  "layers.13.attention.to_q": {
421
  "rtn": 0.005801,
@@ -433,8 +433,8 @@
433
  "damp": 0.009999999776482582
434
  },
435
  "layers.13.feed_forward.w2": {
436
- "rtn": 0.007997,
437
- "gptq": 5e-05,
438
  "damp": 0.009999999776482582
439
  },
440
  "layers.14.attention.to_q": {
@@ -453,9 +453,9 @@
453
  "damp": 0.009999999776482582
454
  },
455
  "layers.14.feed_forward.w2": {
456
- "rtn": 0.004315,
457
- "gptq": 4.2e-05,
458
- "damp": 0.09999999403953552
459
  },
460
  "layers.14.cross_attention.to_q": {
461
  "rtn": 0.006568,
@@ -488,8 +488,8 @@
488
  "damp": 0.009999999776482582
489
  },
490
  "layers.15.feed_forward.w2": {
491
- "rtn": 0.004722,
492
- "gptq": 2.3e-05,
493
  "damp": 0.009999999776482582
494
  },
495
  "layers.16.attention.to_q": {
@@ -508,9 +508,9 @@
508
  "damp": 0.009999999776482582
509
  },
510
  "layers.16.feed_forward.w2": {
511
- "rtn": 0.005775,
512
- "gptq": 2.4e-05,
513
- "damp": 0.09999999403953552
514
  },
515
  "layers.17.attention.to_q": {
516
  "rtn": 0.005969,
@@ -528,9 +528,9 @@
528
  "damp": 0.009999999776482582
529
  },
530
  "layers.17.feed_forward.w2": {
531
- "rtn": 0.004638,
532
- "gptq": 1.6e-05,
533
- "damp": 0.09999999403953552
534
  },
535
  "layers.18.attention.to_q": {
536
  "rtn": 0.006082,
@@ -548,9 +548,9 @@
548
  "damp": 0.009999999776482582
549
  },
550
  "layers.18.feed_forward.w2": {
551
- "rtn": 0.005865,
552
- "gptq": 2.5e-05,
553
- "damp": 0.09999999403953552
554
  },
555
  "layers.19.attention.to_q": {
556
  "rtn": 0.005574,
@@ -568,8 +568,8 @@
568
  "damp": 0.009999999776482582
569
  },
570
  "layers.19.feed_forward.w2": {
571
- "rtn": 0.011469,
572
- "gptq": 3.7e-05,
573
  "damp": 0.009999999776482582
574
  },
575
  "layers.20.attention.to_q": {
@@ -588,8 +588,8 @@
588
  "damp": 0.009999999776482582
589
  },
590
  "layers.20.feed_forward.w2": {
591
- "rtn": 0.038774,
592
- "gptq": 2.5e-05,
593
  "damp": 0.009999999776482582
594
  },
595
  "layers.21.attention.to_q": {
@@ -608,9 +608,9 @@
608
  "damp": 0.009999999776482582
609
  },
610
  "layers.21.feed_forward.w2": {
611
- "rtn": 0.005654,
612
- "gptq": 4.4e-05,
613
- "damp": 0.09999999403953552
614
  },
615
  "layers.22.attention.to_q": {
616
  "rtn": 0.005953,
@@ -628,8 +628,8 @@
628
  "damp": 0.009999999776482582
629
  },
630
  "layers.22.feed_forward.w2": {
631
- "rtn": 0.005102,
632
- "gptq": 2.8e-05,
633
  "damp": 0.009999999776482582
634
  },
635
  "layers.22.cross_attention.to_q": {
@@ -663,9 +663,9 @@
663
  "damp": 0.009999999776482582
664
  },
665
  "layers.23.feed_forward.w2": {
666
- "rtn": 0.006917,
667
- "gptq": 1.6e-05,
668
- "damp": 0.09999999403953552
669
  },
670
  "layers.24.attention.to_q": {
671
  "rtn": 0.005951,
@@ -683,9 +683,9 @@
683
  "damp": 0.009999999776482582
684
  },
685
  "layers.24.feed_forward.w2": {
686
- "rtn": 0.003965,
687
- "gptq": 2.5e-05,
688
- "damp": 0.09999999403953552
689
  },
690
  "layers.25.attention.to_q": {
691
  "rtn": 0.00572,
@@ -703,9 +703,9 @@
703
  "damp": 0.009999999776482582
704
  },
705
  "layers.25.feed_forward.w2": {
706
- "rtn": 0.004337,
707
- "gptq": 2.4e-05,
708
- "damp": 0.09999999403953552
709
  },
710
  "layers.26.attention.to_q": {
711
  "rtn": 0.006164,
@@ -723,9 +723,9 @@
723
  "damp": 0.009999999776482582
724
  },
725
  "layers.26.feed_forward.w2": {
726
- "rtn": 0.00427,
727
- "gptq": 1.5e-05,
728
- "damp": 0.09999999403953552
729
  },
730
  "layers.27.attention.to_q": {
731
  "rtn": 0.005482,
@@ -743,9 +743,9 @@
743
  "damp": 0.009999999776482582
744
  },
745
  "layers.27.feed_forward.w2": {
746
- "rtn": 0.004998,
747
- "gptq": 2.3e-05,
748
- "damp": 0.09999999403953552
749
  },
750
  "layers.28.attention.to_q": {
751
  "rtn": 0.005646,
@@ -763,9 +763,9 @@
763
  "damp": 0.009999999776482582
764
  },
765
  "layers.28.feed_forward.w2": {
766
- "rtn": 0.005644,
767
- "gptq": 1.3e-05,
768
- "damp": 0.09999999403953552
769
  },
770
  "layers.29.attention.to_q": {
771
  "rtn": 0.00574,
@@ -783,9 +783,9 @@
783
  "damp": 0.009999999776482582
784
  },
785
  "layers.29.feed_forward.w2": {
786
- "rtn": 0.010018,
787
- "gptq": 3.8e-05,
788
- "damp": 0.09999999403953552
789
  },
790
  "layers.30.attention.to_q": {
791
  "rtn": 0.0059,
@@ -803,9 +803,9 @@
803
  "damp": 0.009999999776482582
804
  },
805
  "layers.30.feed_forward.w2": {
806
- "rtn": 0.05444,
807
- "gptq": 2.7e-05,
808
- "damp": 0.09999999403953552
809
  },
810
  "layers.30.cross_attention.to_q": {
811
  "rtn": 0.044882,
@@ -838,9 +838,9 @@
838
  "damp": 0.009999999776482582
839
  },
840
  "layers.31.feed_forward.w2": {
841
- "rtn": 0.003912,
842
- "gptq": 1.1e-05,
843
- "damp": 0.09999999403953552
844
  },
845
  "layers.32.attention.to_q": {
846
  "rtn": 0.005835,
@@ -858,9 +858,9 @@
858
  "damp": 0.009999999776482582
859
  },
860
  "layers.32.feed_forward.w2": {
861
- "rtn": 0.004266,
862
- "gptq": 1.1e-05,
863
- "damp": 0.09999999403953552
864
  },
865
  "layers.33.attention.to_q": {
866
  "rtn": 0.006164,
@@ -878,9 +878,9 @@
878
  "damp": 0.009999999776482582
879
  },
880
  "layers.33.feed_forward.w2": {
881
- "rtn": 0.004936,
882
- "gptq": 1e-05,
883
- "damp": 0.09999999403953552
884
  },
885
  "layers.34.attention.to_q": {
886
  "rtn": 0.00563,
@@ -898,8 +898,8 @@
898
  "damp": 0.009999999776482582
899
  },
900
  "layers.34.feed_forward.w2": {
901
- "rtn": 0.018027,
902
- "gptq": 5.6e-05,
903
  "damp": 0.09999999403953552
904
  },
905
  "layers.35.attention.to_q": {
@@ -918,7 +918,7 @@
918
  "damp": 0.009999999776482582
919
  },
920
  "layers.35.feed_forward.w2": {
921
- "rtn": 0.00439,
922
  "gptq": 4e-06,
923
  "damp": 0.09999999403953552
924
  },
@@ -938,8 +938,8 @@
938
  "damp": 0.009999999776482582
939
  },
940
  "layers.36.feed_forward.w2": {
941
- "rtn": 0.005353,
942
- "gptq": 5e-06,
943
  "damp": 0.09999999403953552
944
  },
945
  "layers.37.attention.to_q": {
@@ -958,9 +958,9 @@
958
  "damp": 0.009999999776482582
959
  },
960
  "layers.37.feed_forward.w2": {
961
- "rtn": 0.005626,
962
- "gptq": 1.2e-05,
963
- "damp": 0.09999999403953552
964
  },
965
  "layers.38.attention.to_q": {
966
  "rtn": 0.006079,
@@ -978,9 +978,9 @@
978
  "damp": 0.009999999776482582
979
  },
980
  "layers.38.feed_forward.w2": {
981
- "rtn": 0.006375,
982
- "gptq": 1.3e-05,
983
- "damp": 0.09999999403953552
984
  },
985
  "layers.38.cross_attention.to_q": {
986
  "rtn": 0.131004,
@@ -1013,8 +1013,8 @@
1013
  "damp": 0.009999999776482582
1014
  },
1015
  "layers.39.feed_forward.w2": {
1016
- "rtn": 0.004407,
1017
- "gptq": 5e-06,
1018
  "damp": 0.09999999403953552
1019
  },
1020
  "layers.40.attention.to_q": {
@@ -1033,9 +1033,9 @@
1033
  "damp": 0.009999999776482582
1034
  },
1035
  "layers.40.feed_forward.w2": {
1036
- "rtn": 0.004344,
1037
- "gptq": 1.8e-05,
1038
- "damp": 0.09999999403953552
1039
  },
1040
  "layers.41.attention.to_q": {
1041
  "rtn": 0.005491,
@@ -1053,9 +1053,9 @@
1053
  "damp": 0.009999999776482582
1054
  },
1055
  "layers.41.feed_forward.w2": {
1056
- "rtn": 0.004442,
1057
- "gptq": 2.4e-05,
1058
- "damp": 0.09999999403953552
1059
  },
1060
  "layers.42.attention.to_q": {
1061
  "rtn": 0.005221,
@@ -1073,9 +1073,9 @@
1073
  "damp": 0.009999999776482582
1074
  },
1075
  "layers.42.feed_forward.w2": {
1076
- "rtn": 0.004034,
1077
- "gptq": 2.4e-05,
1078
- "damp": 0.09999999403953552
1079
  },
1080
  "layers.43.attention.to_q": {
1081
  "rtn": 0.003794,
@@ -1093,14 +1093,14 @@
1093
  "damp": 0.009999999776482582
1094
  },
1095
  "layers.43.feed_forward.w2": {
1096
- "rtn": 0.040363,
1097
- "gptq": 0.001142,
1098
  "damp": 0.009999999776482582
1099
  }
1100
  },
1101
  "mean": {
1102
- "rtn": 0.008424,
1103
- "gptq": 0.000674
1104
  },
1105
- "seconds": 1057.4
1106
  }
 
48
  "damp": 0.009999999776482582
49
  },
50
  "noise_refiner.0.feed_forward.w2": {
51
+ "rtn": 0.002413,
52
+ "gptq": 0.000412,
53
  "damp": 0.009999999776482582
54
  },
55
  "noise_refiner.1.attention.to_q": {
 
68
  "damp": 0.009999999776482582
69
  },
70
  "noise_refiner.1.feed_forward.w2": {
71
+ "rtn": 0.003266,
72
+ "gptq": 0.000682,
73
  "damp": 0.009999999776482582
74
  },
75
  "perceiver.layers.0.cross_attention.to_q": {
 
103
  "damp": 0.009999999776482582
104
  },
105
  "perceiver.layers.0.ffn.w2": {
106
+ "rtn": 0.002622,
107
  "gptq": 4e-06,
108
  "damp": 0.009999999776482582
109
  },
 
138
  "damp": 0.009999999776482582
139
  },
140
  "perceiver.layers.1.ffn.w2": {
141
+ "rtn": 0.002702,
142
+ "gptq": 1e-06,
143
  "damp": 0.009999999776482582
144
  },
145
  "layers.0.attention.to_q": {
 
158
  "damp": 0.009999999776482582
159
  },
160
  "layers.0.feed_forward.w2": {
161
+ "rtn": 0.002233,
162
+ "gptq": 2.9e-05,
163
  "damp": 0.009999999776482582
164
  },
165
  "layers.1.attention.to_q": {
 
178
  "damp": 0.009999999776482582
179
  },
180
  "layers.1.feed_forward.w2": {
181
+ "rtn": 0.003137,
182
+ "gptq": 0.000235,
183
  "damp": 0.009999999776482582
184
  },
185
  "layers.2.attention.to_q": {
 
198
  "damp": 0.009999999776482582
199
  },
200
  "layers.2.feed_forward.w2": {
201
+ "rtn": 0.003413,
202
+ "gptq": 0.0002,
203
  "damp": 0.009999999776482582
204
  },
205
  "layers.3.attention.to_q": {
 
218
  "damp": 0.009999999776482582
219
  },
220
  "layers.3.feed_forward.w2": {
221
+ "rtn": 0.004067,
222
+ "gptq": 4.4e-05,
223
  "damp": 0.009999999776482582
224
  },
225
  "layers.4.attention.to_q": {
 
238
  "damp": 0.009999999776482582
239
  },
240
  "layers.4.feed_forward.w2": {
241
+ "rtn": 0.00418,
242
+ "gptq": 0.000129,
243
  "damp": 0.009999999776482582
244
  },
245
  "layers.5.attention.to_q": {
 
258
  "damp": 0.009999999776482582
259
  },
260
  "layers.5.feed_forward.w2": {
261
+ "rtn": 0.003458,
262
+ "gptq": 0.000112,
263
  "damp": 0.009999999776482582
264
  },
265
  "layers.6.attention.to_q": {
 
278
  "damp": 0.009999999776482582
279
  },
280
  "layers.6.feed_forward.w2": {
281
+ "rtn": 0.0036,
282
+ "gptq": 2e-05,
283
+ "damp": 0.009999999776482582
284
  },
285
  "layers.6.cross_attention.to_q": {
286
  "rtn": 0.005628,
 
313
  "damp": 0.009999999776482582
314
  },
315
  "layers.7.feed_forward.w2": {
316
+ "rtn": 0.004062,
317
  "gptq": 1.8e-05,
318
  "damp": 0.009999999776482582
319
  },
 
333
  "damp": 0.009999999776482582
334
  },
335
  "layers.8.feed_forward.w2": {
336
+ "rtn": 0.004181,
337
+ "gptq": 1e-05,
338
+ "damp": 0.009999999776482582
339
  },
340
  "layers.9.attention.to_q": {
341
  "rtn": 0.005928,
 
353
  "damp": 0.009999999776482582
354
  },
355
  "layers.9.feed_forward.w2": {
356
+ "rtn": 0.004505,
357
+ "gptq": 1.1e-05,
358
+ "damp": 0.009999999776482582
359
  },
360
  "layers.10.attention.to_q": {
361
  "rtn": 0.005875,
 
373
  "damp": 0.009999999776482582
374
  },
375
  "layers.10.feed_forward.w2": {
376
+ "rtn": 0.003996,
377
  "gptq": 1.8e-05,
378
  "damp": 0.009999999776482582
379
  },
 
393
  "damp": 0.009999999776482582
394
  },
395
  "layers.11.feed_forward.w2": {
396
+ "rtn": 0.003733,
397
  "gptq": 1.7e-05,
398
  "damp": 0.009999999776482582
399
  },
 
413
  "damp": 0.009999999776482582
414
  },
415
  "layers.12.feed_forward.w2": {
416
+ "rtn": 0.004105,
417
+ "gptq": 1.2e-05,
418
+ "damp": 0.009999999776482582
419
  },
420
  "layers.13.attention.to_q": {
421
  "rtn": 0.005801,
 
433
  "damp": 0.009999999776482582
434
  },
435
  "layers.13.feed_forward.w2": {
436
+ "rtn": 0.004581,
437
+ "gptq": 2.2e-05,
438
  "damp": 0.009999999776482582
439
  },
440
  "layers.14.attention.to_q": {
 
453
  "damp": 0.009999999776482582
454
  },
455
  "layers.14.feed_forward.w2": {
456
+ "rtn": 0.003481,
457
+ "gptq": 1.5e-05,
458
+ "damp": 0.009999999776482582
459
  },
460
  "layers.14.cross_attention.to_q": {
461
  "rtn": 0.006568,
 
488
  "damp": 0.009999999776482582
489
  },
490
  "layers.15.feed_forward.w2": {
491
+ "rtn": 0.003842,
492
+ "gptq": 1.8e-05,
493
  "damp": 0.009999999776482582
494
  },
495
  "layers.16.attention.to_q": {
 
508
  "damp": 0.009999999776482582
509
  },
510
  "layers.16.feed_forward.w2": {
511
+ "rtn": 0.004308,
512
+ "gptq": 1.4e-05,
513
+ "damp": 0.009999999776482582
514
  },
515
  "layers.17.attention.to_q": {
516
  "rtn": 0.005969,
 
528
  "damp": 0.009999999776482582
529
  },
530
  "layers.17.feed_forward.w2": {
531
+ "rtn": 0.00425,
532
+ "gptq": 1e-05,
533
+ "damp": 0.009999999776482582
534
  },
535
  "layers.18.attention.to_q": {
536
  "rtn": 0.006082,
 
548
  "damp": 0.009999999776482582
549
  },
550
  "layers.18.feed_forward.w2": {
551
+ "rtn": 0.003762,
552
+ "gptq": 1.5e-05,
553
+ "damp": 0.009999999776482582
554
  },
555
  "layers.19.attention.to_q": {
556
  "rtn": 0.005574,
 
568
  "damp": 0.009999999776482582
569
  },
570
  "layers.19.feed_forward.w2": {
571
+ "rtn": 0.003942,
572
+ "gptq": 2.4e-05,
573
  "damp": 0.009999999776482582
574
  },
575
  "layers.20.attention.to_q": {
 
588
  "damp": 0.009999999776482582
589
  },
590
  "layers.20.feed_forward.w2": {
591
+ "rtn": 0.004188,
592
+ "gptq": 1.6e-05,
593
  "damp": 0.009999999776482582
594
  },
595
  "layers.21.attention.to_q": {
 
608
  "damp": 0.009999999776482582
609
  },
610
  "layers.21.feed_forward.w2": {
611
+ "rtn": 0.004397,
612
+ "gptq": 1.7e-05,
613
+ "damp": 0.009999999776482582
614
  },
615
  "layers.22.attention.to_q": {
616
  "rtn": 0.005953,
 
628
  "damp": 0.009999999776482582
629
  },
630
  "layers.22.feed_forward.w2": {
631
+ "rtn": 0.003808,
632
+ "gptq": 2.7e-05,
633
  "damp": 0.009999999776482582
634
  },
635
  "layers.22.cross_attention.to_q": {
 
663
  "damp": 0.009999999776482582
664
  },
665
  "layers.23.feed_forward.w2": {
666
+ "rtn": 0.003597,
667
+ "gptq": 1e-05,
668
+ "damp": 0.009999999776482582
669
  },
670
  "layers.24.attention.to_q": {
671
  "rtn": 0.005951,
 
683
  "damp": 0.009999999776482582
684
  },
685
  "layers.24.feed_forward.w2": {
686
+ "rtn": 0.00386,
687
+ "gptq": 1.7e-05,
688
+ "damp": 0.009999999776482582
689
  },
690
  "layers.25.attention.to_q": {
691
  "rtn": 0.00572,
 
703
  "damp": 0.009999999776482582
704
  },
705
  "layers.25.feed_forward.w2": {
706
+ "rtn": 0.004118,
707
+ "gptq": 1.5e-05,
708
+ "damp": 0.009999999776482582
709
  },
710
  "layers.26.attention.to_q": {
711
  "rtn": 0.006164,
 
723
  "damp": 0.009999999776482582
724
  },
725
  "layers.26.feed_forward.w2": {
726
+ "rtn": 0.003897,
727
+ "gptq": 8e-06,
728
+ "damp": 0.009999999776482582
729
  },
730
  "layers.27.attention.to_q": {
731
  "rtn": 0.005482,
 
743
  "damp": 0.009999999776482582
744
  },
745
  "layers.27.feed_forward.w2": {
746
+ "rtn": 0.003466,
747
+ "gptq": 1.4e-05,
748
+ "damp": 0.009999999776482582
749
  },
750
  "layers.28.attention.to_q": {
751
  "rtn": 0.005646,
 
763
  "damp": 0.009999999776482582
764
  },
765
  "layers.28.feed_forward.w2": {
766
+ "rtn": 0.003484,
767
+ "gptq": 9e-06,
768
+ "damp": 0.009999999776482582
769
  },
770
  "layers.29.attention.to_q": {
771
  "rtn": 0.00574,
 
783
  "damp": 0.009999999776482582
784
  },
785
  "layers.29.feed_forward.w2": {
786
+ "rtn": 0.003762,
787
+ "gptq": 1e-05,
788
+ "damp": 0.009999999776482582
789
  },
790
  "layers.30.attention.to_q": {
791
  "rtn": 0.0059,
 
803
  "damp": 0.009999999776482582
804
  },
805
  "layers.30.feed_forward.w2": {
806
+ "rtn": 0.003891,
807
+ "gptq": 9e-06,
808
+ "damp": 0.009999999776482582
809
  },
810
  "layers.30.cross_attention.to_q": {
811
  "rtn": 0.044882,
 
838
  "damp": 0.009999999776482582
839
  },
840
  "layers.31.feed_forward.w2": {
841
+ "rtn": 0.003926,
842
+ "gptq": 7e-06,
843
+ "damp": 0.009999999776482582
844
  },
845
  "layers.32.attention.to_q": {
846
  "rtn": 0.005835,
 
858
  "damp": 0.009999999776482582
859
  },
860
  "layers.32.feed_forward.w2": {
861
+ "rtn": 0.004029,
862
+ "gptq": 7e-06,
863
+ "damp": 0.009999999776482582
864
  },
865
  "layers.33.attention.to_q": {
866
  "rtn": 0.006164,
 
878
  "damp": 0.009999999776482582
879
  },
880
  "layers.33.feed_forward.w2": {
881
+ "rtn": 0.003882,
882
+ "gptq": 7e-06,
883
+ "damp": 0.009999999776482582
884
  },
885
  "layers.34.attention.to_q": {
886
  "rtn": 0.00563,
 
898
  "damp": 0.009999999776482582
899
  },
900
  "layers.34.feed_forward.w2": {
901
+ "rtn": 0.00444,
902
+ "gptq": 5e-06,
903
  "damp": 0.09999999403953552
904
  },
905
  "layers.35.attention.to_q": {
 
918
  "damp": 0.009999999776482582
919
  },
920
  "layers.35.feed_forward.w2": {
921
+ "rtn": 0.003762,
922
  "gptq": 4e-06,
923
  "damp": 0.09999999403953552
924
  },
 
938
  "damp": 0.009999999776482582
939
  },
940
  "layers.36.feed_forward.w2": {
941
+ "rtn": 0.004886,
942
+ "gptq": 8e-06,
943
  "damp": 0.09999999403953552
944
  },
945
  "layers.37.attention.to_q": {
 
958
  "damp": 0.009999999776482582
959
  },
960
  "layers.37.feed_forward.w2": {
961
+ "rtn": 0.004534,
962
+ "gptq": 7e-06,
963
+ "damp": 0.009999999776482582
964
  },
965
  "layers.38.attention.to_q": {
966
  "rtn": 0.006079,
 
978
  "damp": 0.009999999776482582
979
  },
980
  "layers.38.feed_forward.w2": {
981
+ "rtn": 0.004722,
982
+ "gptq": 8e-06,
983
+ "damp": 0.009999999776482582
984
  },
985
  "layers.38.cross_attention.to_q": {
986
  "rtn": 0.131004,
 
1013
  "damp": 0.009999999776482582
1014
  },
1015
  "layers.39.feed_forward.w2": {
1016
+ "rtn": 0.004037,
1017
+ "gptq": 4e-06,
1018
  "damp": 0.09999999403953552
1019
  },
1020
  "layers.40.attention.to_q": {
 
1033
  "damp": 0.009999999776482582
1034
  },
1035
  "layers.40.feed_forward.w2": {
1036
+ "rtn": 0.004224,
1037
+ "gptq": 1.2e-05,
1038
+ "damp": 0.009999999776482582
1039
  },
1040
  "layers.41.attention.to_q": {
1041
  "rtn": 0.005491,
 
1053
  "damp": 0.009999999776482582
1054
  },
1055
  "layers.41.feed_forward.w2": {
1056
+ "rtn": 0.00426,
1057
+ "gptq": 1.6e-05,
1058
+ "damp": 0.009999999776482582
1059
  },
1060
  "layers.42.attention.to_q": {
1061
  "rtn": 0.005221,
 
1073
  "damp": 0.009999999776482582
1074
  },
1075
  "layers.42.feed_forward.w2": {
1076
+ "rtn": 0.003831,
1077
+ "gptq": 1.4e-05,
1078
+ "damp": 0.009999999776482582
1079
  },
1080
  "layers.43.attention.to_q": {
1081
  "rtn": 0.003794,
 
1093
  "damp": 0.009999999776482582
1094
  },
1095
  "layers.43.feed_forward.w2": {
1096
+ "rtn": 0.00343,
1097
+ "gptq": 0.000809,
1098
  "damp": 0.009999999776482582
1099
  }
1100
  },
1101
  "mean": {
1102
+ "rtn": 0.006569,
1103
+ "gptq": 0.000663
1104
  },
1105
+ "seconds": 1878.0
1106
  }
transformer/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1a7e6eccf0f85b570301e8c8eab769ba3c20b14d3ea17fdde4a67b52b7227260
3
  size 4329176674
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7300901894e5141c4fd592d806cf81ec65951701f5c1f6402c3ce217067b3b4a
3
  size 4329176674
transformer/orbitquant_manifest.json CHANGED
@@ -11,8 +11,9 @@
11
  "rotation_seed": 0,
12
  "block_size": "paper",
13
  "block_size_policy": "largest_power_of_two_dividing_dim",
 
14
  "codebook": "lloyd_max",
15
- "codebook_version": 2,
16
  "row_norm_dtype": "bfloat16",
17
  "runtime_mode": "auto_fused",
18
  "activation_kernel_backend": "auto",
@@ -3939,12 +3940,12 @@
3939
  ]
3940
  },
3941
  "checksums": {
3942
- "model.safetensors": "b86ebe525ee2e2d452d2025bac8b60fe781bd6e418d0cd00d46413f0cb1b4842",
3943
  "orbitquant_codebooks.safetensors": "354b4de89d7dbecbca33cba491af43aa0e94a9f469658c384d3743dbdb99c288",
3944
- "orbitquant_rotations.safetensors": "52a2273038ff076d0b9fef76844210857779682c594905dee0e769d14a1424ed",
3945
- "quantization_config.json": "ed1bde093e2ed3403e7cb5fa154750216bc78519ce869cc7b00a77b8eb126369",
3946
- "model_index.json": "b84bc37b1253ebab41939668501fd4892d8ad3c71f4e405445b255cf9bde08bf",
3947
  "prompts.json": "04901c871e459b144335027156c61ccd8ff0ecf48851c3b4811c483ee123b658",
3948
- "benchmark/summary.json": "243102848b8578d0c532ac82b24976c41b1e090ed2e7b221bf675c9e5d56281d"
3949
  }
3950
  }
 
11
  "rotation_seed": 0,
12
  "block_size": "paper",
13
  "block_size_policy": "largest_power_of_two_dividing_dim",
14
+ "rotation_rounds": "auto",
15
  "codebook": "lloyd_max",
16
+ "codebook_version": 3,
17
  "row_norm_dtype": "bfloat16",
18
  "runtime_mode": "auto_fused",
19
  "activation_kernel_backend": "auto",
 
3940
  ]
3941
  },
3942
  "checksums": {
3943
+ "model.safetensors": "7f1fb2a876e364b40520c5b23c666090474263c0a9dc02fd51aa6216e837310a",
3944
  "orbitquant_codebooks.safetensors": "354b4de89d7dbecbca33cba491af43aa0e94a9f469658c384d3743dbdb99c288",
3945
+ "orbitquant_rotations.safetensors": "259b889b0b61fc4ea1cb53fcbd012de5fffc793f451a476a0be872874397e0cc",
3946
+ "quantization_config.json": "530e68a34e9cfe8026698d04fa777867b536fa47c705dc2b0bce6196f1550dad",
3947
+ "model_index.json": "26bc9a5f07628e04bdd15124e94d4bdad7fe1561a8982af1438fad9ffc758b02",
3948
  "prompts.json": "04901c871e459b144335027156c61ccd8ff0ecf48851c3b4811c483ee123b658",
3949
+ "benchmark/summary.json": "886ca872f410a7eb55d701ea8351f4a7a70dfcaf299b3f7978edf960b4171397"
3950
  }
3951
  }
transformer/orbitquant_rotations.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:52a2273038ff076d0b9fef76844210857779682c594905dee0e769d14a1424ed
3
- size 354796
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:259b889b0b61fc4ea1cb53fcbd012de5fffc793f451a476a0be872874397e0cc
3
+ size 517360
transformer/quantization_config.json CHANGED
@@ -5,16 +5,21 @@
5
  "rotation": "rpbh",
6
  "rotation_seed": 0,
7
  "block_size": "paper",
 
8
  "codebook": "lloyd_max",
9
- "codebook_version": 2,
10
  "codebook_dtype": "float32",
11
  "row_norm_dtype": "bfloat16",
12
  "activation_norm_dtype": "float32",
13
  "activation_eps": 1e-10,
 
14
  "weight_pack_dtype": "uint8",
15
  "target_policy": "universal",
 
16
  "adaln_policy": "int4_rtn",
17
  "adaln_group_size": 64,
 
 
18
  "modules_to_convert": [
19
  "noise_refiner.*.attention.to_*",
20
  "noise_refiner.*.feed_forward.w*",
@@ -28,6 +33,7 @@
28
  "modules_to_use_adaln": [],
29
  "modules_to_not_convert": [],
30
  "modules_dtype_dict": {},
 
31
  "artifact_format_version": 1,
32
  "runtime_mode": "auto_fused",
33
  "activation_kernel_backend": "auto",
 
5
  "rotation": "rpbh",
6
  "rotation_seed": 0,
7
  "block_size": "paper",
8
+ "rotation_rounds": "auto",
9
  "codebook": "lloyd_max",
10
+ "codebook_version": 3,
11
  "codebook_dtype": "float32",
12
  "row_norm_dtype": "bfloat16",
13
  "activation_norm_dtype": "float32",
14
  "activation_eps": 1e-10,
15
+ "activation_quantizer": "lloyd_max",
16
  "weight_pack_dtype": "uint8",
17
  "target_policy": "universal",
18
+ "target_policy_version": 2,
19
  "adaln_policy": "int4_rtn",
20
  "adaln_group_size": 64,
21
+ "adaln_scale": "absmax",
22
+ "output_gain_correction": false,
23
  "modules_to_convert": [
24
  "noise_refiner.*.attention.to_*",
25
  "noise_refiner.*.feed_forward.w*",
 
33
  "modules_to_use_adaln": [],
34
  "modules_to_not_convert": [],
35
  "modules_dtype_dict": {},
36
+ "outlier_channels": {},
37
  "artifact_format_version": 1,
38
  "runtime_mode": "auto_fused",
39
  "activation_kernel_backend": "auto",