ixim commited on
Commit
6f8c80a
·
verified ·
1 Parent(s): fc2316d

Release verified Image21-INT8 conversion

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +33 -0
  2. CHANGES.md +9 -0
  3. LICENSE +55 -0
  4. MANIFEST.json +532 -0
  5. Notice +6 -0
  6. PUBLISHING.md +48 -0
  7. README.md +443 -0
  8. REPRODUCE.md +113 -0
  9. benchmarks/cases.json +9 -0
  10. benchmarks/young_woman.json +7 -0
  11. cards/huggingface.md +107 -0
  12. cards/modelscope.md +100 -0
  13. conversion.json +39 -0
  14. evaluation/bf16/chinese_text-s123.png +3 -0
  15. evaluation/bf16/chinese_text-s42.png +3 -0
  16. evaluation/bf16/composition-s123.png +3 -0
  17. evaluation/bf16/composition-s42.png +3 -0
  18. evaluation/bf16/edit-s123.png +3 -0
  19. evaluation/bf16/edit-s42.png +3 -0
  20. evaluation/bf16/english_text-s123.png +3 -0
  21. evaluation/bf16/english_text-s42.png +3 -0
  22. evaluation/bf16/environment.json +155 -0
  23. evaluation/bf16/portrait-s123.png +3 -0
  24. evaluation/bf16/portrait-s42.png +3 -0
  25. evaluation/bf16/records.jsonl +14 -0
  26. evaluation/bf16/rgba-s123.png +3 -0
  27. evaluation/bf16/rgba-s42.png +3 -0
  28. evaluation/bf16/texture-s123.png +3 -0
  29. evaluation/bf16/texture-s42.png +3 -0
  30. evaluation/comparison.csv +15 -0
  31. evaluation/comparison.html +18 -0
  32. evaluation/hardware.json +10 -0
  33. evaluation/int8/chinese_text-s123.png +3 -0
  34. evaluation/int8/chinese_text-s42.png +3 -0
  35. evaluation/int8/composition-s123.png +3 -0
  36. evaluation/int8/composition-s42.png +3 -0
  37. evaluation/int8/edit-s123.png +3 -0
  38. evaluation/int8/edit-s42.png +3 -0
  39. evaluation/int8/english_text-s123.png +3 -0
  40. evaluation/int8/english_text-s42.png +3 -0
  41. evaluation/int8/environment.json +149 -0
  42. evaluation/int8/portrait-s123.png +3 -0
  43. evaluation/int8/portrait-s42.png +3 -0
  44. evaluation/int8/records.jsonl +14 -0
  45. evaluation/int8/rgba-s123.png +3 -0
  46. evaluation/int8/rgba-s42.png +3 -0
  47. evaluation/int8/texture-s123.png +3 -0
  48. evaluation/int8/texture-s42.png +3 -0
  49. evaluation/qualitative.md +24 -0
  50. evaluation/report.md +40 -0
.gitattributes CHANGED
@@ -33,3 +33,36 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ evaluation/bf16/chinese_text-s123.png filter=lfs diff=lfs merge=lfs -text
37
+ evaluation/bf16/chinese_text-s42.png filter=lfs diff=lfs merge=lfs -text
38
+ evaluation/bf16/composition-s123.png filter=lfs diff=lfs merge=lfs -text
39
+ evaluation/bf16/composition-s42.png filter=lfs diff=lfs merge=lfs -text
40
+ evaluation/bf16/edit-s123.png filter=lfs diff=lfs merge=lfs -text
41
+ evaluation/bf16/edit-s42.png filter=lfs diff=lfs merge=lfs -text
42
+ evaluation/bf16/english_text-s123.png filter=lfs diff=lfs merge=lfs -text
43
+ evaluation/bf16/english_text-s42.png filter=lfs diff=lfs merge=lfs -text
44
+ evaluation/bf16/portrait-s123.png filter=lfs diff=lfs merge=lfs -text
45
+ evaluation/bf16/portrait-s42.png filter=lfs diff=lfs merge=lfs -text
46
+ evaluation/bf16/rgba-s123.png filter=lfs diff=lfs merge=lfs -text
47
+ evaluation/bf16/rgba-s42.png filter=lfs diff=lfs merge=lfs -text
48
+ evaluation/bf16/texture-s123.png filter=lfs diff=lfs merge=lfs -text
49
+ evaluation/bf16/texture-s42.png filter=lfs diff=lfs merge=lfs -text
50
+ evaluation/int8/chinese_text-s123.png filter=lfs diff=lfs merge=lfs -text
51
+ evaluation/int8/chinese_text-s42.png filter=lfs diff=lfs merge=lfs -text
52
+ evaluation/int8/composition-s123.png filter=lfs diff=lfs merge=lfs -text
53
+ evaluation/int8/composition-s42.png filter=lfs diff=lfs merge=lfs -text
54
+ evaluation/int8/edit-s123.png filter=lfs diff=lfs merge=lfs -text
55
+ evaluation/int8/edit-s42.png filter=lfs diff=lfs merge=lfs -text
56
+ evaluation/int8/english_text-s123.png filter=lfs diff=lfs merge=lfs -text
57
+ evaluation/int8/english_text-s42.png filter=lfs diff=lfs merge=lfs -text
58
+ evaluation/int8/portrait-s123.png filter=lfs diff=lfs merge=lfs -text
59
+ evaluation/int8/portrait-s42.png filter=lfs diff=lfs merge=lfs -text
60
+ evaluation/int8/rgba-s123.png filter=lfs diff=lfs merge=lfs -text
61
+ evaluation/int8/rgba-s42.png filter=lfs diff=lfs merge=lfs -text
62
+ evaluation/int8/texture-s123.png filter=lfs diff=lfs merge=lfs -text
63
+ evaluation/int8/texture-s42.png filter=lfs diff=lfs merge=lfs -text
64
+ evaluation/young_woman/bf16/young_chinese_woman-s123.png filter=lfs diff=lfs merge=lfs -text
65
+ evaluation/young_woman/bf16/young_chinese_woman-s42.png filter=lfs diff=lfs merge=lfs -text
66
+ evaluation/young_woman/int8/young_chinese_woman-s123.png filter=lfs diff=lfs merge=lfs -text
67
+ evaluation/young_woman/int8/young_chinese_woman-s42.png filter=lfs diff=lfs merge=lfs -text
68
+ processor/tokenizer.json filter=lfs diff=lfs merge=lfs -text
CHANGES.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Modifications
2
+
3
+ Modified by ixim / iximbox: eligible linear weights converted from Qwen-Image-2.1 to bitsandbytes LLM.int8 INT8. Built with Qwen. Non-commercial research/evaluation under the accompanying Qwen Research License.
4
+
5
+ - Converted eligible transformer and text encoder linear layers to LLM.int8, threshold 6.0.
6
+ - Retained sensitive projections, normalization, embeddings, vision model and VAE in floating point.
7
+ - Re-serialized component weights, shard indexes and configs; no fine-tuning.
8
+ - Weight-file headers and modified JSON files contain modification notices.
9
+ - Exact quantized module names and dtype counts are in the component reports.
LICENSE ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Qwen RESEARCH LICENSE AGREEMENT
2
+
3
+ Qwen RESEARCH LICENSE AGREEMENT Release Date: September 20, 2026
4
+
5
+ By clicking to agree or by using or distributing any portion or element of the Qwen Materials, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
6
+
7
+ 1. Definitions
8
+ a. This Qwen RESEARCH LICENSE AGREEMENT (this "Agreement") shall mean the terms and conditions for use, reproduction, distribution and modification of the Materials as defined by this Agreement.
9
+ b. "We" (or "Us") shall mean Hangzhou Tongyi Laboratory Technology Co., Ltd.
10
+ c. "You" (or "Your") shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Materials for any purpose and in any field of use.
11
+ d. "Third Parties" shall mean individuals or legal entities that are not under common control with us or you.
12
+ e. "Qwen" shall mean the large language models, diffusion models, and software and algorithms, consisting of trained model weights, parameters (including optimizer states), machine-learning model code, inference-enabling code, training-enabling code, fine-tuning enabling code and other elements of the foregoing distributed by us.
13
+ f. "Materials" shall mean, collectively, our proprietary Qwen and Documentation (and any portion thereof) made available under this Agreement.
14
+ g. "Source" form shall mean the preferred form for making modifications, including but not limited to model source code, documentation source, and configuration files.
15
+ h. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
16
+ i. "Non-Commercial" shall mean for research or evaluation purposes only.
17
+
18
+ 2. Grant of Rights
19
+ a. You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under our intellectual property or other rights owned by us embodied in the Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Materials FOR NON-COMMERCIAL PURPOSES ONLY.
20
+ b. You shall not use the Materials for any commercial purpose without obtaining a separate commercial license from us. If you wish to use the Materials commercially, you shall request a license from us at model-business@notice.qwencloud.com.
21
+
22
+ 3. Redistribution
23
+ Subject to Section 2 (Grant of Rights), you may distribute copies or make the Materials, or derivative works thereof, available as part of a product or service that contains any of them, with or without modifications, and in Source or Object form, provided that you meet the following conditions:
24
+ a. You shall give any other recipients of the Materials or derivative works a copy of this Agreement;
25
+ b. You shall cause any modified files to carry prominent notices stating that you changed the files;
26
+ c. You shall retain in all copies of the Materials that you distribute the following attribution notices within a "Notice" text file distributed as a part of such copies: "Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved."; and
27
+ d. You may add your own copyright statement to your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of your modifications, or for any such derivative works as a whole, provided your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
28
+
29
+ 4. Rules of use
30
+ a. The Materials may be subject to export controls or restrictions in China, the United States or other countries or regions. You shall comply with applicable laws and regulations in your use of the Materials.
31
+ b. If you use the Materials or any outputs or results therefrom to create, train, fine-tune, or improve an AI model that is distributed or made available, you shall prominently display “Built with Qwen” or “Improved using Qwen” in the related product documentation.
32
+ c. You shall not use "Qwen" as the primary name or identifier of any derivative works or products; reasonable descriptive use (e.g., "fine-tuned from Qwen Image") is permitted.
33
+
34
+ 5. Intellectual Property
35
+ a. We retain ownership of all intellectual property rights in and to the Materials and derivatives made by or for us. Conditioned upon compliance with the terms and conditions of this Agreement, with respect to any derivative works and modifications of the Materials that are made by you, you are and will be the owner of such derivative works and modifications.
36
+ b. No trademark license is granted to use the trade names, trademarks, service marks, or product names of us, except as required to fulfill notice requirements under this Agreement or as required for reasonable and customary use in describing and redistributing the Materials.
37
+ c. If you commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against us or any entity alleging that the Materials or any output therefrom, or any part of the foregoing, infringe any intellectual property or other right owned or licensable by you, then all licenses granted to you under this Agreement shall terminate as of the date such lawsuit or other proceeding is commenced or brought.
38
+
39
+ 6. Disclaimer of Warranty and Limitation of Liability
40
+ a. We are not obligated to support, update, provide training for, or develop any further version of the Qwen Materials or to grant any license thereto.
41
+ b. THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. WE MAKE NO WARRANTY AND ASSUME NO RESPONSIBILITY FOR THE SAFETY OR STABILITY OF THE MATERIALS AND ANY OUTPUT THEREFROM.
42
+ c. IN NO EVENT SHALL WE BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE MATERIALS OR ANY OUTPUT OF IT, NO MATTER HOW IT’S CAUSED.
43
+ d. You will defend, indemnify and hold harmless us from and against any claim by any third party arising out of or related to your use or distribution of the Materials.
44
+
45
+ 7. Survival and Termination.
46
+ a. The term of this Agreement shall commence upon your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
47
+ b. We may terminate this Agreement if you breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, you must delete and cease use of the Materials. Sections 6 and 8 shall survive the termination of this Agreement.
48
+
49
+ 8. Governing Law and Jurisdiction.
50
+ a. This Agreement and any dispute arising out of or relating to it will be governed by the laws of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
51
+ b. The People's Courts in Hangzhou City shall have exclusive jurisdiction over any dispute arising out of this Agreement.
52
+
53
+ 9. Other Terms and Conditions.
54
+ a. Any arrangements, understandings, or agreements regarding the Material not stated herein are separate from and independent of the terms and conditions of this Agreement. You shall request a separate license from us, if you use the Materials in ways not expressly agreed to in this Agreement.
55
+ b. We shall not be bound by any additional or different terms or conditions communicated by you unless expressly agreed.
MANIFEST.json ADDED
@@ -0,0 +1,532 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "path": "CHANGES.md",
4
+ "size": 663,
5
+ "sha256": "c5e50b15f690fce48eaf9a837be7033b5ee8fdae89048b3cd3fef20df412e775"
6
+ },
7
+ {
8
+ "path": "LICENSE",
9
+ "size": 7831,
10
+ "sha256": "8dc973f024ff95966bea25866efa443fd16776dcb1001e681e3d467ea572b28d"
11
+ },
12
+ {
13
+ "path": "Notice",
14
+ "size": 530,
15
+ "sha256": "9b12c699d8e464d0eda682b18535568981893eaf66e462a0467f2c16b387970a"
16
+ },
17
+ {
18
+ "path": "PUBLISHING.md",
19
+ "size": 2118,
20
+ "sha256": "ed220160bb06dd4774f6e413eb6b077f8316033ae76dbf85c146e9c65cbac4e8"
21
+ },
22
+ {
23
+ "path": "README.md",
24
+ "size": 25079,
25
+ "sha256": "6250a13203f365d078fab9b8a338904dc81f2ca4100412c60b723b33c154f704"
26
+ },
27
+ {
28
+ "path": "REPRODUCE.md",
29
+ "size": 5400,
30
+ "sha256": "a5e66fe633b1d8e920c7192f7563dbdc72619d9e61c1ed5172b96ac49d790ffc"
31
+ },
32
+ {
33
+ "path": "benchmarks/cases.json",
34
+ "size": 1919,
35
+ "sha256": "2663ee3d489e1eb136e02b083963b8622146fc65ac301d6acc5a6aab21e63356"
36
+ },
37
+ {
38
+ "path": "benchmarks/young_woman.json",
39
+ "size": 516,
40
+ "sha256": "0d1d27b403e6c6685d652ef5553978fc9ac8af9b1d13c5c662449d0a8be74847"
41
+ },
42
+ {
43
+ "path": "cards/huggingface.md",
44
+ "size": 4370,
45
+ "sha256": "aef950ac712df59df5d679177aafebd9f8f0e7b772f2b2b6077b7aa8ce3a5fef"
46
+ },
47
+ {
48
+ "path": "cards/modelscope.md",
49
+ "size": 4139,
50
+ "sha256": "b4f5c38e7d2cbc2c3aeee9884f4136591b1083a1c8e4846f5b71a772cc119487"
51
+ },
52
+ {
53
+ "path": "conversion.json",
54
+ "size": 1425,
55
+ "sha256": "85900407b59658abab04a37e830089939ca20346435dea3ae3a09cb1e5f6887f"
56
+ },
57
+ {
58
+ "path": "evaluation/bf16/chinese_text-s123.png",
59
+ "size": 1194079,
60
+ "sha256": "eae74256d7ed1b3519d39c7d58961cf7a937224d19a3c3239ca7eba4178edf49"
61
+ },
62
+ {
63
+ "path": "evaluation/bf16/chinese_text-s42.png",
64
+ "size": 1303893,
65
+ "sha256": "7082cb71d99705bc42e27e2c206b13e3beb9e62cfd6304cfabe203b82641692c"
66
+ },
67
+ {
68
+ "path": "evaluation/bf16/composition-s123.png",
69
+ "size": 1220815,
70
+ "sha256": "bc11612f260acd8af0d834f3b28c752cefd0437d24c9a01dae0d46647bdf29ae"
71
+ },
72
+ {
73
+ "path": "evaluation/bf16/composition-s42.png",
74
+ "size": 1194343,
75
+ "sha256": "91e967685fbbd79ba13daece22a0f72c863cb518db88d5d2a6f9aecfc5f292b1"
76
+ },
77
+ {
78
+ "path": "evaluation/bf16/edit-s123.png",
79
+ "size": 1801031,
80
+ "sha256": "7d00c5bb7a2b31f05ea3fcf3f4a79dd93335770fe1b2d0ad772d5df954c9f91c"
81
+ },
82
+ {
83
+ "path": "evaluation/bf16/edit-s42.png",
84
+ "size": 2269130,
85
+ "sha256": "8713f6ef2ec0191d88225f2515671d6f51be43aa293bb1ca6e25b07a1b67deb9"
86
+ },
87
+ {
88
+ "path": "evaluation/bf16/english_text-s123.png",
89
+ "size": 905011,
90
+ "sha256": "cf5e76dee9f0e403ebdf24a64e1fcd604ee2b6c8e645a032fba2807acc34adf2"
91
+ },
92
+ {
93
+ "path": "evaluation/bf16/english_text-s42.png",
94
+ "size": 969130,
95
+ "sha256": "ba31b0c8a312e96408096566013c667b3a32bd7720749ca47120960b17b41ca6"
96
+ },
97
+ {
98
+ "path": "evaluation/bf16/environment.json",
99
+ "size": 5659,
100
+ "sha256": "9fe2336fb834a19c56b3280ad01d22bb3a716ddead12633398c8561eb6ffc981"
101
+ },
102
+ {
103
+ "path": "evaluation/bf16/portrait-s123.png",
104
+ "size": 1930022,
105
+ "sha256": "cff376e50c41c4aee2b9e4aabc502f4791774f6ad285d8a7673a61ebb1fa650d"
106
+ },
107
+ {
108
+ "path": "evaluation/bf16/portrait-s42.png",
109
+ "size": 1868618,
110
+ "sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa"
111
+ },
112
+ {
113
+ "path": "evaluation/bf16/records.jsonl",
114
+ "size": 11284,
115
+ "sha256": "4167b569c5970648ef04a7f903c12ba6bf658f0b6fb3931e79efdf98bbfddabb"
116
+ },
117
+ {
118
+ "path": "evaluation/bf16/rgba-s123.png",
119
+ "size": 926957,
120
+ "sha256": "6f1abbb1a64ac553fc576a0250d370ab5bb7e6d5e6372f42f67045a5bb0951a6"
121
+ },
122
+ {
123
+ "path": "evaluation/bf16/rgba-s42.png",
124
+ "size": 850131,
125
+ "sha256": "6f5dfea6ba02e41cbf20617b6e863e1adfa139d79fad2ca5c64dfc815f591d82"
126
+ },
127
+ {
128
+ "path": "evaluation/bf16/texture-s123.png",
129
+ "size": 1760350,
130
+ "sha256": "18c4403f388d0e03447473c03497141169f333fddeaeb40227163dc3b9d68d3e"
131
+ },
132
+ {
133
+ "path": "evaluation/bf16/texture-s42.png",
134
+ "size": 1797822,
135
+ "sha256": "40a0f73bb407a394fa9e8a3f6922455df716b9725ad07437fa10c1daca2c2095"
136
+ },
137
+ {
138
+ "path": "evaluation/comparison.csv",
139
+ "size": 2510,
140
+ "sha256": "e441773cf19d5e6e7f8320f9da5e4ec2e2d84a991589c105424b240d1f7e34bb"
141
+ },
142
+ {
143
+ "path": "evaluation/comparison.html",
144
+ "size": 5966,
145
+ "sha256": "83bbd685fe09c581d1e675b5324681c9bc6944ef47687894095573576473b8db"
146
+ },
147
+ {
148
+ "path": "evaluation/hardware.json",
149
+ "size": 349,
150
+ "sha256": "3f18698ee838a786f10a3fdbcc31621995811797a30d7c803be8fc4ee8e5a6db"
151
+ },
152
+ {
153
+ "path": "evaluation/int8/chinese_text-s123.png",
154
+ "size": 1201749,
155
+ "sha256": "7ff8508a9454650920591c0aad34d1793501f609e853f2f8584c15eee5127479"
156
+ },
157
+ {
158
+ "path": "evaluation/int8/chinese_text-s42.png",
159
+ "size": 1315329,
160
+ "sha256": "dce2de1e3b8b3836c7584854c7cf340cf05bcb141fa8e3988264c62e1b20238c"
161
+ },
162
+ {
163
+ "path": "evaluation/int8/composition-s123.png",
164
+ "size": 1211968,
165
+ "sha256": "c030c007a9c3962533ffeb256d9dac619cc082a20a21ff6f9eb0c0ab7b7cadae"
166
+ },
167
+ {
168
+ "path": "evaluation/int8/composition-s42.png",
169
+ "size": 1222325,
170
+ "sha256": "5704252c99e7f9dbe9e512eb82bf4fd93650e26c1d6479412679e7868637bcdd"
171
+ },
172
+ {
173
+ "path": "evaluation/int8/edit-s123.png",
174
+ "size": 1799329,
175
+ "sha256": "d8023e34ba10a22b36f63d050c50d44f149cebc7fc8f7f612a47f27f2a4cb70b"
176
+ },
177
+ {
178
+ "path": "evaluation/int8/edit-s42.png",
179
+ "size": 2275894,
180
+ "sha256": "79725e243ccfd82b5387beffe6e1f37193ce9137b576b2ec20e8543547dd9d33"
181
+ },
182
+ {
183
+ "path": "evaluation/int8/english_text-s123.png",
184
+ "size": 922494,
185
+ "sha256": "b55551e7c17975ee90ad895e449379355886c3422d6dcdee9b0c3a4ce1c4632f"
186
+ },
187
+ {
188
+ "path": "evaluation/int8/english_text-s42.png",
189
+ "size": 960968,
190
+ "sha256": "98ea66acd842498e192bc69503e32f5f61a4e5e56887d0f86e9c936b0b0d976f"
191
+ },
192
+ {
193
+ "path": "evaluation/int8/environment.json",
194
+ "size": 5290,
195
+ "sha256": "44625db8d61251f534c3abf6e0a4cd3d00955f57986420d8673f3962d41a6d27"
196
+ },
197
+ {
198
+ "path": "evaluation/int8/portrait-s123.png",
199
+ "size": 1930928,
200
+ "sha256": "09391672b7aa15abc92a49184c94cd7dc09b570b2134c95f0a1524701630323c"
201
+ },
202
+ {
203
+ "path": "evaluation/int8/portrait-s42.png",
204
+ "size": 1865119,
205
+ "sha256": "e37187a2530d0f45378f17ca8fff47a7e174f1ce0c19ff89b9df8f4db1845acd"
206
+ },
207
+ {
208
+ "path": "evaluation/int8/records.jsonl",
209
+ "size": 11281,
210
+ "sha256": "c24ceada57729199c64f5d89ceae27f9b403b93fe777179d9b635428131033cd"
211
+ },
212
+ {
213
+ "path": "evaluation/int8/rgba-s123.png",
214
+ "size": 1032567,
215
+ "sha256": "4871aab8f9d404a479385053bdb4c18de7f4119884bb0e30997d7be721a69b45"
216
+ },
217
+ {
218
+ "path": "evaluation/int8/rgba-s42.png",
219
+ "size": 918813,
220
+ "sha256": "8624d495fe40f602a492b3366ccb0354d5684e4e084281503fdb435d0f4e265e"
221
+ },
222
+ {
223
+ "path": "evaluation/int8/texture-s123.png",
224
+ "size": 1758127,
225
+ "sha256": "82fc88d5ab3cd4201634c54567b327f200231321dd0207990ff4c893e78496c7"
226
+ },
227
+ {
228
+ "path": "evaluation/int8/texture-s42.png",
229
+ "size": 1784440,
230
+ "sha256": "37042d1659147a142e0562aa27623cb1d159d9d12e46af59395029f0293fd9c8"
231
+ },
232
+ {
233
+ "path": "evaluation/qualitative.md",
234
+ "size": 2365,
235
+ "sha256": "f5e112ed3eb9f64574e269489b0176a6d389b1e983e3b9d97c802d329bca7b4d"
236
+ },
237
+ {
238
+ "path": "evaluation/report.md",
239
+ "size": 2184,
240
+ "sha256": "84c4e4348c035e3852155ccb4a768441811c6c08ec8358b8f28c21ca190af5e8"
241
+ },
242
+ {
243
+ "path": "evaluation/summary.json",
244
+ "size": 365,
245
+ "sha256": "ab07b54644317bfc2caa1c0ad1b4d960e414752a37ad7e842d41685dcf523e38"
246
+ },
247
+ {
248
+ "path": "evaluation/young_woman/bf16/environment.json",
249
+ "size": 5480,
250
+ "sha256": "f22b1f0a4e9eb98d6e402e0d08b93afc595f6391378071c59a827c172b131c84"
251
+ },
252
+ {
253
+ "path": "evaluation/young_woman/bf16/records.jsonl",
254
+ "size": 2067,
255
+ "sha256": "881dd5592fc198ede61416a9f7a6dcf9dc697ae5e678ffb166e04a52192f831c"
256
+ },
257
+ {
258
+ "path": "evaluation/young_woman/bf16/young_chinese_woman-s123.png",
259
+ "size": 1555909,
260
+ "sha256": "a2f28b40c897335595e496d23e490278c53b2f916597a4ef0fbb95a9f2700096"
261
+ },
262
+ {
263
+ "path": "evaluation/young_woman/bf16/young_chinese_woman-s42.png",
264
+ "size": 1568091,
265
+ "sha256": "00716ad4721f585be4b0bf0daf2413f4ab92b795f1eb4d08b4f1ecc604b075b8"
266
+ },
267
+ {
268
+ "path": "evaluation/young_woman/comparison.csv",
269
+ "size": 513,
270
+ "sha256": "c38eef422e781fb0b3cddeee017027140c62eaa2abfa2e6948a32e184a933944"
271
+ },
272
+ {
273
+ "path": "evaluation/young_woman/comparison.html",
274
+ "size": 1726,
275
+ "sha256": "3586888ee7622d2226661184cfdf5493200c3853c65e7c0890f4365fccf6fc26"
276
+ },
277
+ {
278
+ "path": "evaluation/young_woman/int8/environment.json",
279
+ "size": 5289,
280
+ "sha256": "703186d40488bba0c1a058bf0134b2436ebba1b0929679e1b71cb78c4c292722"
281
+ },
282
+ {
283
+ "path": "evaluation/young_woman/int8/records.jsonl",
284
+ "size": 2064,
285
+ "sha256": "b3bf88a2f62ac9262c94730e92fb2d3816f4a13bab1c9c6716c4b991f0bff3b7"
286
+ },
287
+ {
288
+ "path": "evaluation/young_woman/int8/young_chinese_woman-s123.png",
289
+ "size": 1560080,
290
+ "sha256": "350e800c857e0c6e0836cd7fb222cd9b60c10a34f29f15b1f8ffa71e9f986f64"
291
+ },
292
+ {
293
+ "path": "evaluation/young_woman/int8/young_chinese_woman-s42.png",
294
+ "size": 1563866,
295
+ "sha256": "5ffeb0f35bf0115ba2dd7ea9a98def2a97f280c67c27a24c9d1110e6501256a6"
296
+ },
297
+ {
298
+ "path": "evaluation/young_woman/qualitative.md",
299
+ "size": 2185,
300
+ "sha256": "98ad6ce5f287a201d375ebfcf0c6fd8b3a4c254d44ae9f565446b661f6eb324a"
301
+ },
302
+ {
303
+ "path": "evaluation/young_woman/report.md",
304
+ "size": 1300,
305
+ "sha256": "b647a04ecf6af54fc6cdcfe1ca34383f34b513be01f5b2c3048db6daa2142bde"
306
+ },
307
+ {
308
+ "path": "evaluation/young_woman/summary.json",
309
+ "size": 365,
310
+ "sha256": "f915a59019a6ebdfe8761dc7f9bc30e7348ecf1ef1e83e899f808b9d6af7e7ed"
311
+ },
312
+ {
313
+ "path": "model_index.json",
314
+ "size": 447,
315
+ "sha256": "cf1ecd104ea090855d60d8cec0895c1e9d6ee41b2f87e231b678beecd1cf7809"
316
+ },
317
+ {
318
+ "path": "processor/added_tokens.json",
319
+ "size": 707,
320
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680"
321
+ },
322
+ {
323
+ "path": "processor/chat_template.jinja",
324
+ "size": 5292,
325
+ "sha256": "3636d0f0bd6bef02654cdffdc447b79cb2cef8ab02cc75267345946291a489e4"
326
+ },
327
+ {
328
+ "path": "processor/merges.txt",
329
+ "size": 1671853,
330
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5"
331
+ },
332
+ {
333
+ "path": "processor/preprocessor_config.json",
334
+ "size": 782,
335
+ "sha256": "93585062a80db5e8ca038efc7726a3e6411d9db948472d81d63c6303993be8c5"
336
+ },
337
+ {
338
+ "path": "processor/special_tokens_map.json",
339
+ "size": 613,
340
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd"
341
+ },
342
+ {
343
+ "path": "processor/tokenizer.json",
344
+ "size": 11422654,
345
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4"
346
+ },
347
+ {
348
+ "path": "processor/tokenizer_config.json",
349
+ "size": 5445,
350
+ "sha256": "81ec7bb9530159b326c0bef1d0b6c33d392090524014ea3f0123a3c1eb9c2af5"
351
+ },
352
+ {
353
+ "path": "processor/video_preprocessor_config.json",
354
+ "size": 817,
355
+ "sha256": "59c5c9eb52182eb14c06ffb10ca9effd29adce5f238a95de23ca14a38dbd2cb1"
356
+ },
357
+ {
358
+ "path": "processor/vocab.json",
359
+ "size": 2776833,
360
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
361
+ },
362
+ {
363
+ "path": "requirements.txt",
364
+ "size": 358,
365
+ "sha256": "c9fa98a3948380f630abb7a84fcfc4e2dac020b0017a5e2cae672ebca3781f6c"
366
+ },
367
+ {
368
+ "path": "scheduler/scheduler_config.json",
369
+ "size": 485,
370
+ "sha256": "5895f3a167c14a967fe9ac70c64924ae5acc79799e0679fd12907e594a713cd1"
371
+ },
372
+ {
373
+ "path": "scripts/__init__.py",
374
+ "size": 364,
375
+ "sha256": "bf9f0329f310b94e93f498ffb6e921604dba02340d7b77168f5da0d8384f5762"
376
+ },
377
+ {
378
+ "path": "scripts/benchmark.py",
379
+ "size": 5726,
380
+ "sha256": "4e1bc7bef15e04b436fd5b32a21c33954319ae670de32c5eca33ede742c8dd01"
381
+ },
382
+ {
383
+ "path": "scripts/download.py",
384
+ "size": 2455,
385
+ "sha256": "0148190b086caa0e016a4a55cf4f6081ba1bf3721631342bdaecfdfab4f70565"
386
+ },
387
+ {
388
+ "path": "scripts/infer.py",
389
+ "size": 1829,
390
+ "sha256": "1f73851dd4c8bed57d0444ea195ef5008f3827f5f6974cae0c65fe710a3e2984"
391
+ },
392
+ {
393
+ "path": "scripts/integrity.py",
394
+ "size": 2136,
395
+ "sha256": "eecb338ebaed60a32e7a8ee8b9a6097a570f73af8da10bdfe67fe96b764f5d71"
396
+ },
397
+ {
398
+ "path": "scripts/model_card.py",
399
+ "size": 13708,
400
+ "sha256": "93839adc07c6b4400ad493f3400c7d0bf03e3673f83a25820e80c7c6fba731cd"
401
+ },
402
+ {
403
+ "path": "scripts/provenance.py",
404
+ "size": 4495,
405
+ "sha256": "9b0c2957ecd1260bee26716922d746244caa857c2183ae31288e1d2ad5e3ab26"
406
+ },
407
+ {
408
+ "path": "scripts/quantize.py",
409
+ "size": 4301,
410
+ "sha256": "1d12d3acd9c8e4f41cdd83f4be54b56228e1721ddf45bcee2732ff68e9259488"
411
+ },
412
+ {
413
+ "path": "scripts/release.py",
414
+ "size": 12517,
415
+ "sha256": "5dbd00f5d29be7f74c171352fedde6a4c2d807b359277b2b3bff401c0f5ddf0f"
416
+ },
417
+ {
418
+ "path": "scripts/report.py",
419
+ "size": 8179,
420
+ "sha256": "f33f8352a0b6561b8089b04d280f4082feb55de0c89250a0b02fc35639c94243"
421
+ },
422
+ {
423
+ "path": "scripts/upload.py",
424
+ "size": 3674,
425
+ "sha256": "b46f2c8595e7aff91e1565a1f068ab9c32c85f9daab8cb5383f9e5ba3024fc4a"
426
+ },
427
+ {
428
+ "path": "tests/__init__.py",
429
+ "size": 0,
430
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
431
+ },
432
+ {
433
+ "path": "tests/gpu_roundtrip.py",
434
+ "size": 1055,
435
+ "sha256": "7077bdac70c0f17882834023bc98c2c9e2eaa0e30c0fd8012e08052cd29df45b"
436
+ },
437
+ {
438
+ "path": "tests/test_integrity.py",
439
+ "size": 1739,
440
+ "sha256": "1042a18ea03c2b76a84584a51cd9f0a7416321ea999dbc9f1ec00c38e28e815b"
441
+ },
442
+ {
443
+ "path": "tests/test_notices.py",
444
+ "size": 1094,
445
+ "sha256": "0f850d1bdddc4c1ee431dae56961b439a566d10787d6968c6a17e1364edff290"
446
+ },
447
+ {
448
+ "path": "tests/test_provenance.py",
449
+ "size": 2180,
450
+ "sha256": "47a448161b9a2834610f4e04a094b0aa0af268b628b11386dae65591d5b01b0a"
451
+ },
452
+ {
453
+ "path": "tests/test_upload_auth.py",
454
+ "size": 858,
455
+ "sha256": "722994cc6aab6673498266d6414650a88837c331b261693f2c0eb98499cb3552"
456
+ },
457
+ {
458
+ "path": "text_encoder-quantization.json",
459
+ "size": 19004,
460
+ "sha256": "602398ec933e151e3e71b5f3208500b376855b40d072f73340490e2a6e64f32b"
461
+ },
462
+ {
463
+ "path": "text_encoder/config.json",
464
+ "size": 2487,
465
+ "sha256": "da4f7a17ffbcaef0d09f9c31cab01d77e2c25905676818279254b5a8bb371150"
466
+ },
467
+ {
468
+ "path": "text_encoder/generation_config.json",
469
+ "size": 467,
470
+ "sha256": "7dc6dd5e325f76cd2f75d428d41049e1f8ac0c4775d0800c0885b88bfe3f4c7f"
471
+ },
472
+ {
473
+ "path": "text_encoder/model-00001-of-00003.safetensors",
474
+ "size": 4999822155,
475
+ "sha256": "9b8ae3bd2a1e4884abc48c659212427bbbae06fb1bc17e7173583704fc0f6bdd"
476
+ },
477
+ {
478
+ "path": "text_encoder/model-00002-of-00003.safetensors",
479
+ "size": 4996432636,
480
+ "sha256": "d28d1a8b3994a43582acc5e2da15ff38b632fae1466f41bc7710d27ec170aa9e"
481
+ },
482
+ {
483
+ "path": "text_encoder/model-00003-of-00003.safetensors",
484
+ "size": 27729689,
485
+ "sha256": "5896ffa9e2b2a52f9d496755fde050306f21c449bd66c2526b40979033c6e244"
486
+ },
487
+ {
488
+ "path": "text_encoder/model.safetensors.index.json",
489
+ "size": 139297,
490
+ "sha256": "d3fc335d23047182f40d458efec86a4b187a766e0d1639426b6a9b7ab5b1ab8a"
491
+ },
492
+ {
493
+ "path": "transformer-quantization.json",
494
+ "size": 9853,
495
+ "sha256": "d735fe2c5f2546f20d943cc0789a5f57950d945343871a8cade62ea9234996a7"
496
+ },
497
+ {
498
+ "path": "transformer/config.json",
499
+ "size": 1297,
500
+ "sha256": "1a941b5389b5985cd16314641d708a1333a65748bcd3f74b1b8b1cd74b828202"
501
+ },
502
+ {
503
+ "path": "transformer/diffusion_pytorch_model-00001-of-00002.safetensors",
504
+ "size": 4989447305,
505
+ "sha256": "0d77daaa3129860f026567e0178fec4ed776f3cf2463da76a0823b9c381c3468"
506
+ },
507
+ {
508
+ "path": "transformer/diffusion_pytorch_model-00002-of-00002.safetensors",
509
+ "size": 2267331623,
510
+ "sha256": "5e1b8ee3917833687adb662830438dc612ace2cf4bff7b8898515184a888fde1"
511
+ },
512
+ {
513
+ "path": "transformer/diffusion_pytorch_model.safetensors.index.json",
514
+ "size": 77984,
515
+ "sha256": "96963ae89098cbfdb83fb09bfe0b91e34d8dfe812c65da5e1fbe452878a79ebe"
516
+ },
517
+ {
518
+ "path": "upstream-verification.json",
519
+ "size": 1439,
520
+ "sha256": "2878036fc34cd72df293bd8432518a7a9ffbf9fe98d9ba13e2e1ed3a32f878e5"
521
+ },
522
+ {
523
+ "path": "vae/config.json",
524
+ "size": 2079,
525
+ "sha256": "9785d527b278cb8b210e9f48a8028d92a4190968ce7e24c8fc85d9d1b82f6ba2"
526
+ },
527
+ {
528
+ "path": "vae/diffusion_pytorch_model.safetensors",
529
+ "size": 1350989512,
530
+ "sha256": "a07a1b7c4ee2966a1b3bdc37de9b4f983d56937e46619f709a80b6e490675417"
531
+ }
532
+ ]
Notice ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved.
2
+
3
+ Built with Qwen
4
+ Independent derivative: Image21-INT8, by ixim / iximbox.
5
+ Modified files: transformer and text_encoder weight shards, shard indexes and config.json files. Eligible linear weights converted to bitsandbytes INT8; floating-point exceptions are documented in component quantization reports.
6
+ VAE, scheduler and processor retained from the pinned upstream snapshot.
PUBLISHING.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 发布步骤
2
+
3
+ 以下命令可发布或续传已验证的本地发布包;平台上的实际提交是发布完成的依据。
4
+
5
+ - Hugging Face:`release/huggingface`,英文 model card,目标 `ixim/Image21-INT8`。
6
+ - ModelScope:`release/modelscope`,中文 model card,目标 `iximbox/Image21-INT8`。
7
+ - ModelScope SDK 登录与网页登录分开;上传需要有效 API cookies 或 SDK Token。
8
+ - Hugging Face 已核验项目缓存中的登录账号为 `ixim`。
9
+
10
+ 请在 **D:/Git/Qwen-Image-2.1** 打开 PowerShell。以下操作不需要把 Token 发给聊天。
11
+
12
+ ## Hugging Face
13
+
14
+ ```powershell
15
+ $env:HF_HOME = "$PWD/.cache/huggingface"
16
+ .venv/Scripts/hf.exe auth login
17
+ .venv/Scripts/python.exe -m scripts.upload huggingface
18
+ ```
19
+
20
+ 使用 `ixim` 账号的写权限 Token。脚本会检查实际登录账号、校验所有发布文件,
21
+ 创建公开模型仓库并上传。完成后查看:
22
+ https://huggingface.co/ixim/Image21-INT8
23
+
24
+ 本机已完成登录时,无需重复 `auth login`;请保留项目 `HF_HOME` 设置后执行上传命令。
25
+
26
+ ## ModelScope
27
+
28
+ ```powershell
29
+ .venv/Scripts/python.exe -c "from getpass import getpass; from modelscope.hub.api import HubApi; HubApi().login(getpass('ModelScope SDK token: '))"
30
+ .venv/Scripts/python.exe -m scripts.upload modelscope
31
+ ```
32
+
33
+ 使用 `iximbox` 账号新取得的 SDK Token(输入不回显)。Git access token 不能替代
34
+ SDK Token。登录后脚本使用 API cookies,检查账号,再创建/上传目标仓库。完成后查看:
35
+ https://modelscope.cn/models/iximbox/Image21-INT8
36
+
37
+ ## 上传前仅校验
38
+
39
+ ```powershell
40
+ .venv/Scripts/python.exe -m scripts.upload huggingface --dry-run
41
+ .venv/Scripts/python.exe -m scripts.upload modelscope --dry-run
42
+ ```
43
+
44
+ 不要上传整个工作区;源 BF16、缓存和登录信息不属于发布包。中断上传后可再次执行
45
+ 对应上传命令。上传脚本不会删除远程文件。
46
+
47
+ 原模型使用 Qwen Research License,发布包已保留协议、归属与修改声明。
48
+ 衍生模型主名称为 Image21-INT8,仅用于非商业研究与评测。
README.md ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: qwen-research
4
+ license_link: LICENSE
5
+ base_model: Qwen/Qwen-Image-2.1
6
+ base_model_relation: quantized
7
+ library_name: diffusers
8
+ pipeline_tag: text-to-image
9
+ language:
10
+ - en
11
+ - zh
12
+ tags:
13
+ - diffusers
14
+ - bitsandbytes
15
+ - int8
16
+ - image-generation
17
+ - image-editing
18
+ - rgba
19
+ ---
20
+
21
+ # Image21-INT8
22
+
23
+ **Built with Qwen.** An independent bitsandbytes INT8 derivative of
24
+ [Qwen-Image-2.1](https://huggingface.co/Qwen/Qwen-Image-2.1), prepared by **ixim**.
25
+ This is a community conversion, not an official Qwen release.
26
+
27
+ ## Quantization
28
+
29
+ Base revision: `b3179ad355be050328e483a9dfdd9e60cd62adfa`.
30
+ Eligible linear layers in the generation transformer and the Qwen3-VL text encoder
31
+ use **bitsandbytes LLM.int8**, with outlier threshold **6.0**. This is mixed-precision
32
+ inference: outlier handling uses floating point; the VAE, normalization, embeddings,
33
+ vision encoder, output head, and excluded conditioning/projection layers remain
34
+ floating point. See the two component quantization JSON files for exact coverage.
35
+ No fine-tuning or calibration dataset was used. This is not a pure W8A8 pipeline,
36
+ FP8 conversion, or GGUF checkpoint. Lower storage does not imply faster inference.
37
+
38
+ ## Installation and loading
39
+
40
+ Use Python 3.13 and a CUDA-capable PyTorch installation. The tested runtime uses
41
+ PyTorch 2.10.0+cu128 on an RTX 5090. Install the accompanying `requirements.txt`;
42
+ it pins Diffusers to the official commit used for this conversion.
43
+
44
+ ```bash
45
+ pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
46
+ pip install -r requirements.txt
47
+ ```
48
+
49
+ ```python
50
+ import torch
51
+ from diffusers import QwenImage21Pipeline
52
+
53
+ pipe = QwenImage21Pipeline.from_pretrained(
54
+ "ixim/Image21-INT8", dtype=torch.bfloat16,
55
+ )
56
+ pipe.enable_model_cpu_offload()
57
+ image = pipe(
58
+ prompt='A neon sign reading "CREATE WITH LIGHT", rainy night',
59
+ width=1024, height=1024, num_inference_steps=40,
60
+ true_cfg_scale=1.0, use_kv_cache=True,
61
+ generator=torch.Generator("cpu").manual_seed(42),
62
+ ).images[0]
63
+ image.save("output.png")
64
+ ```
65
+
66
+ The saved quantization configuration is detected automatically. Do not re-quantize
67
+ these weights at load time. For editing, pass `image=PIL.Image.open("input.png")`.
68
+ For transparency, use the upstream RGBA prompt format and save PNG files.
69
+
70
+ ## Local evaluation
71
+
72
+ 14 paired outputs across 7 cases at 1024×1024 on an RTX 5090.
73
+
74
+ | Metric | BF16 | INT8 |
75
+ |---|---:|---:|
76
+ | Weight files (decimal GB) | 33.116 | 18.632 |
77
+ | Mean call latency (s) | 26.79 | 20.29 |
78
+ | Maximum CUDA allocated memory (GiB) | 19.08 | 23.08 |
79
+
80
+ **Observed trade-off:** weights are smaller and average latency is lower in this
81
+ run, but peak allocated GPU memory is **higher** with the tested INT8/offload stack.
82
+ Do not use this checkpoint as evidence of lower-VRAM operation.
83
+
84
+ **Editing limitation:** both BF16 and INT8 sweater-edit examples show substantial
85
+ oversharpening and contrast changes. Faithful preservation of the original image
86
+ is not established. Both precisions also add unwanted footer text in the inspected
87
+ Chinese poster. See [qualitative observations](evaluation/qualitative.md).
88
+
89
+ The comparison uses identical prompts, CPU random generators, seeds, resolutions,
90
+ 40 denoising steps, CFG=1, KV cache enabled, and model CPU offload. Warmup is excluded.
91
+ Peak allocated/reserved memory are PyTorch CUDA statistics, not total board memory.
92
+ Timing includes prompt encoding, denoising, decoding and CPU transfers; it excludes
93
+ model loading and image-file writing. Paired pixel differences measure drift, not
94
+ semantic quality. This small suite is not a standardized quality ranking.
95
+ BF16 was run first, followed by INT8 on the same Windows desktop GPU; repeated
96
+ timing trials and confidence intervals were not collected.
97
+
98
+ See [evaluation/report.md](evaluation/report.md), raw JSONL records, environment
99
+ records and paired PNG outputs. The edit pair uses the exact same source image.
100
+ Higher resolutions, extensive multi-reference editing, other GPUs, other attention
101
+ backends, and ComfyUI compatibility are not established by this evaluation.
102
+
103
+ ### Evaluation scope and runtime
104
+
105
+ The original suite has 14 pairs; the separate portrait supplement has 2 pairs. All 16 pairs / 32 original PNG images are shown below. Supplementary measurements are kept separate from the original summary average.
106
+
107
+ All previews link to their full-resolution original PNG. Click an image to open it; no crop, retouching or regenerated substitute is used.
108
+
109
+ | Setting | Recorded value |
110
+ |---|---|
111
+ | GPU | NVIDIA GeForce RTX 5090 |
112
+ | Driver / board memory | 616.92 / 32607 MiB |
113
+ | System RAM | 255.5 GiB |
114
+ | OS | Windows-11-10.0.26200-SP0 |
115
+ | Python / CUDA | 3.13.5 / 12.8 |
116
+ | Generation | 1024×1024; 40 steps; CFG 1.0; KV cache enabled |
117
+ | RNG / seeds | CPU torch.Generator; 42, 123 |
118
+ | Offload / attention | model CPU offload / default SDPA |
119
+ | Warmup / order | One excluded full-settings warmup per precision per suite; BF16 then INT8 |
120
+
121
+ | Package | Version |
122
+ |---|---|
123
+ | torch | 2.10.0+cu128 |
124
+ | torchvision | 0.25.0+cu128 |
125
+ | diffusers | 0.41.0.dev0 |
126
+ | transformers | 5.17.0 |
127
+ | accelerate | 1.15.0 |
128
+ | bitsandbytes | 0.50.2 |
129
+ | safetensors | 0.8.0 |
130
+ | huggingface-hub | 1.32.0 |
131
+ | tokenizers | 0.23.2 |
132
+ | numpy | 2.2.6 |
133
+ | pillow | 12.2.0 |
134
+ | psutil | 7.0.0 |
135
+
136
+ ### Supplementary portrait summary
137
+
138
+ | Metric | BF16 | INT8 |
139
+ |---|---:|---:|
140
+ | Mean call latency (s) | 28.51 | 20.16 |
141
+ | Maximum CUDA allocated (GiB) | 16.44 | 22.86 |
142
+
143
+ ### Per-image timing and memory
144
+
145
+ | Case | Seed | BF16 s | INT8 s | BF16 allocated GiB | INT8 allocated GiB |
146
+ |---|---:|---:|---:|---:|---:|
147
+ | Older adult portrait | 42 | 29.77 | 19.65 | 16.40 | 22.86 |
148
+ | Older adult portrait | 123 | 26.55 | 19.61 | 16.40 | 22.86 |
149
+ | English lettering | 42 | 25.95 | 19.42 | 16.41 | 22.86 |
150
+ | English lettering | 123 | 25.88 | 19.40 | 16.41 | 22.86 |
151
+ | Chinese lettering | 42 | 25.47 | 19.54 | 16.41 | 22.86 |
152
+ | Chinese lettering | 123 | 25.85 | 19.86 | 16.41 | 22.86 |
153
+ | Counting and spatial arrangement | 42 | 25.38 | 19.13 | 16.41 | 22.86 |
154
+ | Counting and spatial arrangement | 123 | 25.35 | 19.30 | 16.41 | 22.86 |
155
+ | Feather and branch texture | 42 | 25.85 | 19.22 | 16.40 | 22.86 |
156
+ | Feather and branch texture | 123 | 25.76 | 19.57 | 16.40 | 22.86 |
157
+ | RGBA transparency | 42 | 26.04 | 19.39 | 16.40 | 22.86 |
158
+ | RGBA transparency | 123 | 25.07 | 19.29 | 16.40 | 22.86 |
159
+ | Image editing: sweater recoloring | 42 | 31.16 | 25.40 | 19.08 | 23.08 |
160
+ | Image editing: sweater recoloring | 123 | 31.03 | 25.24 | 19.08 | 23.08 |
161
+ | Young Chinese adult woman portrait (supplement) | 42 | 29.50 | 20.30 | 16.44 | 22.86 |
162
+ | Young Chinese adult woman portrait (supplement) | 123 | 27.53 | 20.03 | 16.44 | 22.86 |
163
+
164
+ ### Pixel drift (not a semantic quality score)
165
+
166
+ RGB MAE and PSNR use a white composite so invisible RGB values in transparent pixels do not dominate the comparison. Alpha MAE is measured separately.
167
+
168
+ | Case | Seed | RGB MAE | RGB PSNR dB | Alpha MAE |
169
+ |---|---:|---:|---:|---:|
170
+ | Older adult portrait | 42 | 0.01341 | 31.70 | 0.000046 |
171
+ | Older adult portrait | 123 | 0.01630 | 30.55 | 0.000180 |
172
+ | English lettering | 42 | 0.02626 | 19.45 | 0.000008 |
173
+ | English lettering | 123 | 0.01180 | 25.83 | 0.000010 |
174
+ | Chinese lettering | 42 | 0.05972 | 15.60 | 0.000108 |
175
+ | Chinese lettering | 123 | 0.02460 | 20.44 | 0.000068 |
176
+ | Counting and spatial arrangement | 42 | 0.02268 | 23.67 | 0.000022 |
177
+ | Counting and spatial arrangement | 123 | 0.01959 | 22.87 | 0.000035 |
178
+ | Feather and branch texture | 42 | 0.06978 | 18.02 | 0.000191 |
179
+ | Feather and branch texture | 123 | 0.01684 | 27.93 | 0.000059 |
180
+ | RGBA transparency | 42 | 0.01829 | 20.89 | 0.011088 |
181
+ | RGBA transparency | 123 | 0.04647 | 17.05 | 0.029543 |
182
+ | Image editing: sweater recoloring | 42 | 0.00971 | 36.48 | 0.000111 |
183
+ | Image editing: sweater recoloring | 123 | 0.00391 | 43.27 | 0.000026 |
184
+ | Young Chinese adult woman portrait (supplement) | 42 | 0.01002 | 31.42 | 0.000121 |
185
+ | Young Chinese adult woman portrait (supplement) | 123 | 0.00631 | 35.94 | 0.000093 |
186
+
187
+ ### Additional memory telemetry
188
+
189
+ Reserved memory is the PyTorch CUDA allocator peak. CPU RSS is the process snapshot after inference, not a peak.
190
+
191
+ | Case | Seed | BF16 reserved GiB | INT8 reserved GiB | BF16 RSS GiB | INT8 RSS GiB |
192
+ |---|---:|---:|---:|---:|---:|
193
+ | Older adult portrait | 42 | 16.58 | 22.91 | 39.33 | 23.17 |
194
+ | Older adult portrait | 123 | 16.58 | 22.91 | 42.59 | 24.06 |
195
+ | English lettering | 42 | 16.58 | 22.91 | 43.68 | 24.25 |
196
+ | English lettering | 123 | 16.58 | 22.91 | 44.81 | 24.37 |
197
+ | Chinese lettering | 42 | 16.59 | 22.91 | 45.28 | 24.50 |
198
+ | Chinese lettering | 123 | 16.59 | 22.91 | 45.83 | 24.48 |
199
+ | Counting and spatial arrangement | 42 | 16.59 | 22.91 | 45.99 | 24.46 |
200
+ | Counting and spatial arrangement | 123 | 16.59 | 22.91 | 46.37 | 25.91 |
201
+ | Feather and branch texture | 42 | 16.58 | 22.91 | 46.50 | 26.13 |
202
+ | Feather and branch texture | 123 | 16.58 | 22.91 | 46.85 | 26.12 |
203
+ | RGBA transparency | 42 | 16.58 | 22.91 | 47.62 | 26.14 |
204
+ | RGBA transparency | 123 | 16.58 | 22.91 | 47.48 | 26.15 |
205
+ | Image editing: sweater recoloring | 42 | 20.03 | 24.62 | 48.08 | 27.16 |
206
+ | Image editing: sweater recoloring | 123 | 20.03 | 24.62 | 48.49 | 27.13 |
207
+ | Young Chinese adult woman portrait (supplement) | 42 | 16.62 | 22.93 | 39.59 | 23.32 |
208
+ | Young Chinese adult woman portrait (supplement) | 123 | 16.62 | 22.93 | 42.12 | 23.91 |
209
+
210
+ ### All paired samples, prompts and observations
211
+
212
+ Left: BF16; right: saved and reloaded INT8. Same prompt and seed within each pair. The original seven-case observations primarily inspect seed 42; both supplementary seeds were inspected. This is not a blinded preference study or an OCR/CLIP/FID score.
213
+
214
+ #### Young Chinese adult woman portrait (supplement)
215
+
216
+ Exact measured prompt:
217
+
218
+ ```text
219
+ 一张写实摄影风格的中国年轻成年女性肖像,人物明确为25岁成年人。黑色及肩直发,穿着米白色圆领针织衫,胸部以上构图,正面看向镜头,神情自然放松,轻微微笑。窗边柔和的自然日光,浅灰色简洁背景,真实自然的皮肤纹理和少量雀斑,淡妆,不过度磨皮。85mm人像摄影,浅景深,色彩自然,画面中没有文字。
220
+ ```
221
+
222
+ Both seeds retain the broad framing, clothing and window lighting. Expression, facial contours, skin texture and individual hair strands change. No obvious large facial distortion was seen in these four outputs; this is not an identity-preservation score.
223
+
224
+ **Seed 42**
225
+
226
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
227
+ |---|---|
228
+ | [![Young Chinese adult woman portrait (supplement) · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/bf16/young_chinese_woman-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/bf16/young_chinese_woman-s42.png) | [![Young Chinese adult woman portrait (supplement) · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/int8/young_chinese_woman-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/int8/young_chinese_woman-s42.png) |
229
+
230
+ SHA256 prefixes: BF16 `00716ad4721f` / INT8 `5ffeb0f35bf0`.
231
+
232
+ **Seed 123**
233
+
234
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
235
+ |---|---|
236
+ | [![Young Chinese adult woman portrait (supplement) · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/bf16/young_chinese_woman-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/bf16/young_chinese_woman-s123.png) | [![Young Chinese adult woman portrait (supplement) · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/int8/young_chinese_woman-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/young_woman/int8/young_chinese_woman-s123.png) |
237
+
238
+ SHA256 prefixes: BF16 `a2f28b40c897` / INT8 `350e800c857e`.
239
+
240
+ #### Older adult portrait
241
+
242
+ Exact measured prompt:
243
+
244
+ ```text
245
+ A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.
246
+ ```
247
+
248
+ Both depict the requested older woman, blue sweater and window. Face shape, wrinkles, framing and fabric details shift.
249
+
250
+ **Seed 42**
251
+
252
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
253
+ |---|---|
254
+ | [![Older adult portrait · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/portrait-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/portrait-s42.png) | [![Older adult portrait · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/portrait-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/portrait-s42.png) |
255
+
256
+ SHA256 prefixes: BF16 `01e37e178fb0` / INT8 `e37187a2530d`.
257
+
258
+ **Seed 123**
259
+
260
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
261
+ |---|---|
262
+ | [![Older adult portrait · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/portrait-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/portrait-s123.png) | [![Older adult portrait · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/portrait-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/portrait-s123.png) |
263
+
264
+ SHA256 prefixes: BF16 `cff376e50c41` / INT8 `09391672b7aa`.
265
+
266
+ #### English lettering
267
+
268
+ Exact measured prompt:
269
+
270
+ ```text
271
+ A clean editorial poster with a deep blue background. Large exact headline at the top: "CREATE WITH LIGHT". Smaller exact subtitle: "September 2026". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.
272
+ ```
273
+
274
+ Both inspected outputs visibly render CREATE WITH LIGHT and September 2026. Layout and desk objects differ.
275
+
276
+ **Seed 42**
277
+
278
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
279
+ |---|---|
280
+ | [![English lettering · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/english_text-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/english_text-s42.png) | [![English lettering · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/english_text-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/english_text-s42.png) |
281
+
282
+ SHA256 prefixes: BF16 `ba31b0c8a312` / INT8 `98ea66acd842`.
283
+
284
+ **Seed 123**
285
+
286
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
287
+ |---|---|
288
+ | [![English lettering · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/english_text-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/english_text-s123.png) | [![English lettering · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/english_text-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/english_text-s123.png) |
289
+
290
+ SHA256 prefixes: BF16 `cf5e76dee9f0` / INT8 `b55551e7c179`.
291
+
292
+ #### Chinese lettering
293
+
294
+ Exact measured prompt:
295
+
296
+ ```text
297
+ 设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。
298
+ ```
299
+
300
+ Both inspected outputs render the requested main title and subtitle, but also add unwanted, partly nonsensical footer text despite the no-extra-text instruction.
301
+
302
+ **Seed 42**
303
+
304
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
305
+ |---|---|
306
+ | [![Chinese lettering · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/chinese_text-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/chinese_text-s42.png) | [![Chinese lettering · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/chinese_text-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/chinese_text-s42.png) |
307
+
308
+ SHA256 prefixes: BF16 `7082cb71d997` / INT8 `dce2de1e3b8b`.
309
+
310
+ **Seed 123**
311
+
312
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
313
+ |---|---|
314
+ | [![Chinese lettering · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/chinese_text-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/chinese_text-s123.png) | [![Chinese lettering · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/chinese_text-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/chinese_text-s123.png) |
315
+
316
+ SHA256 prefixes: BF16 `eae74256d7ed` / INT8 `7ff8508a9454`.
317
+
318
+ #### Counting and spatial arrangement
319
+
320
+ Exact measured prompt:
321
+
322
+ ```text
323
+ A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.
324
+ ```
325
+
326
+ Both show three cups in red/blue/yellow order and one green apple in front of the blue cup. Object sizes and spacing differ.
327
+
328
+ **Seed 42**
329
+
330
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
331
+ |---|---|
332
+ | [![Counting and spatial arrangement · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/composition-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/composition-s42.png) | [![Counting and spatial arrangement · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/composition-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/composition-s42.png) |
333
+
334
+ SHA256 prefixes: BF16 `91e967685fbb` / INT8 `5704252c99e7`.
335
+
336
+ **Seed 123**
337
+
338
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
339
+ |---|---|
340
+ | [![Counting and spatial arrangement · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/composition-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/composition-s123.png) | [![Counting and spatial arrangement · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/composition-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/composition-s123.png) |
341
+
342
+ SHA256 prefixes: BF16 `bc11612f260a` / INT8 `c030c007a9c3`.
343
+
344
+ #### Feather and branch texture
345
+
346
+ Exact measured prompt:
347
+
348
+ ```text
349
+ Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.
350
+ ```
351
+
352
+ Both depict a plausible kingfisher; head angle, branch orientation and feather texture differ. Pixel drift alone does not establish worse semantic quality.
353
+
354
+ **Seed 42**
355
+
356
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
357
+ |---|---|
358
+ | [![Feather and branch texture · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/texture-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/texture-s42.png) | [![Feather and branch texture · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/texture-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/texture-s42.png) |
359
+
360
+ SHA256 prefixes: BF16 `40a0f73bb407` / INT8 `37042d165914`.
361
+
362
+ **Seed 123**
363
+
364
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
365
+ |---|---|
366
+ | [![Feather and branch texture · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/texture-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/texture-s123.png) | [![Feather and branch texture · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/texture-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/texture-s123.png) |
367
+
368
+ SHA256 prefixes: BF16 `18c4403f388d` / INT8 `82fc88d5ab3c`.
369
+
370
+ #### RGBA transparency
371
+
372
+ Exact measured prompt:
373
+
374
+ ```text
375
+ This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.
376
+ ```
377
+
378
+ Both have a real varying alpha channel and a white sticker outline. Sampled background alpha is 0–1/255 and the subject is opaque. Page background colors are not part of the PNG; click through to inspect the original RGBA file.
379
+
380
+ **Seed 42**
381
+
382
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
383
+ |---|---|
384
+ | [![RGBA transparency · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/rgba-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/rgba-s42.png) | [![RGBA transparency · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/rgba-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/rgba-s42.png) |
385
+
386
+ SHA256 prefixes: BF16 `6f5dfea6ba02` / INT8 `8624d495fe40`.
387
+
388
+ **Seed 123**
389
+
390
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
391
+ |---|---|
392
+ | [![RGBA transparency · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/rgba-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/rgba-s123.png) | [![RGBA transparency · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/rgba-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/rgba-s123.png) |
393
+
394
+ SHA256 prefixes: BF16 `6f1abbb1a64a` / INT8 `4871aab8f9d4`.
395
+
396
+ #### Image editing: sweater recoloring
397
+
398
+ Exact measured prompt:
399
+
400
+ ```text
401
+ Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.
402
+ ```
403
+
404
+ Both shift the sweater toward red/burgundy, but both also show conspicuous oversharpening and contrast/texture changes across the image. Faithful preservation of lighting and skin texture is not achieved. The cause is not identified or attributed specifically to INT8.
405
+
406
+ Both variants use [this identical BF16 portrait input](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/portrait-s42.png).
407
+
408
+ **Seed 42**
409
+
410
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
411
+ |---|---|
412
+ | [![Image editing: sweater recoloring · BF16 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/edit-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/edit-s42.png) | [![Image editing: sweater recoloring · INT8 · seed 42](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/edit-s42.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/edit-s42.png) |
413
+
414
+ SHA256 prefixes: BF16 `8713f6ef2ec0` / INT8 `79725e243ccf`.
415
+
416
+ **Seed 123**
417
+
418
+ | BF16 · Click to open original PNG | INT8 · Click to open original PNG |
419
+ |---|---|
420
+ | [![Image editing: sweater recoloring · BF16 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/edit-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/bf16/edit-s123.png) | [![Image editing: sweater recoloring · INT8 · seed 123](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/edit-s123.png)](https://huggingface.co/ixim/Image21-INT8/resolve/main/evaluation/int8/edit-s123.png) |
421
+
422
+ SHA256 prefixes: BF16 `7d00c5bb7a2b` / INT8 `d8023e34ba10`.
423
+
424
+ ### Machine-readable evidence
425
+
426
+ The measured data and all images above are embedded in this card. Original files remain available for independent checking:
427
+
428
+ - [Core CSV](evaluation/comparison.csv) · [Portrait CSV](evaluation/young_woman/comparison.csv)
429
+ - [Core BF16 JSONL](evaluation/bf16/records.jsonl) · [Core INT8 JSONL](evaluation/int8/records.jsonl)
430
+ - [Portrait BF16 JSONL](evaluation/young_woman/bf16/records.jsonl) · [Portrait INT8 JSONL](evaluation/young_woman/int8/records.jsonl)
431
+ - [Core environment](evaluation/bf16/environment.json) · [INT8 environment](evaluation/int8/environment.json)
432
+ - [File checksums](MANIFEST.json) · [Quantization provenance](conversion.json)
433
+
434
+
435
+ ## License and modifications
436
+
437
+ The weights remain subject to the [Qwen Research License Agreement](LICENSE):
438
+ non-commercial research and evaluation only; commercial use requires a separate
439
+ license from the original licensor. Redistribution must preserve that agreement,
440
+ attribution and modification notices. See [Notice](Notice) and [CHANGES.md](CHANGES.md).
441
+
442
+ Source: [Hugging Face](https://huggingface.co/Qwen/Qwen-Image-2.1) |
443
+ [ModelScope](https://modelscope.cn/models/Qwen/Qwen-Image-2.1).
REPRODUCE.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Image21-INT8 发布工作区
2
+
3
+ 目标:为 Qwen-Image-2.1 制作可重新加载的 Diffusers INT8 衍生模型,比较 BF16 与
4
+ INT8 实际效果,并准备 Hugging Face(ixim)英文、ModelScope(iximbox)中文发布包。
5
+
6
+ 本地下载、量化和原有 28 张正式评测输出已完成;另增加四张中国年轻成年女性肖像
7
+ 补测输出。两平台目标名称统一为 Image21-INT8。Hugging Face 登录账号已核验为 ixim。
8
+ 最新上传状态及 ModelScope 本地登录方法见 [PUBLISHING.md](PUBLISHING.md)。
9
+
10
+ 工作区内的 `cards/` 是模板,
11
+ `release/` 中通过验证的目录才是上传来源;没有实测记录时不能宣称发布完成。
12
+
13
+ 主名称使用 **Image21-INT8**,模型说明中描述其 Qwen-Image-2.1 来源。
14
+ 原模型采用 Qwen Research License,仅限非商业研究与评测。
15
+
16
+ ## 环境
17
+
18
+ Windows PowerShell,新机器建议创建不继承全局软件包的虚拟环境:
19
+
20
+ ```powershell
21
+ python -m venv .venv
22
+ .venv/Scripts/python.exe -m pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
23
+ .venv/Scripts/python.exe -m pip install -r requirements.txt
24
+ ```
25
+
26
+ 本次工作区为复用已有 CUDA PyTorch,使用了 `--system-site-packages`;更新仅安装
27
+ 在 `.venv` 内。脚本将 Numba 和 Hugging Face 缓存定向到项目 `.cache`。
28
+ RTX 5090 可通过模型 CPU 卸载运行;精确显存需求以实测报告为准。
29
+
30
+ ## 下载、量化、测评
31
+
32
+ 在工作区根目录执行:
33
+
34
+ ```powershell
35
+ .venv/Scripts/python.exe -m scripts.download --source modelscope
36
+ .venv/Scripts/python.exe -m scripts.integrity
37
+ .venv/Scripts/python.exe -m scripts.quantize
38
+ .venv/Scripts/python.exe -m scripts.benchmark --model models/bf16 --output artifacts/eval/bf16
39
+ .venv/Scripts/python.exe -m scripts.benchmark --model models/int8 --output artifacts/eval/int8
40
+ ```
41
+
42
+ 下载固定版本配置,ModelScope 权重按固定 HF 版本 SHA256 核验。下载不使用第三方镜像。
43
+ 量化保留敏感层和 VAE 浮点精度,具体模块记录在 `*-quantization.json`。
44
+
45
+ 日常本地生成:
46
+
47
+ ```powershell
48
+ .venv/Scripts/python.exe -m scripts.infer --model models/int8 --prompt '一只坐在窗边的橘猫,暖色摄影' --output outputs/cat.png
49
+ ```
50
+
51
+ 编辑时增加 `--input input.png`;多图可在该参数后继续添加文件名。
52
+ 默认 1024×1024、40 步、CPU 卸载,PNG 保留 RGBA 通道。
53
+
54
+ 输出目录非空时量化拒绝覆盖;测评结果目录已有记录时拒绝覆盖。
55
+ 编辑用例输入取自 BF16 的 portrait-s42,因此必须先完成 BF16 测评。
56
+ 默认 1024×1024、40 步、种子 42/123、相同卸载方式,另做一次不计入的完整预热。
57
+
58
+ 肖像补测单独运行、单独统计,同样先完成 BF16 再运行 INT8:
59
+
60
+ ```powershell
61
+ .venv/Scripts/python.exe -m scripts.benchmark --model models/bf16 --output artifacts/eval/young_woman/bf16 --cases benchmarks/young_woman.json
62
+ .venv/Scripts/python.exe -m scripts.benchmark --model models/int8 --output artifacts/eval/young_woman/int8 --cases benchmarks/young_woman.json
63
+ .venv/Scripts/python.exe -m scripts.report --baseline artifacts/eval/young_woman/bf16 --quantized artifacts/eval/young_woman/int8 --output artifacts/eval/young_woman
64
+ ```
65
+
66
+ 快速端到端检查(不能作为质量评测):
67
+
68
+ ```powershell
69
+ .venv/Scripts/python.exe -m scripts.benchmark --model models/bf16 --output artifacts/smoke/bf16 --case portrait --seeds 42 --width 512 --height 512 --steps 2 --no-warmup
70
+ ```
71
+
72
+ ## 校验
73
+
74
+ ```powershell
75
+ .venv/Scripts/python.exe -m unittest discover -s tests -v
76
+ $env:NUMBA_CACHE_DIR = "$PWD/.cache/numba"
77
+ .venv/Scripts/python.exe -m tests.gpu_roundtrip
78
+ ```
79
+
80
+ 保留 `artifacts/upstream` 官方清单及许可证、下载校验记录、评测原始记录和图片。
81
+ 不要将 `.cache`、`.venv`、账户 Token 或 BF16 源模型目录上传到 INT8 仓库。
82
+
83
+ ## 生成发布文件与上传
84
+
85
+ ```powershell
86
+ .venv/Scripts/python.exe -m scripts.release annotate
87
+ .venv/Scripts/python.exe -m scripts.report
88
+ .venv/Scripts/python.exe -m scripts.release stage --platform huggingface --output release/huggingface
89
+ .venv/Scripts/python.exe -m scripts.release stage --platform modelscope --output release/modelscope
90
+ .venv/Scripts/python.exe -m scripts.upload huggingface --dry-run
91
+ .venv/Scripts/python.exe -m scripts.upload modelscope --dry-run
92
+ ```
93
+
94
+ `annotate` 在量化文件中写入许可证要求的修改声明;建议在 INT8 实测前执行。
95
+ `stage` 要求完整正式评测,生成平台 README、许可证、归属、脚本、评测图片及逐文件清单。
96
+ 上传前会再次核验全部文件,不上传清单外内容。最终效果可打开
97
+ `artifacts/eval/comparison.html` 逐图检查。
98
+
99
+ Hugging Face 在本机交互登录(Token 不要粘贴到聊天):
100
+
101
+ ```powershell
102
+ $env:HF_HOME = "$PWD/.cache/huggingface"
103
+ .venv/Scripts/hf.exe auth login
104
+ .venv/Scripts/python.exe -m scripts.upload huggingface
105
+ ```
106
+
107
+ ModelScope 使用已登录账号。需要登录时,以下交互式 Python 输入不回显,
108
+ 也不会把 Token 放入命令历史:
109
+
110
+ ```powershell
111
+ .venv/Scripts/python.exe -c "from getpass import getpass; from modelscope.hub.api import HubApi; HubApi().login(getpass('ModelScope token: '))"
112
+ .venv/Scripts/python.exe -m scripts.upload modelscope
113
+ ```
benchmarks/cases.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {"id":"portrait","category":"portrait","prompt":"A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition."},
3
+ {"id":"english_text","category":"typography_en","prompt":"A clean editorial poster with a deep blue background. Large exact headline at the top: \"CREATE WITH LIGHT\". Smaller exact subtitle: \"September 2026\". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text."},
4
+ {"id":"chinese_text","category":"typography_zh","prompt":"设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。"},
5
+ {"id":"composition","category":"spatial_counting","prompt":"A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text."},
6
+ {"id":"texture","category":"texture","prompt":"Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures."},
7
+ {"id":"rgba","category":"transparency","prompt":"This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent."},
8
+ {"id":"edit","category":"image_editing","prompt":"Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.","input":"artifacts/eval/bf16/portrait-s42.png"}
9
+ ]
benchmarks/young_woman.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "young_chinese_woman",
4
+ "category": "adult_portrait",
5
+ "prompt": "一张写实摄影风格的中国年轻成年女性肖像,人物明确为25岁成年人。黑色及肩直发,穿着米白色圆领针织衫,胸部以上构图,正面看向镜头,神情自然放松,轻微微笑。窗边柔和的自然日光,浅灰色简洁背景,真实自然的皮肤纹理和少量雀斑,淡妆,不过度磨皮。85mm人像摄影,浅景深,色彩自然,画面中没有文字。"
6
+ }
7
+ ]
cards/huggingface.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: qwen-research
4
+ license_link: LICENSE
5
+ base_model: Qwen/Qwen-Image-2.1
6
+ base_model_relation: quantized
7
+ library_name: diffusers
8
+ pipeline_tag: text-to-image
9
+ language:
10
+ - en
11
+ - zh
12
+ tags:
13
+ - diffusers
14
+ - bitsandbytes
15
+ - int8
16
+ - image-generation
17
+ - image-editing
18
+ - rgba
19
+ ---
20
+
21
+ # Image21-INT8
22
+
23
+ **Built with Qwen.** An independent bitsandbytes INT8 derivative of
24
+ [Qwen-Image-2.1](https://huggingface.co/Qwen/Qwen-Image-2.1), prepared by **ixim**.
25
+ This is a community conversion, not an official Qwen release.
26
+
27
+ ## Quantization
28
+
29
+ Base revision: `b3179ad355be050328e483a9dfdd9e60cd62adfa`.
30
+ Eligible linear layers in the generation transformer and the Qwen3-VL text encoder
31
+ use **bitsandbytes LLM.int8**, with outlier threshold **6.0**. This is mixed-precision
32
+ inference: outlier handling uses floating point; the VAE, normalization, embeddings,
33
+ vision encoder, output head, and excluded conditioning/projection layers remain
34
+ floating point. See the two component quantization JSON files for exact coverage.
35
+ No fine-tuning or calibration dataset was used. This is not a pure W8A8 pipeline,
36
+ FP8 conversion, or GGUF checkpoint. Lower storage does not imply faster inference.
37
+
38
+ ## Installation and loading
39
+
40
+ Use Python 3.13 and a CUDA-capable PyTorch installation. The tested runtime uses
41
+ PyTorch 2.10.0+cu128 on an RTX 5090. Install the accompanying `requirements.txt`;
42
+ it pins Diffusers to the official commit used for this conversion.
43
+
44
+ ```bash
45
+ pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
46
+ pip install -r requirements.txt
47
+ ```
48
+
49
+ ```python
50
+ import torch
51
+ from diffusers import QwenImage21Pipeline
52
+
53
+ pipe = QwenImage21Pipeline.from_pretrained(
54
+ "ixim/Image21-INT8", dtype=torch.bfloat16,
55
+ )
56
+ pipe.enable_model_cpu_offload()
57
+ image = pipe(
58
+ prompt='A neon sign reading "CREATE WITH LIGHT", rainy night',
59
+ width=1024, height=1024, num_inference_steps=40,
60
+ true_cfg_scale=1.0, use_kv_cache=True,
61
+ generator=torch.Generator("cpu").manual_seed(42),
62
+ ).images[0]
63
+ image.save("output.png")
64
+ ```
65
+
66
+ The saved quantization configuration is detected automatically. Do not re-quantize
67
+ these weights at load time. For editing, pass `image=PIL.Image.open("input.png")`.
68
+ For transparency, use the upstream RGBA prompt format and save PNG files.
69
+
70
+ ## Local evaluation
71
+
72
+ {{EVALUATION_EN}}
73
+
74
+ **Observed trade-off:** weights are smaller and average latency is lower in this
75
+ run, but peak allocated GPU memory is **higher** with the tested INT8/offload stack.
76
+ Do not use this checkpoint as evidence of lower-VRAM operation.
77
+
78
+ **Editing limitation:** both BF16 and INT8 sweater-edit examples show substantial
79
+ oversharpening and contrast changes. Faithful preservation of the original image
80
+ is not established. Both precisions also add unwanted footer text in the inspected
81
+ Chinese poster. See [qualitative observations](evaluation/qualitative.md).
82
+
83
+ The comparison uses identical prompts, CPU random generators, seeds, resolutions,
84
+ 40 denoising steps, CFG=1, KV cache enabled, and model CPU offload. Warmup is excluded.
85
+ Peak allocated/reserved memory are PyTorch CUDA statistics, not total board memory.
86
+ Timing includes prompt encoding, denoising, decoding and CPU transfers; it excludes
87
+ model loading and image-file writing. Paired pixel differences measure drift, not
88
+ semantic quality. This small suite is not a standardized quality ranking.
89
+ BF16 was run first, followed by INT8 on the same Windows desktop GPU; repeated
90
+ timing trials and confidence intervals were not collected.
91
+
92
+ See [evaluation/report.md](evaluation/report.md), raw JSONL records, environment
93
+ records and paired PNG outputs. The edit pair uses the exact same source image.
94
+ Higher resolutions, extensive multi-reference editing, other GPUs, other attention
95
+ backends, and ComfyUI compatibility are not established by this evaluation.
96
+
97
+ {{EVALUATION_DETAILS_EN}}
98
+
99
+ ## License and modifications
100
+
101
+ The weights remain subject to the [Qwen Research License Agreement](LICENSE):
102
+ non-commercial research and evaluation only; commercial use requires a separate
103
+ license from the original licensor. Redistribution must preserve that agreement,
104
+ attribution and modification notices. See [Notice](Notice) and [CHANGES.md](CHANGES.md).
105
+
106
+ Source: [Hugging Face](https://huggingface.co/Qwen/Qwen-Image-2.1) |
107
+ [ModelScope](https://modelscope.cn/models/Qwen/Qwen-Image-2.1).
cards/modelscope.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: qwen-research
4
+ license_link: LICENSE
5
+ base_model: Qwen/Qwen-Image-2.1
6
+ base_model_relation: quantized
7
+ library_name: diffusers
8
+ pipeline_tag: text-to-image
9
+ language:
10
+ - zh
11
+ - en
12
+ tags:
13
+ - diffusers
14
+ - bitsandbytes
15
+ - int8
16
+ - image-generation
17
+ - image-editing
18
+ - rgba
19
+ ---
20
+
21
+ # Image21-INT8
22
+
23
+ **Built with Qwen。** 由 **iximbox** 制作的
24
+ [Qwen-Image-2.1](https://modelscope.cn/models/Qwen/Qwen-Image-2.1)
25
+ 社区 INT8 量化衍生版本,面向 Diffusers / Python 推理,不属于 Qwen 官方发布。
26
+
27
+ ## 量化说明
28
+
29
+ 基模型固定版本:`b3179ad355be050328e483a9dfdd9e60cd62adfa`(Hugging Face)。
30
+ 两平台官方权重经过 SHA256 一致性核验。
31
+
32
+ 生成 Transformer 与 Qwen3-VL 文本编码器中适用的线性层采用
33
+ **bitsandbytes LLM.int8**,离群值阈值为 **6.0**。这属于混合精度推理:
34
+ 离群值计算使用浮点精度,VAE、归一化、嵌入、视觉编码器、输出头及排除的
35
+ 条件投影层保留浮点精度。具体覆盖范围见两个组件的量化 JSON 报告。
36
+ 未进行微调,无需校准数据集。此模型不是全链路 W8A8、FP8 或 GGUF 模型。
37
+ 体积减小不等于推理加速,速度以实际测评为准。
38
+
39
+ ## 安装与使用
40
+
41
+ 测试环境为 Python 3.13、PyTorch 2.10.0+cu128 和 RTX 5090。
42
+ `requirements.txt` 固定了本次验证使用的官方 Diffusers 提交及主要依赖。
43
+
44
+ ```bash
45
+ pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
46
+ pip install -r requirements.txt
47
+ ```
48
+
49
+ ```python
50
+ import torch
51
+ from modelscope import snapshot_download
52
+ from diffusers import QwenImage21Pipeline
53
+
54
+ model_dir = snapshot_download("iximbox/Image21-INT8")
55
+ pipe = QwenImage21Pipeline.from_pretrained(model_dir, dtype=torch.bfloat16)
56
+ pipe.enable_model_cpu_offload()
57
+ image = pipe(
58
+ prompt='一张咖啡馆海报,清晰写着“慢下来,喝杯咖啡”,暖色摄影',
59
+ width=1024, height=1024, num_inference_steps=40,
60
+ true_cfg_scale=1.0, use_kv_cache=True,
61
+ generator=torch.Generator("cpu").manual_seed(42),
62
+ ).images[0]
63
+ image.save("output.png")
64
+ ```
65
+
66
+ 加载时会自动读取已保存的量化配置,无需再次指定量化参数。
67
+ 图像编辑可增加 `image=PIL.Image.open("input.png")`。
68
+ 透明图生成使用官方 RGBA 提示词格式,并保存为 PNG 以保留透明通道。
69
+
70
+ ## 实测对比
71
+
72
+ {{EVALUATION_ZH}}
73
+
74
+ **实际取舍:** 本次测试中权重更小、平均耗时更低,但 INT8 搭配当前卸载方案的
75
+ 已分配显存峰值**更高**。不能据此宣称本版本适用于更低显存设备。
76
+
77
+ **编辑限制:** BF16 与 INT8 的毛衣改色样例都出现明显过度锐化及对比度变化,
78
+ 未证明能够忠实保持原图质感。所检查的中文海报在两种精度中也均出现了多余页脚文字。
79
+ 详见 [定性检查](evaluation/qualitative.md)。
80
+
81
+ 两组使用相同提示词、CPU 随机数生成器、种子、分辨率、40 步、CFG=1、KV 缓存
82
+ 及按模型 CPU 卸载。预热不计入结果。显存数值为 PyTorch CUDA 分配/保留峰值,
83
+ 不代表显卡总占用。耗时包含编码、去噪、解码及 CPU 传输,不包含加载和图片写盘。
84
+ 像素差异用于观察量化偏移,不能等同于语义质量评分;小样本不能代表标准榜单成绩。
85
+ 测试在同一 Windows 桌面显卡上先运行 BF16,再运行 INT8,未做多轮独立计时或置信区间估计。
86
+
87
+ 详见 [评测报告](evaluation/report.md)、原始 JSONL、环境记录与成对 PNG。
88
+ 编辑测试使用同一份输入图像。更高分辨率、大量多图参考、其他显卡、其他注意力
89
+ 后端及 ComfyUI 兼容性未由本次评测证明。
90
+
91
+ {{EVALUATION_DETAILS_ZH}}
92
+
93
+ ## 许可证与修改声明
94
+
95
+ 权重沿用 [Qwen Research License Agreement](LICENSE),仅用于非商业研究与评测;
96
+ 商业使用需向原许可方另行申请。再分发须保留原协议、归属及修改说明。
97
+ 详见 [Notice](Notice) 和 [CHANGES.md](CHANGES.md)。
98
+
99
+ 原始模型:[ModelScope](https://modelscope.cn/models/Qwen/Qwen-Image-2.1) |
100
+ [Hugging Face](https://huggingface.co/Qwen/Qwen-Image-2.1)。
conversion.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "Qwen/Qwen-Image-2.1",
3
+ "base_revision": "b3179ad355be050328e483a9dfdd9e60cd62adfa",
4
+ "diffusers_commit": "80c7ed262aeffbeb43ef13ae04baeb9b84515a69",
5
+ "method": "bitsandbytes LLM.int8",
6
+ "threshold": 6.0,
7
+ "weight_files": [
8
+ {
9
+ "path": "text_encoder/model-00001-of-00003.safetensors",
10
+ "size": 4999822155,
11
+ "sha256": "9b8ae3bd2a1e4884abc48c659212427bbbae06fb1bc17e7173583704fc0f6bdd"
12
+ },
13
+ {
14
+ "path": "text_encoder/model-00002-of-00003.safetensors",
15
+ "size": 4996432636,
16
+ "sha256": "d28d1a8b3994a43582acc5e2da15ff38b632fae1466f41bc7710d27ec170aa9e"
17
+ },
18
+ {
19
+ "path": "text_encoder/model-00003-of-00003.safetensors",
20
+ "size": 27729689,
21
+ "sha256": "5896ffa9e2b2a52f9d496755fde050306f21c449bd66c2526b40979033c6e244"
22
+ },
23
+ {
24
+ "path": "transformer/diffusion_pytorch_model-00001-of-00002.safetensors",
25
+ "size": 4989447305,
26
+ "sha256": "0d77daaa3129860f026567e0178fec4ed776f3cf2463da76a0823b9c381c3468"
27
+ },
28
+ {
29
+ "path": "transformer/diffusion_pytorch_model-00002-of-00002.safetensors",
30
+ "size": 2267331623,
31
+ "sha256": "5e1b8ee3917833687adb662830438dc612ace2cf4bff7b8898515184a888fde1"
32
+ },
33
+ {
34
+ "path": "vae/diffusion_pytorch_model.safetensors",
35
+ "size": 1350989512,
36
+ "sha256": "a07a1b7c4ee2966a1b3bdc37de9b4f983d56937e46619f709a80b6e490675417"
37
+ }
38
+ ]
39
+ }
evaluation/bf16/chinese_text-s123.png ADDED

Git LFS Details

  • SHA256: eae74256d7ed1b3519d39c7d58961cf7a937224d19a3c3239ca7eba4178edf49
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
evaluation/bf16/chinese_text-s42.png ADDED

Git LFS Details

  • SHA256: 7082cb71d99705bc42e27e2c206b13e3beb9e62cfd6304cfabe203b82641692c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
evaluation/bf16/composition-s123.png ADDED

Git LFS Details

  • SHA256: bc11612f260acd8af0d834f3b28c752cefd0437d24c9a01dae0d46647bdf29ae
  • Pointer size: 132 Bytes
  • Size of remote file: 1.22 MB
evaluation/bf16/composition-s42.png ADDED

Git LFS Details

  • SHA256: 91e967685fbbd79ba13daece22a0f72c863cb518db88d5d2a6f9aecfc5f292b1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
evaluation/bf16/edit-s123.png ADDED

Git LFS Details

  • SHA256: 7d00c5bb7a2b31f05ea3fcf3f4a79dd93335770fe1b2d0ad772d5df954c9f91c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.8 MB
evaluation/bf16/edit-s42.png ADDED

Git LFS Details

  • SHA256: 8713f6ef2ec0191d88225f2515671d6f51be43aa293bb1ca6e25b07a1b67deb9
  • Pointer size: 132 Bytes
  • Size of remote file: 2.27 MB
evaluation/bf16/english_text-s123.png ADDED

Git LFS Details

  • SHA256: cf5e76dee9f0e403ebdf24a64e1fcd604ee2b6c8e645a032fba2807acc34adf2
  • Pointer size: 131 Bytes
  • Size of remote file: 905 kB
evaluation/bf16/english_text-s42.png ADDED

Git LFS Details

  • SHA256: ba31b0c8a312e96408096566013c667b3a32bd7720749ca47120960b17b41ca6
  • Pointer size: 131 Bytes
  • Size of remote file: 969 kB
evaluation/bf16/environment.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python": "3.13.5",
3
+ "platform": "Windows-11-10.0.26200-SP0",
4
+ "gpu": "NVIDIA GeForce RTX 5090",
5
+ "cuda": "12.8",
6
+ "packages": {
7
+ "torch": "2.10.0+cu128",
8
+ "torchvision": "0.25.0+cu128",
9
+ "diffusers": "0.41.0.dev0",
10
+ "transformers": "5.17.0",
11
+ "accelerate": "1.15.0",
12
+ "bitsandbytes": "0.50.2",
13
+ "safetensors": "0.8.0",
14
+ "huggingface-hub": "1.32.0",
15
+ "tokenizers": "0.23.2",
16
+ "numpy": "2.2.6",
17
+ "pillow": "12.2.0",
18
+ "psutil": "7.0.0"
19
+ },
20
+ "model": "D:\\Git\\Qwen-Image-2.1\\models\\bf16",
21
+ "load_seconds": 10.8723844000001,
22
+ "load_peak_allocated_bytes": 0,
23
+ "offload": "model",
24
+ "warmup": true,
25
+ "generator_device": "cpu",
26
+ "cases_sha256": "2663ee3d489e1eb136e02b083963b8622146fc65ac301d6acc5a6aab21e63356",
27
+ "model_identity": {
28
+ "kind": "bf16",
29
+ "base_revision": "b3179ad355be050328e483a9dfdd9e60cd62adfa",
30
+ "files": [
31
+ {
32
+ "path": "model_index.json",
33
+ "sha256": "cf1ecd104ea090855d60d8cec0895c1e9d6ee41b2f87e231b678beecd1cf7809",
34
+ "size": 447
35
+ },
36
+ {
37
+ "path": "processor/added_tokens.json",
38
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680",
39
+ "size": 707
40
+ },
41
+ {
42
+ "path": "processor/chat_template.jinja",
43
+ "sha256": "3636d0f0bd6bef02654cdffdc447b79cb2cef8ab02cc75267345946291a489e4",
44
+ "size": 5292
45
+ },
46
+ {
47
+ "path": "processor/merges.txt",
48
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5",
49
+ "size": 1671853
50
+ },
51
+ {
52
+ "path": "processor/preprocessor_config.json",
53
+ "sha256": "93585062a80db5e8ca038efc7726a3e6411d9db948472d81d63c6303993be8c5",
54
+ "size": 782
55
+ },
56
+ {
57
+ "path": "processor/special_tokens_map.json",
58
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd",
59
+ "size": 613
60
+ },
61
+ {
62
+ "path": "processor/tokenizer.json",
63
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4",
64
+ "size": 11422654
65
+ },
66
+ {
67
+ "path": "processor/tokenizer_config.json",
68
+ "sha256": "81ec7bb9530159b326c0bef1d0b6c33d392090524014ea3f0123a3c1eb9c2af5",
69
+ "size": 5445
70
+ },
71
+ {
72
+ "path": "processor/video_preprocessor_config.json",
73
+ "sha256": "59c5c9eb52182eb14c06ffb10ca9effd29adce5f238a95de23ca14a38dbd2cb1",
74
+ "size": 817
75
+ },
76
+ {
77
+ "path": "processor/vocab.json",
78
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910",
79
+ "size": 2776833
80
+ },
81
+ {
82
+ "path": "scheduler/scheduler_config.json",
83
+ "sha256": "5895f3a167c14a967fe9ac70c64924ae5acc79799e0679fd12907e594a713cd1",
84
+ "size": 485
85
+ },
86
+ {
87
+ "path": "text_encoder/config.json",
88
+ "sha256": "6001331949f7f86ab6d791a80b12246d4f8da5159fa08c3e62368a39f36d63a9",
89
+ "size": 1517
90
+ },
91
+ {
92
+ "path": "text_encoder/generation_config.json",
93
+ "sha256": "4d9818c3d27895c0058828a5f68bc7a4de80c3ae1bcdac90936ce24178063f59",
94
+ "size": 213
95
+ },
96
+ {
97
+ "path": "text_encoder/model-00001-of-00004.safetensors",
98
+ "size": 4998056552,
99
+ "sha256": "dde00291b5f7fb92013895310a3da0ddba78674df9f10d505d375243dc01fc6f"
100
+ },
101
+ {
102
+ "path": "text_encoder/model-00002-of-00004.safetensors",
103
+ "size": 4915962464,
104
+ "sha256": "9047faccc0a6d98496a52d55f27be1c94a9c259d1e283fbea0128d054a948d42"
105
+ },
106
+ {
107
+ "path": "text_encoder/model-00003-of-00004.safetensors",
108
+ "size": 4915962496,
109
+ "sha256": "8c54187654c0176b73ae73785bf791dc9a14c9df7fb4310083a09d42048cb57e"
110
+ },
111
+ {
112
+ "path": "text_encoder/model-00004-of-00004.safetensors",
113
+ "size": 2704357976,
114
+ "sha256": "5311532aaaeae3259eb6a7b2c600636be1159adf7ded35f53579f7d0e7d43cdd"
115
+ },
116
+ {
117
+ "path": "text_encoder/model.safetensors.index.json",
118
+ "sha256": "859146bff8db1d617fca8b457a5223edff963bb70076b3645f2189fe0540a147",
119
+ "size": 67795
120
+ },
121
+ {
122
+ "path": "transformer/config.json",
123
+ "sha256": "56ae3281c4e6c2d1aa3658252d187488071815fd79bef15808bb0205fc1a2241",
124
+ "size": 370
125
+ },
126
+ {
127
+ "path": "transformer/diffusion_pytorch_model-00001-of-00002.safetensors",
128
+ "size": 9968332504,
129
+ "sha256": "9e6bc2d641e67bf277895ea8777141044a38f3edb7101bc469b2961dd7c36b4b"
130
+ },
131
+ {
132
+ "path": "transformer/diffusion_pytorch_model-00002-of-00002.safetensors",
133
+ "size": 4261951904,
134
+ "sha256": "3aaf234dcbe128530479735854a346b5e3e66283b7c11db56f836bbd1c13ebaa"
135
+ },
136
+ {
137
+ "path": "transformer/diffusion_pytorch_model.safetensors.index.json",
138
+ "sha256": "17987f6623b1c814d0ef55a137d99142b7b3b040eb1bf241b5575dd35af803a2",
139
+ "size": 30283
140
+ },
141
+ {
142
+ "path": "vae/config.json",
143
+ "sha256": "9785d527b278cb8b210e9f48a8028d92a4190968ce7e24c8fc85d9d1b82f6ba2",
144
+ "size": 2079
145
+ },
146
+ {
147
+ "path": "vae/diffusion_pytorch_model.safetensors",
148
+ "size": 1350989512,
149
+ "sha256": "a07a1b7c4ee2966a1b3bdc37de9b4f983d56937e46619f709a80b6e490675417"
150
+ }
151
+ ],
152
+ "fingerprint": "74c96a68092fdb1f3eed2063bcfba8fd99380ada6234e405e646681f35fb6984"
153
+ },
154
+ "model_identity_origin": "Bound during run to official weight and config manifests independently verified before model loading; file hashes will be rechecked after evaluation."
155
+ }
evaluation/bf16/portrait-s123.png ADDED

Git LFS Details

  • SHA256: cff376e50c41c4aee2b9e4aabc502f4791774f6ad285d8a7673a61ebb1fa650d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.93 MB
evaluation/bf16/portrait-s42.png ADDED

Git LFS Details

  • SHA256: 01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa
  • Pointer size: 132 Bytes
  • Size of remote file: 1.87 MB
evaluation/bf16/records.jsonl ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"case_id": "portrait", "category": "portrait", "prompt": "A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 29.766559700000016, "peak_allocated_bytes": 17611056128, "peak_reserved_bytes": 17800626176, "process_rss_after_bytes": 42226987008, "image": "portrait-s42.png", "image_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 239, "alpha_max": 255, "alpha_nonopaque_fraction": 0.015043258666992188}
2
+ {"case_id": "portrait", "category": "portrait", "prompt": "A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 26.54884089999996, "peak_allocated_bytes": 17611056128, "peak_reserved_bytes": 17800626176, "process_rss_after_bytes": 45726285824, "image": "portrait-s123.png", "image_sha256": "cff376e50c41c4aee2b9e4aabc502f4791774f6ad285d8a7673a61ebb1fa650d", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 252, "alpha_max": 255, "alpha_nonopaque_fraction": 0.07719135284423828}
3
+ {"case_id": "english_text", "category": "typography_en", "prompt": "A clean editorial poster with a deep blue background. Large exact headline at the top: \"CREATE WITH LIGHT\". Smaller exact subtitle: \"September 2026\". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.952576900000167, "peak_allocated_bytes": 17619124224, "peak_reserved_bytes": 17806917632, "process_rss_after_bytes": 46901248000, "image": "english_text-s42.png", "image_sha256": "ba31b0c8a312e96408096566013c667b3a32bd7720749ca47120960b17b41ca6", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 250, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0008878707885742188}
4
+ {"case_id": "english_text", "category": "typography_en", "prompt": "A clean editorial poster with a deep blue background. Large exact headline at the top: \"CREATE WITH LIGHT\". Smaller exact subtitle: \"September 2026\". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.878974200000357, "peak_allocated_bytes": 17619124224, "peak_reserved_bytes": 17806917632, "process_rss_after_bytes": 48110997504, "image": "english_text-s123.png", "image_sha256": "cf5e76dee9f0e403ebdf24a64e1fcd604ee2b6c8e645a032fba2807acc34adf2", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 221, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0014019012451171875}
5
+ {"case_id": "chinese_text", "category": "typography_zh", "prompt": "设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.469736900000044, "peak_allocated_bytes": 17623597568, "peak_reserved_bytes": 17813209088, "process_rss_after_bytes": 48624263168, "image": "chinese_text-s42.png", "image_sha256": "7082cb71d99705bc42e27e2c206b13e3beb9e62cfd6304cfabe203b82641692c", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 245, "alpha_max": 255, "alpha_nonopaque_fraction": 0.017661094665527344}
6
+ {"case_id": "chinese_text", "category": "typography_zh", "prompt": "设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.84774830000015, "peak_allocated_bytes": 17623597568, "peak_reserved_bytes": 17813209088, "process_rss_after_bytes": 49212678144, "image": "chinese_text-s123.png", "image_sha256": "eae74256d7ed1b3519d39c7d58961cf7a937224d19a3c3239ca7eba4178edf49", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 248, "alpha_max": 255, "alpha_nonopaque_fraction": 0.013823509216308594}
7
+ {"case_id": "composition", "category": "spatial_counting", "prompt": "A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.38054239999974, "peak_allocated_bytes": 17621962752, "peak_reserved_bytes": 17813209088, "process_rss_after_bytes": 49377714176, "image": "composition-s42.png", "image_sha256": "91e967685fbbd79ba13daece22a0f72c863cb518db88d5d2a6f9aecfc5f292b1", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 252, "alpha_max": 255, "alpha_nonopaque_fraction": 0.005370140075683594}
8
+ {"case_id": "composition", "category": "spatial_counting", "prompt": "A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.351097499999923, "peak_allocated_bytes": 17621962752, "peak_reserved_bytes": 17813209088, "process_rss_after_bytes": 49788104704, "image": "composition-s123.png", "image_sha256": "bc11612f260acd8af0d834f3b28c752cefd0437d24c9a01dae0d46647bdf29ae", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 252, "alpha_max": 255, "alpha_nonopaque_fraction": 0.009993553161621094}
9
+ {"case_id": "texture", "category": "texture", "prompt": "Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.850519100000383, "peak_allocated_bytes": 17607326208, "peak_reserved_bytes": 17798529024, "process_rss_after_bytes": 49929191424, "image": "texture-s42.png", "image_sha256": "40a0f73bb407a394fa9e8a3f6922455df716b9725ad07437fa10c1daca2c2095", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 251, "alpha_max": 255, "alpha_nonopaque_fraction": 0.03330421447753906}
10
+ {"case_id": "texture", "category": "texture", "prompt": "Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.7564997999998, "peak_allocated_bytes": 17607326208, "peak_reserved_bytes": 17798529024, "process_rss_after_bytes": 50300633088, "image": "texture-s123.png", "image_sha256": "18c4403f388d0e03447473c03497141169f333fddeaeb40227163dc3b9d68d3e", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 251, "alpha_max": 255, "alpha_nonopaque_fraction": 0.016788482666015625}
11
+ {"case_id": "rgba", "category": "transparency", "prompt": "This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 26.040632799999912, "peak_allocated_bytes": 17604822528, "peak_reserved_bytes": 17798529024, "process_rss_after_bytes": 51127226368, "image": "rgba-s42.png", "image_sha256": "6f5dfea6ba02e41cbf20617b6e863e1adfa139d79fad2ca5c64dfc815f591d82", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 0, "alpha_max": 255, "alpha_nonopaque_fraction": 0.766596794128418}
12
+ {"case_id": "rgba", "category": "transparency", "prompt": "This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 25.074647800000093, "peak_allocated_bytes": 17604822528, "peak_reserved_bytes": 17798529024, "process_rss_after_bytes": 50980712448, "image": "rgba-s123.png", "image_sha256": "6f1abbb1a64ac553fc576a0250d370ab5bb7e6d5e6372f42f67045a5bb0951a6", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 0, "alpha_max": 255, "alpha_nonopaque_fraction": 0.6571817398071289}
13
+ {"case_id": "edit", "category": "image_editing", "prompt": "Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa", "seconds": 31.15521630000012, "peak_allocated_bytes": 20488328192, "peak_reserved_bytes": 21506293760, "process_rss_after_bytes": 51628781568, "image": "edit-s42.png", "image_sha256": "8713f6ef2ec0191d88225f2515671d6f51be43aa293bb1ca6e25b07a1b67deb9", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 228, "alpha_max": 255, "alpha_nonopaque_fraction": 0.11233901977539062}
14
+ {"case_id": "edit", "category": "image_editing", "prompt": "Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa", "seconds": 31.030128800000057, "peak_allocated_bytes": 20488328192, "peak_reserved_bytes": 21506293760, "process_rss_after_bytes": 52064702464, "image": "edit-s123.png", "image_sha256": "7d00c5bb7a2b31f05ea3fcf3f4a79dd93335770fe1b2d0ad772d5df954c9f91c", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 253, "alpha_max": 255, "alpha_nonopaque_fraction": 0.010979652404785156}
evaluation/bf16/rgba-s123.png ADDED

Git LFS Details

  • SHA256: 6f1abbb1a64ac553fc576a0250d370ab5bb7e6d5e6372f42f67045a5bb0951a6
  • Pointer size: 131 Bytes
  • Size of remote file: 927 kB
evaluation/bf16/rgba-s42.png ADDED

Git LFS Details

  • SHA256: 6f5dfea6ba02e41cbf20617b6e863e1adfa139d79fad2ca5c64dfc815f591d82
  • Pointer size: 131 Bytes
  • Size of remote file: 850 kB
evaluation/bf16/texture-s123.png ADDED

Git LFS Details

  • SHA256: 18c4403f388d0e03447473c03497141169f333fddeaeb40227163dc3b9d68d3e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.76 MB
evaluation/bf16/texture-s42.png ADDED

Git LFS Details

  • SHA256: 40a0f73bb407a394fa9e8a3f6922455df716b9725ad07437fa10c1daca2c2095
  • Pointer size: 132 Bytes
  • Size of remote file: 1.8 MB
evaluation/comparison.csv ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ case_id,seed,bf16_seconds,int8_seconds,speed_ratio_bf16_over_int8,bf16_peak_allocated_gib,int8_peak_allocated_gib,rgb_mae_white,rgb_psnr_white_db,alpha_mae
2
+ portrait,42,29.766559700000016,19.65371929999992,1.5145509735656058,16.40157413482666,22.8613600730896,0.013405879028141499,31.702880072340637,4.5881097321398556e-05
3
+ portrait,123,26.54884089999996,19.614630900000066,1.3535223290895506,16.40157413482666,22.86135959625244,0.0162954181432724,30.546014578484698,0.0001803267077775672
4
+ english_text,42,25.952576900000167,19.416275399999904,1.3366403373120828,16.409088134765625,22.861863613128662,0.026258574798703194,19.447587010373717,8.03704188001575e-06
5
+ english_text,123,25.878974200000357,19.404967399999805,1.3336262652005597,16.409088134765625,22.86188554763794,0.011798395775258541,25.825570953357694,1.0239845323667396e-05
6
+ chinese_text,42,25.469736900000044,19.544581299999663,1.303161040344235,16.413254261016846,22.862136363983154,0.05972025915980339,15.60138057172976,0.0001082326634787023
7
+ chinese_text,123,25.84774830000015,19.86057179999989,1.3014604292511,16.413254261016846,22.86215353012085,0.024602750316262245,20.44133777040833,6.83055113768205e-05
8
+ composition,42,25.38054239999974,19.130140400000073,1.326730586880567,16.411731719970703,22.862086296081543,0.02268194407224655,23.666249907034246,2.1964429834042676e-05
9
+ composition,123,25.351097499999923,19.303240899999764,1.3133078342300661,16.411731719970703,22.86205244064331,0.01959226094186306,22.865933886645216,3.4590328141348436e-05
10
+ texture,42,25.850519100000383,19.223099399999683,1.3447633267713743,16.39810037612915,22.86104154586792,0.06978315860033035,18.01562989780135,0.00019098912889603525
11
+ texture,123,25.7564997999998,19.567528400000356,1.3162878455308302,16.39810037612915,22.861046314239502,0.01683949865400791,27.92905075564026,5.856681673321873e-05
12
+ rgba,42,26.040632799999912,19.388802900000428,1.3430758430165555,16.395768642425537,22.860955238342285,0.018291756510734558,20.893335328149618,0.01108772773295641
13
+ rgba,123,25.074647800000093,19.288307799999984,1.2999921019510128,16.395768642425537,22.86095952987671,0.04646634683012962,17.051910336330792,0.029543064534664154
14
+ edit,42,31.15521630000012,25.399254500000097,1.2266193206576201,19.081242561340332,23.079509735107422,0.009711389429867268,36.48036013354599,0.00011113862274214625
15
+ edit,123,31.030128800000057,25.24017350000031,1.2293944334415798,19.081242561340332,23.080156326293945,0.003908749669790268,43.267885143031855,2.616058372950647e-05
evaluation/comparison.html ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html><meta charset="utf-8"><title>BF16 / INT8 comparison</title>
2
+ <style>body{font:16px system-ui;margin:32px;max-width:1500px}section{margin:40px 0}.pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}img{width:100%;background:repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 0/24px 24px}pre{white-space:pre-wrap}</style>
3
+ <h1>BF16 / INT8 comparison</h1><p>Left: BF16. Right: saved INT8. Identical settings and seeds. Alpha displayed over checkerboard.</p>
4
+ <p><a href="young_woman/comparison.html">Additional adult Chinese woman portrait pairs</a></p>
5
+ <section><h2>portrait — seed 42</h2><pre>A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.</pre><div class="pair"><img src="bf16/portrait-s42.png" alt="BF16"><img src="int8/portrait-s42.png" alt="INT8"></div></section>
6
+ <section><h2>portrait — seed 123</h2><pre>A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.</pre><div class="pair"><img src="bf16/portrait-s123.png" alt="BF16"><img src="int8/portrait-s123.png" alt="INT8"></div></section>
7
+ <section><h2>english_text — seed 42</h2><pre>A clean editorial poster with a deep blue background. Large exact headline at the top: &quot;CREATE WITH LIGHT&quot;. Smaller exact subtitle: &quot;September 2026&quot;. A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.</pre><div class="pair"><img src="bf16/english_text-s42.png" alt="BF16"><img src="int8/english_text-s42.png" alt="INT8"></div></section>
8
+ <section><h2>english_text — seed 123</h2><pre>A clean editorial poster with a deep blue background. Large exact headline at the top: &quot;CREATE WITH LIGHT&quot;. Smaller exact subtitle: &quot;September 2026&quot;. A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.</pre><div class="pair"><img src="bf16/english_text-s123.png" alt="BF16"><img src="int8/english_text-s123.png" alt="INT8"></div></section>
9
+ <section><h2>chinese_text — seed 42</h2><pre>设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。</pre><div class="pair"><img src="bf16/chinese_text-s42.png" alt="BF16"><img src="int8/chinese_text-s42.png" alt="INT8"></div></section>
10
+ <section><h2>chinese_text — seed 123</h2><pre>设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。</pre><div class="pair"><img src="bf16/chinese_text-s123.png" alt="BF16"><img src="int8/chinese_text-s123.png" alt="INT8"></div></section>
11
+ <section><h2>composition — seed 42</h2><pre>A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.</pre><div class="pair"><img src="bf16/composition-s42.png" alt="BF16"><img src="int8/composition-s42.png" alt="INT8"></div></section>
12
+ <section><h2>composition — seed 123</h2><pre>A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.</pre><div class="pair"><img src="bf16/composition-s123.png" alt="BF16"><img src="int8/composition-s123.png" alt="INT8"></div></section>
13
+ <section><h2>texture — seed 42</h2><pre>Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.</pre><div class="pair"><img src="bf16/texture-s42.png" alt="BF16"><img src="int8/texture-s42.png" alt="INT8"></div></section>
14
+ <section><h2>texture — seed 123</h2><pre>Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.</pre><div class="pair"><img src="bf16/texture-s123.png" alt="BF16"><img src="int8/texture-s123.png" alt="INT8"></div></section>
15
+ <section><h2>rgba — seed 42</h2><pre>This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.</pre><div class="pair"><img src="bf16/rgba-s42.png" alt="BF16"><img src="int8/rgba-s42.png" alt="INT8"></div></section>
16
+ <section><h2>rgba — seed 123</h2><pre>This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.</pre><div class="pair"><img src="bf16/rgba-s123.png" alt="BF16"><img src="int8/rgba-s123.png" alt="INT8"></div></section>
17
+ <section><h2>edit — seed 42</h2><pre>Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.</pre><div class="pair"><img src="bf16/edit-s42.png" alt="BF16"><img src="int8/edit-s42.png" alt="INT8"></div></section>
18
+ <section><h2>edit — seed 123</h2><pre>Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.</pre><div class="pair"><img src="bf16/edit-s123.png" alt="BF16"><img src="int8/edit-s123.png" alt="INT8"></div></section>
evaluation/hardware.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "gpu_driver_memory": "NVIDIA GeForce RTX 5090, 616.92, 32607",
3
+ "system_ram_bytes": 274298757120,
4
+ "platform": "Windows-11-10.0.26200-SP0",
5
+ "benchmark_order": [
6
+ "bf16",
7
+ "int8"
8
+ ],
9
+ "notes": "Windows WDDM desktop GPU; one sequential suite per precision, two seeds per case; no multi-run statistical confidence intervals."
10
+ }
evaluation/int8/chinese_text-s123.png ADDED

Git LFS Details

  • SHA256: 7ff8508a9454650920591c0aad34d1793501f609e853f2f8584c15eee5127479
  • Pointer size: 132 Bytes
  • Size of remote file: 1.2 MB
evaluation/int8/chinese_text-s42.png ADDED

Git LFS Details

  • SHA256: dce2de1e3b8b3836c7584854c7cf340cf05bcb141fa8e3988264c62e1b20238c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.32 MB
evaluation/int8/composition-s123.png ADDED

Git LFS Details

  • SHA256: c030c007a9c3962533ffeb256d9dac619cc082a20a21ff6f9eb0c0ab7b7cadae
  • Pointer size: 132 Bytes
  • Size of remote file: 1.21 MB
evaluation/int8/composition-s42.png ADDED

Git LFS Details

  • SHA256: 5704252c99e7f9dbe9e512eb82bf4fd93650e26c1d6479412679e7868637bcdd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.22 MB
evaluation/int8/edit-s123.png ADDED

Git LFS Details

  • SHA256: d8023e34ba10a22b36f63d050c50d44f149cebc7fc8f7f612a47f27f2a4cb70b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.8 MB
evaluation/int8/edit-s42.png ADDED

Git LFS Details

  • SHA256: 79725e243ccfd82b5387beffe6e1f37193ce9137b576b2ec20e8543547dd9d33
  • Pointer size: 132 Bytes
  • Size of remote file: 2.28 MB
evaluation/int8/english_text-s123.png ADDED

Git LFS Details

  • SHA256: b55551e7c17975ee90ad895e449379355886c3422d6dcdee9b0c3a4ce1c4632f
  • Pointer size: 131 Bytes
  • Size of remote file: 922 kB
evaluation/int8/english_text-s42.png ADDED

Git LFS Details

  • SHA256: 98ea66acd842498e192bc69503e32f5f61a4e5e56887d0f86e9c936b0b0d976f
  • Pointer size: 131 Bytes
  • Size of remote file: 961 kB
evaluation/int8/environment.json ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python": "3.13.5",
3
+ "platform": "Windows-11-10.0.26200-SP0",
4
+ "gpu": "NVIDIA GeForce RTX 5090",
5
+ "cuda": "12.8",
6
+ "packages": {
7
+ "torch": "2.10.0+cu128",
8
+ "torchvision": "0.25.0+cu128",
9
+ "diffusers": "0.41.0.dev0",
10
+ "transformers": "5.17.0",
11
+ "accelerate": "1.15.0",
12
+ "bitsandbytes": "0.50.2",
13
+ "safetensors": "0.8.0",
14
+ "huggingface-hub": "1.32.0",
15
+ "tokenizers": "0.23.2",
16
+ "numpy": "2.2.6",
17
+ "pillow": "12.2.0",
18
+ "psutil": "7.0.0"
19
+ },
20
+ "model_identity": {
21
+ "kind": "int8",
22
+ "base_revision": "b3179ad355be050328e483a9dfdd9e60cd62adfa",
23
+ "files": [
24
+ {
25
+ "path": "model_index.json",
26
+ "size": 447,
27
+ "sha256": "cf1ecd104ea090855d60d8cec0895c1e9d6ee41b2f87e231b678beecd1cf7809"
28
+ },
29
+ {
30
+ "path": "processor/added_tokens.json",
31
+ "size": 707,
32
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680"
33
+ },
34
+ {
35
+ "path": "processor/chat_template.jinja",
36
+ "size": 5292,
37
+ "sha256": "3636d0f0bd6bef02654cdffdc447b79cb2cef8ab02cc75267345946291a489e4"
38
+ },
39
+ {
40
+ "path": "processor/merges.txt",
41
+ "size": 1671853,
42
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5"
43
+ },
44
+ {
45
+ "path": "processor/preprocessor_config.json",
46
+ "size": 782,
47
+ "sha256": "93585062a80db5e8ca038efc7726a3e6411d9db948472d81d63c6303993be8c5"
48
+ },
49
+ {
50
+ "path": "processor/special_tokens_map.json",
51
+ "size": 613,
52
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd"
53
+ },
54
+ {
55
+ "path": "processor/tokenizer.json",
56
+ "size": 11422654,
57
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4"
58
+ },
59
+ {
60
+ "path": "processor/tokenizer_config.json",
61
+ "size": 5445,
62
+ "sha256": "81ec7bb9530159b326c0bef1d0b6c33d392090524014ea3f0123a3c1eb9c2af5"
63
+ },
64
+ {
65
+ "path": "processor/video_preprocessor_config.json",
66
+ "size": 817,
67
+ "sha256": "59c5c9eb52182eb14c06ffb10ca9effd29adce5f238a95de23ca14a38dbd2cb1"
68
+ },
69
+ {
70
+ "path": "processor/vocab.json",
71
+ "size": 2776833,
72
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
73
+ },
74
+ {
75
+ "path": "scheduler/scheduler_config.json",
76
+ "size": 485,
77
+ "sha256": "5895f3a167c14a967fe9ac70c64924ae5acc79799e0679fd12907e594a713cd1"
78
+ },
79
+ {
80
+ "path": "text_encoder/config.json",
81
+ "size": 2487,
82
+ "sha256": "da4f7a17ffbcaef0d09f9c31cab01d77e2c25905676818279254b5a8bb371150"
83
+ },
84
+ {
85
+ "path": "text_encoder/generation_config.json",
86
+ "size": 467,
87
+ "sha256": "7dc6dd5e325f76cd2f75d428d41049e1f8ac0c4775d0800c0885b88bfe3f4c7f"
88
+ },
89
+ {
90
+ "path": "text_encoder/model-00001-of-00003.safetensors",
91
+ "size": 4999822155,
92
+ "sha256": "9b8ae3bd2a1e4884abc48c659212427bbbae06fb1bc17e7173583704fc0f6bdd"
93
+ },
94
+ {
95
+ "path": "text_encoder/model-00002-of-00003.safetensors",
96
+ "size": 4996432636,
97
+ "sha256": "d28d1a8b3994a43582acc5e2da15ff38b632fae1466f41bc7710d27ec170aa9e"
98
+ },
99
+ {
100
+ "path": "text_encoder/model-00003-of-00003.safetensors",
101
+ "size": 27729689,
102
+ "sha256": "5896ffa9e2b2a52f9d496755fde050306f21c449bd66c2526b40979033c6e244"
103
+ },
104
+ {
105
+ "path": "text_encoder/model.safetensors.index.json",
106
+ "size": 139297,
107
+ "sha256": "d3fc335d23047182f40d458efec86a4b187a766e0d1639426b6a9b7ab5b1ab8a"
108
+ },
109
+ {
110
+ "path": "transformer/config.json",
111
+ "size": 1297,
112
+ "sha256": "1a941b5389b5985cd16314641d708a1333a65748bcd3f74b1b8b1cd74b828202"
113
+ },
114
+ {
115
+ "path": "transformer/diffusion_pytorch_model-00001-of-00002.safetensors",
116
+ "size": 4989447305,
117
+ "sha256": "0d77daaa3129860f026567e0178fec4ed776f3cf2463da76a0823b9c381c3468"
118
+ },
119
+ {
120
+ "path": "transformer/diffusion_pytorch_model-00002-of-00002.safetensors",
121
+ "size": 2267331623,
122
+ "sha256": "5e1b8ee3917833687adb662830438dc612ace2cf4bff7b8898515184a888fde1"
123
+ },
124
+ {
125
+ "path": "transformer/diffusion_pytorch_model.safetensors.index.json",
126
+ "size": 77984,
127
+ "sha256": "96963ae89098cbfdb83fb09bfe0b91e34d8dfe812c65da5e1fbe452878a79ebe"
128
+ },
129
+ {
130
+ "path": "vae/config.json",
131
+ "size": 2079,
132
+ "sha256": "9785d527b278cb8b210e9f48a8028d92a4190968ce7e24c8fc85d9d1b82f6ba2"
133
+ },
134
+ {
135
+ "path": "vae/diffusion_pytorch_model.safetensors",
136
+ "size": 1350989512,
137
+ "sha256": "a07a1b7c4ee2966a1b3bdc37de9b4f983d56937e46619f709a80b6e490675417"
138
+ }
139
+ ],
140
+ "fingerprint": "df2eb85e5f936d6b172d71605502055db9be34cb8590447488ce60f7e9d8dc22"
141
+ },
142
+ "model": "D:\\Git\\Qwen-Image-2.1\\models\\int8",
143
+ "load_seconds": 15.678335699999934,
144
+ "load_peak_allocated_bytes": 17281157120,
145
+ "offload": "model",
146
+ "warmup": true,
147
+ "generator_device": "cpu",
148
+ "cases_sha256": "2663ee3d489e1eb136e02b083963b8622146fc65ac301d6acc5a6aab21e63356"
149
+ }
evaluation/int8/portrait-s123.png ADDED

Git LFS Details

  • SHA256: 09391672b7aa15abc92a49184c94cd7dc09b570b2134c95f0a1524701630323c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.93 MB
evaluation/int8/portrait-s42.png ADDED

Git LFS Details

  • SHA256: e37187a2530d0f45378f17ca8fff47a7e174f1ce0c19ff89b9df8f4db1845acd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.87 MB
evaluation/int8/records.jsonl ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"case_id": "portrait", "category": "portrait", "prompt": "A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.65371929999992, "peak_allocated_bytes": 24547198464, "peak_reserved_bytes": 24595398656, "process_rss_after_bytes": 24881610752, "image": "portrait-s42.png", "image_sha256": "e37187a2530d0f45378f17ca8fff47a7e174f1ce0c19ff89b9df8f4db1845acd", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 249, "alpha_max": 255, "alpha_nonopaque_fraction": 0.015732765197753906}
2
+ {"case_id": "portrait", "category": "portrait", "prompt": "A natural documentary portrait of an elderly woman with silver hair and freckles, wearing a blue wool sweater, standing beside a window in soft morning light. Realistic skin texture, gentle expression, waist-up composition.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.614630900000066, "peak_allocated_bytes": 24547197952, "peak_reserved_bytes": 24595398656, "process_rss_after_bytes": 25830686720, "image": "portrait-s123.png", "image_sha256": "09391672b7aa15abc92a49184c94cd7dc09b570b2134c95f0a1524701630323c", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 252, "alpha_max": 255, "alpha_nonopaque_fraction": 0.08091926574707031}
3
+ {"case_id": "english_text", "category": "typography_en", "prompt": "A clean editorial poster with a deep blue background. Large exact headline at the top: \"CREATE WITH LIGHT\". Smaller exact subtitle: \"September 2026\". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.416275399999904, "peak_allocated_bytes": 24547739136, "peak_reserved_bytes": 24601690112, "process_rss_after_bytes": 26035294208, "image": "english_text-s42.png", "image_sha256": "98ea66acd842498e192bc69503e32f5f61a4e5e56887d0f86e9c936b0b0d976f", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 250, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0012531280517578125}
4
+ {"case_id": "english_text", "category": "typography_en", "prompt": "A clean editorial poster with a deep blue background. Large exact headline at the top: \"CREATE WITH LIGHT\". Smaller exact subtitle: \"September 2026\". A realistic orange desk lamp occupies the lower half. Elegant balanced typography, no additional text.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.404967399999805, "peak_allocated_bytes": 24547762688, "peak_reserved_bytes": 24601690112, "process_rss_after_bytes": 26170896384, "image": "english_text-s123.png", "image_sha256": "b55551e7c17975ee90ad895e449379355886c3422d6dcdee9b0c3a4ce1c4632f", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 213, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0015974044799804688}
5
+ {"case_id": "chinese_text", "category": "typography_zh", "prompt": "设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.544581299999663, "peak_allocated_bytes": 24548032000, "peak_reserved_bytes": 24603787264, "process_rss_after_bytes": 26308521984, "image": "chinese_text-s42.png", "image_sha256": "dce2de1e3b8b3836c7584854c7cf340cf05bcb141fa8e3988264c62e1b20238c", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 247, "alpha_max": 255, "alpha_nonopaque_fraction": 0.01668834686279297}
6
+ {"case_id": "chinese_text", "category": "typography_zh", "prompt": "设计一张现代咖啡馆海报,米白背景,中央一杯拉花拿铁。顶部准确写上中文大标题“慢下来,喝杯咖啡”,下方准确写上“小店今日营业”。文字清晰,留白充分,暖色摄影,不添加其他文字。", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.86057179999989, "peak_allocated_bytes": 24548050432, "peak_reserved_bytes": 24603787264, "process_rss_after_bytes": 26289606656, "image": "chinese_text-s123.png", "image_sha256": "7ff8508a9454650920591c0aad34d1793501f609e853f2f8584c15eee5127479", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 245, "alpha_max": 255, "alpha_nonopaque_fraction": 0.012395858764648438}
7
+ {"case_id": "composition", "category": "spatial_counting", "prompt": "A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.130140400000073, "peak_allocated_bytes": 24547978240, "peak_reserved_bytes": 24603787264, "process_rss_after_bytes": 26264928256, "image": "composition-s42.png", "image_sha256": "5704252c99e7f9dbe9e512eb82bf4fd93650e26c1d6479412679e7868637bcdd", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 252, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0036773681640625}
8
+ {"case_id": "composition", "category": "spatial_counting", "prompt": "A studio photograph on a light gray tabletop: exactly three ceramic cups in a row, a red cup on the left, a blue cup in the middle, and a yellow cup on the right. A single green apple sits in front of the blue cup. Soft shadows, no text.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.303240899999764, "peak_allocated_bytes": 24547941888, "peak_reserved_bytes": 24603787264, "process_rss_after_bytes": 27820789760, "image": "composition-s123.png", "image_sha256": "c030c007a9c3962533ffeb256d9dac619cc082a20a21ff6f9eb0c0ab7b7cadae", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 253, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0106048583984375}
9
+ {"case_id": "texture", "category": "texture", "prompt": "Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.223099399999683, "peak_allocated_bytes": 24546856448, "peak_reserved_bytes": 24597495808, "process_rss_after_bytes": 28058947584, "image": "texture-s42.png", "image_sha256": "37042d1659147a142e0562aa27623cb1d159d9d12e46af59395029f0293fd9c8", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 251, "alpha_max": 255, "alpha_nonopaque_fraction": 0.0345611572265625}
10
+ {"case_id": "texture", "category": "texture", "prompt": "Macro photography of a small kingfisher perched on a mossy branch beside clear water, detailed blue feathers, droplets, natural sunlight, softly blurred forest background, realistic textures.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.567528400000356, "peak_allocated_bytes": 24546861568, "peak_reserved_bytes": 24597495808, "process_rss_after_bytes": 28048392192, "image": "texture-s123.png", "image_sha256": "82fc88d5ab3cd4201634c54567b327f200231321dd0207990ff4c893e78496c7", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 251, "alpha_max": 255, "alpha_nonopaque_fraction": 0.01710224151611328}
11
+ {"case_id": "rgba", "category": "transparency", "prompt": "This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.388802900000428, "peak_allocated_bytes": 24546763776, "peak_reserved_bytes": 24595398656, "process_rss_after_bytes": 28067987456, "image": "rgba-s42.png", "image_sha256": "8624d495fe40f602a492b3366ccb0354d5684e4e084281503fdb435d0f4e265e", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 0, "alpha_max": 255, "alpha_nonopaque_fraction": 0.7706136703491211}
12
+ {"case_id": "rgba", "category": "transparency", "prompt": "This is an RGBA image with transparency. A cute cartoon dragon sticker, full body, green scales and small orange wings. The image has alpha channel and the background is transparent.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": null, "seconds": 19.288307799999984, "peak_allocated_bytes": 24546768384, "peak_reserved_bytes": 24595398656, "process_rss_after_bytes": 28076621824, "image": "rgba-s123.png", "image_sha256": "4871aab8f9d404a479385053bdb4c18de7f4119884bb0e30997d7be721a69b45", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 0, "alpha_max": 255, "alpha_nonopaque_fraction": 0.6456260681152344}
13
+ {"case_id": "edit", "category": "image_editing", "prompt": "Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.", "seed": 42, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa", "seconds": 25.399254500000097, "peak_allocated_bytes": 24781434880, "peak_reserved_bytes": 26440892416, "process_rss_after_bytes": 29161738240, "image": "edit-s42.png", "image_sha256": "79725e243ccfd82b5387beffe6e1f37193ce9137b576b2ec20e8543547dd9d33", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 241, "alpha_max": 255, "alpha_nonopaque_fraction": 0.11248302459716797}
14
+ {"case_id": "edit", "category": "image_editing", "prompt": "Change only the blue sweater to a red sweater. Preserve the same person, face, pose, lighting and background.", "seed": 123, "width": 1024, "height": 1024, "steps": 40, "cfg": 1.0, "kv_cache": true, "offload": "model", "input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa", "seconds": 25.24017350000031, "peak_allocated_bytes": 24782129152, "peak_reserved_bytes": 26440892416, "process_rss_after_bytes": 29135400960, "image": "edit-s123.png", "image_sha256": "d8023e34ba10a22b36f63d050c50d44f149cebc7fc8f7f612a47f27f2a4cb70b", "image_mode": "RGBA", "actual_size": [1024, 1024], "alpha_min": 253, "alpha_max": 255, "alpha_nonopaque_fraction": 0.011339187622070312}
evaluation/int8/rgba-s123.png ADDED

Git LFS Details

  • SHA256: 4871aab8f9d404a479385053bdb4c18de7f4119884bb0e30997d7be721a69b45
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
evaluation/int8/rgba-s42.png ADDED

Git LFS Details

  • SHA256: 8624d495fe40f602a492b3366ccb0354d5684e4e084281503fdb435d0f4e265e
  • Pointer size: 131 Bytes
  • Size of remote file: 919 kB
evaluation/int8/texture-s123.png ADDED

Git LFS Details

  • SHA256: 82fc88d5ab3cd4201634c54567b327f200231321dd0207990ff4c893e78496c7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.76 MB
evaluation/int8/texture-s42.png ADDED

Git LFS Details

  • SHA256: 37042d1659147a142e0562aa27623cb1d159d9d12e46af59395029f0293fd9c8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.78 MB
evaluation/qualitative.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Qualitative inspection / 定性检查
2
+
3
+ Agent visual inspection of the seed-42 pairs; not a blinded human preference study,
4
+ OCR benchmark, or quantitative semantic score. All seed-123 outputs remain available
5
+ in the gallery for independent review.
6
+
7
+ | Case | Observed BF16 / INT8 behavior |
8
+ |---|---|
9
+ | Portrait | Both preserve the requested older woman, blue sweater and window composition. Face shape, wrinkles, framing and fabric details shift slightly. Neither is pixel-identical. |
10
+ | English lettering | Both visibly render “CREATE WITH LIGHT” and “September 2026”. Layout and desk objects differ. |
11
+ | Chinese lettering | Both visibly render the requested main title and subtitle. Both also add unwanted, partly nonsensical footer text despite the instruction to add no other text. |
12
+ | Counting / arrangement | Both show three cups in red/blue/yellow order with one green apple in front of the blue cup. Object scales and spacing differ. |
13
+ | Texture | Both depict a plausible blue/orange kingfisher. Head angle, branch orientation and feather texture differ noticeably. Low pixel similarity here is not by itself evidence of poor semantic quality. |
14
+ | RGBA | Both produce a green/orange dragon sticker and a real varying alpha channel. Sampled background pixels have alpha 0–1/255; the subject is opaque. Invisible RGB background colors should not be mistaken for an opaque background. Both have a white sticker outline. |
15
+ | Editing | Both recolor the sweater toward a red/burgundy tone, but produce conspicuous oversharpening and contrast/texture changes across the portrait and background. Faithful preservation of lighting and skin texture is not achieved in this test. |
16
+
17
+ **Editing limitation:** The artifact is reproducible in both precisions under this
18
+ specific pinned runtime and test setup. This comparison does not identify its root
19
+ cause and does not attribute it specifically to INT8. Do not treat successful pipeline
20
+ execution as validation of editing fidelity.
21
+
22
+ 中文要点:文生图整体语义在所检查样例中保留,但画面细节会变化。中英文主标题可读;
23
+ 中文海报的多余页脚在两种精度中均存在。编辑任务在两组都出现明显过度锐化及对比度变化,
24
+ 不能宣称“编辑无损”或“质量完全一致”。这些观察只针对所列样例,不代表通用榜单结论。
evaluation/report.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BF16 / INT8 comparison
2
+
3
+ Additional adult Chinese woman portrait pairs are reported separately: [supplement](young_woman/report.md).
4
+
5
+ 14 paired outputs on NVIDIA GeForce RTX 5090; 1024×1024, 40 steps, offload=model, CFG=1, KV cache enabled.
6
+
7
+ Warmup excluded. Pixel metrics measure drift, not semantic quality. The same BF16 portrait is used as input for every editing pair. The suite is small and does not establish a general quality ranking.
8
+
9
+ | Case | Seed | BF16 s | INT8 s | BF16 peak GiB | INT8 peak GiB | RGB MAE (white) |
10
+ |---|---:|---:|---:|---:|---:|---:|
11
+ | portrait | 42 | 29.77 | 19.65 | 16.40 | 22.86 | 0.0134 |
12
+ | portrait | 123 | 26.55 | 19.61 | 16.40 | 22.86 | 0.0163 |
13
+ | english_text | 42 | 25.95 | 19.42 | 16.41 | 22.86 | 0.0263 |
14
+ | english_text | 123 | 25.88 | 19.40 | 16.41 | 22.86 | 0.0118 |
15
+ | chinese_text | 42 | 25.47 | 19.54 | 16.41 | 22.86 | 0.0597 |
16
+ | chinese_text | 123 | 25.85 | 19.86 | 16.41 | 22.86 | 0.0246 |
17
+ | composition | 42 | 25.38 | 19.13 | 16.41 | 22.86 | 0.0227 |
18
+ | composition | 123 | 25.35 | 19.30 | 16.41 | 22.86 | 0.0196 |
19
+ | texture | 42 | 25.85 | 19.22 | 16.40 | 22.86 | 0.0698 |
20
+ | texture | 123 | 25.76 | 19.57 | 16.40 | 22.86 | 0.0168 |
21
+ | rgba | 42 | 26.04 | 19.39 | 16.40 | 22.86 | 0.0183 |
22
+ | rgba | 123 | 25.07 | 19.29 | 16.40 | 22.86 | 0.0465 |
23
+ | edit | 42 | 31.16 | 25.40 | 19.08 | 23.08 | 0.0097 |
24
+ | edit | 123 | 31.03 | 25.24 | 19.08 | 23.08 | 0.0039 |
25
+
26
+ ## Summary
27
+
28
+ Mean latency: BF16 26.79s; INT8 20.29s.
29
+
30
+ [Interactive-sized side-by-side gallery](comparison.html). Raw data: comparison.csv, bf16/records.jsonl, int8/records.jsonl. Environment records include package versions and loading overhead.
31
+
32
+ [Qualitative observations](qualitative.md).
33
+
34
+ ## Interpretation limits
35
+
36
+ - No CLIP, OCR, human preference, FID or benchmark leaderboard score is claimed.
37
+ - Peak CUDA allocated/reserved memory excludes other processes and display usage.
38
+ - Measured call latency includes transfers; disk writing and model loading are excluded.
39
+ - Paired images may diverge with quantization even when both remain plausible.
40
+ - Editing and transparency should be inspected in the gallery, including preserved details.