OptimaTools commited on
Commit
799a51a
·
verified ·
1 Parent(s): b9f426d

Image Medium : documents, crédits, licence, provenance et manifeste

Browse files

Fichiers d'exécution copiés depuis black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294. Ajout de README-source.md, licences, CREDITS, SOURCE.json et du manifeste.

Files changed (7) hide show
  1. .optima-package.json +30 -0
  2. CREDITS.json +90 -0
  3. CREDITS.md +41 -0
  4. LICENSE +202 -0
  5. README-source.md +125 -0
  6. README.md +92 -8
  7. SOURCE.json +234 -0
.optima-package.json CHANGED
@@ -92,6 +92,36 @@
92
  "path": "vae/diffusion_pytorch_model.safetensors",
93
  "sizeBytes": 168120878,
94
  "sha256": "ca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
96
  ]
97
  }
 
92
  "path": "vae/diffusion_pytorch_model.safetensors",
93
  "sizeBytes": 168120878,
94
  "sha256": "ca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04"
95
+ },
96
+ {
97
+ "path": "CREDITS.json",
98
+ "sizeBytes": 2973,
99
+ "sha256": "0f69507cbdba3186e4672bf8b2a0efe31f7ce716d458121c31dda5b08e43219a"
100
+ },
101
+ {
102
+ "path": "CREDITS.md",
103
+ "sizeBytes": 2416,
104
+ "sha256": "1aa002dc9c8e81ea82b6923ae78c1b56cdec20f51d72ad3ed4dee6a1fe62efb2"
105
+ },
106
+ {
107
+ "path": "LICENSE",
108
+ "sizeBytes": 11358,
109
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
110
+ },
111
+ {
112
+ "path": "LICENSE.md",
113
+ "sizeBytes": 9584,
114
+ "sha256": "ca02bc51900ab07789d1b70283329e7137f5af98f5161c23a1c81fc38a4af1fe"
115
+ },
116
+ {
117
+ "path": "README-source.md",
118
+ "sizeBytes": 9991,
119
+ "sha256": "bd447051cf2db4bf67b992e563d89c35ebf1123f009c063361a222ab14e1c4f7"
120
+ },
121
+ {
122
+ "path": "SOURCE.json",
123
+ "sizeBytes": 11121,
124
+ "sha256": "3990e4ea667530840cc4b425856b98ebb4591c513c6f8aaac393a6bdefe71756"
125
  }
126
  ]
127
  }
CREDITS.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schemaVersion": 1,
3
+ "preparedAt": "2026-10-27T20:56:07.611Z",
4
+ "package": {
5
+ "id": "image.medium",
6
+ "repository": "optima-tools-ch/image-medium",
7
+ "label": "Génération d'images — Medium"
8
+ },
9
+ "model": {
10
+ "name": "FLUX.2 [klein] 4B — pipeline Diffusers",
11
+ "source": "black-forest-labs/FLUX.2-klein-4B",
12
+ "revision": "e7b7dc27f91deacad38e78976d1f2b499d76a294",
13
+ "url": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294"
14
+ },
15
+ "authors": [
16
+ {
17
+ "name": "Black Forest Labs",
18
+ "url": "https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence",
19
+ "role": "éditeur du modèle et propriétaire du dépôt source ; billet cité par la fiche source"
20
+ }
21
+ ],
22
+ "components": [
23
+ {
24
+ "folder": "scheduler",
25
+ "className": "FlowMatchEulerDiscreteScheduler"
26
+ },
27
+ {
28
+ "folder": "text_encoder",
29
+ "className": "Qwen3ForCausalLM",
30
+ "note": "classe indiquée par model_index.json ; la fiche source ne détaille pas son origine"
31
+ },
32
+ {
33
+ "folder": "tokenizer",
34
+ "className": "Qwen2TokenizerFast"
35
+ },
36
+ {
37
+ "folder": "transformer",
38
+ "className": "Flux2Transformer2DModel",
39
+ "note": "4 milliards de paramètres selon la fiche source"
40
+ },
41
+ {
42
+ "folder": "vae",
43
+ "className": "AutoencoderKLFlux2"
44
+ }
45
+ ],
46
+ "upstream": [],
47
+ "license": {
48
+ "spdx": "Apache-2.0",
49
+ "name": "Apache License 2.0",
50
+ "url": "https://www.apache.org/licenses/LICENSE-2.0.txt",
51
+ "files": [
52
+ "LICENSE",
53
+ "LICENSE.md"
54
+ ]
55
+ },
56
+ "licenseNotes": [
57
+ "La fiche source déclare Apache 2.0 (« Fully open under Apache 2.0 ») et fournit `LICENSE.md` : conditions de la licence Apache 2.0 sans annexe ni avis de copyright. Ce fichier est conservé tel quel.",
58
+ "Le texte officiel complet (avec annexe) est ajouté dans `LICENSE`.",
59
+ "La fiche source ne déclare aucune licence distincte pour les composants du pipeline (encodeur de texte de type Qwen3, VAE) ; Optima Tools n’en a évalué aucune autre."
60
+ ],
61
+ "copyrightNotices": [],
62
+ "preparedAndDistributedBy": {
63
+ "name": "Optima Tools",
64
+ "organization": "optima-tools-ch",
65
+ "role": "Préparateur et distributeur du paquet"
66
+ },
67
+ "modifications": {
68
+ "weights": "Aucune : octets identiques à ceux de la source, noms et arborescence conservés.",
69
+ "renamedFiles": [],
70
+ "addedDocuments": [
71
+ "README.md",
72
+ "README-source.md (copie)",
73
+ "LICENSE (texte officiel Apache 2.0)",
74
+ "CREDITS.md",
75
+ "CREDITS.json",
76
+ "SOURCE.json",
77
+ ".optima-package.json"
78
+ ]
79
+ },
80
+ "notCopiedFromSource": [
81
+ {
82
+ "path": "flux-2-klein-4b.safetensors",
83
+ "reason": "fichier autonome qui dupliquerait le poids du transformeur déjà livré dans transformer/"
84
+ },
85
+ {
86
+ "path": "editing.jpg, others.jpg, realism.jpg",
87
+ "reason": "images d’illustration de la fiche source"
88
+ }
89
+ ]
90
+ }
CREDITS.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Crédits — Optima Tools — Génération d'images — Medium
2
+
3
+ ## Modèle
4
+
5
+ - **Nom :** FLUX.2 [klein] 4B — pipeline Diffusers. Identifiant du paquet OT : `image.medium`.
6
+ - **Dépôt source :** https://huggingface.co/black-forest-labs/FLUX.2-klein-4B
7
+ - **Révision source :** `e7b7dc27f91deacad38e78976d1f2b499d76a294` (https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294)
8
+
9
+ ## Auteurs
10
+
11
+ - Black Forest Labs (éditeur du modèle et propriétaire du dépôt source ; billet cité par la fiche source) — https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence
12
+
13
+ ## Composants du pipeline
14
+
15
+ - `scheduler` : FlowMatchEulerDiscreteScheduler
16
+ - `text_encoder` : Qwen3ForCausalLM — classe indiquée par model_index.json ; la fiche source ne détaille pas son origine
17
+ - `tokenizer` : Qwen2TokenizerFast
18
+ - `transformer` : Flux2Transformer2DModel — 4 milliards de paramètres selon la fiche source
19
+ - `vae` : AutoencoderKLFlux2
20
+
21
+ ## Licence
22
+
23
+ - **Apache License 2.0** (Apache-2.0) : https://www.apache.org/licenses/LICENSE-2.0.txt
24
+ - La fiche source déclare Apache 2.0 (« Fully open under Apache 2.0 ») et fournit `LICENSE.md` : conditions de la licence Apache 2.0 sans annexe ni avis de copyright. Ce fichier est conservé tel quel.
25
+ - Le texte officiel complet (avec annexe) est ajouté dans `LICENSE`.
26
+ - La fiche source ne déclare aucune licence distincte pour les composants du pipeline (encodeur de texte de type Qwen3, VAE) ; Optima Tools n’en a évalué aucune autre.
27
+ - **Avis de copyright :** aucun avis de copyright reproductible n’est présent dans la source ; aucun n’est ajouté ici.
28
+
29
+ ## Préparation et distribution
30
+
31
+ Ce paquet est préparé et distribué par **Optima Tools** (organisation `optima-tools-ch`). Optima Tools n'est pas l'auteur du modèle : les auteurs d'origine conservent leurs droits.
32
+
33
+ ## Modifications
34
+
35
+ - **Poids :** Aucune : octets identiques à ceux de la source, noms et arborescence conservés.
36
+ - **Ajouts d'Optima Tools :** `README.md`, `CREDITS.md`, `CREDITS.json`, `SOURCE.json`, `.optima-package.json`, `LICENSE`. `README-source.md` est la copie de la fiche officielle.
37
+
38
+ ## Non repris de la source
39
+
40
+ - `flux-2-klein-4b.safetensors` : fichier autonome qui dupliquerait le poids du transformeur déjà livré dans transformer/
41
+ - `editing.jpg, others.jpg, realism.jpg` : images d’illustration de la fiche source
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
README-source.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ pipeline_tag: image-to-image
6
+ tags:
7
+ - text-to-image
8
+ - image-editing
9
+ - flux
10
+ - diffusion-single-file
11
+ ---
12
+
13
+ ![Teaser](./realism.jpg)
14
+ ![Teaser](./editing.jpg)
15
+ ![Teaser](./others.jpg)
16
+
17
+ The FLUX.2 [klein] model family are our fastest image models to date. FLUX.2 [klein] unifies generation and editing in a single compact architecture, **delivering state-of-the-art quality with end-to-end inference in as low as under a second**. Built for applications that require real-time image generation without sacrificing quality, and runs on consumer hardware, with as little as 13GB VRAM.
18
+
19
+ FLUX.2 [klein] 4B is a 4 billion parameter rectified flow transformer capable of generating images from text descriptions and supports multi-reference editing capabilities.
20
+
21
+ Fully open under Apache 2.0. Our most accessible model runs on consumer GPUs like the RTX 3090/4070. Compact but capable: supports text-to-image, image editing, and multi-reference at quality that punches above its size. Built for local development, edge deployment, and production use.
22
+
23
+ For more information, please read our [blog post](https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence).
24
+
25
+ # **Key Features**
26
+
27
+ 1. Our fastest distilled model for sub-second image generation.
28
+ 2. Best suited for interactive workflows, production deployments, and latency-critical applications.
29
+ 3. Text-to-image and image-to-image multi-reference editing in a single unified model.
30
+ 4. Runs on consumer GPUs (~13GB VRAM).
31
+ 5. Open weights available for commercial use under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).
32
+
33
+ # **Usage**
34
+
35
+ We provide a reference implementation of FLUX.2 [klein] 4B, as well as sampling code, in a dedicated [GitHub repository](https://github.com/black-forest-labs/flux2). Developers and creatives looking to build on top of FLUX.2 [klein] 4B are encouraged to use this as a starting point.
36
+
37
+ ## **API Endpoints**
38
+
39
+ The FLUX.2 [klein] 4B model is available via the BFL API:
40
+
41
+ - [bfl.ai](https://bfl.ai)
42
+
43
+ FLUX.2 [klein] 4B is also available in both [ComfyUI](https://github.com/comfyanonymous/ComfyUI) and [Diffusers](https://github.com/huggingface/diffusers).
44
+
45
+ ## **Using with Diffusers 🧨**
46
+
47
+ To use FLUX.2 [klein] 4B with the 🧨 Diffusers python library, first install or upgrade diffusers:
48
+
49
+ ```shell
50
+ pip install git+https://github.com/huggingface/diffusers.git
51
+ ```
52
+ Then you can use Flux2KleinPipeline to run the model:
53
+
54
+ ```python
55
+ import torch
56
+ from diffusers import Flux2KleinPipeline
57
+
58
+ device = "cuda"
59
+ dtype = torch.bfloat16
60
+
61
+ pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=dtype)
62
+ pipe.enable_model_cpu_offload() # save some VRAM by offloading the model to CPU
63
+
64
+ prompt = "A cat holding a sign that says hello world"
65
+ image = pipe(
66
+ prompt=prompt,
67
+ height=1024,
68
+ width=1024,
69
+ guidance_scale=1.0,
70
+ num_inference_steps=4,
71
+ generator=torch.Generator(device=device).manual_seed(0)
72
+ ).images[0]
73
+ image.save("flux-klein.png")
74
+ ```
75
+
76
+
77
+ ---
78
+ Limitations
79
+
80
+ - This model is not intended or able to provide factual information.
81
+ - While the model can output text, text rendered may be inaccurate or subject to distortion.
82
+ - As a statistical model, this checkpoint may represent or amplify biases observed in the training data.
83
+ - The model may fail to generate output that matches the prompts.
84
+ - Prompt following is heavily influenced by the prompting style.
85
+
86
+ Out-of-Scope Use
87
+
88
+ The model and its derivatives may not be used:
89
+
90
+ - In any way that violates applicable law.
91
+ - For the purpose of exploiting, harming or attempting to exploit or harm minors in any way; including but not limited to the solicitation, creation, acquisition, or dissemination of child exploitative content.
92
+ - To generate or disseminate deceptive, fraudulent, misleading or otherwise harmful content.
93
+ - To generate or disseminate personal identifiable information that can be used to harm an individual.
94
+ - To harass, abuse, threaten, stalk, or bully individuals or groups of individuals.
95
+ - To create non-consensual intimate imagery or illegal pornographic content.
96
+ - For fully automated decision making or high risk applications that adversely impact an individual's legal rights or otherwise create or modify a binding, enforceable obligation.
97
+
98
+ Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.
99
+
100
+ Hardware
101
+
102
+ The FLUX.2 [klein] 4B model fits in ~13GB VRAM and is accessible on NVIDIA RTX 3090/4070 and above.
103
+
104
+ ---
105
+ Responsible AI Development
106
+
107
+ Black Forest Labs is committed to the responsible development and deployment of our models. Prior to releasing the FLUX.2 family of models, we evaluated and mitigated a number of risks in our model checkpoints and hosted services, including the generation of unlawful content, including child sexual abuse material (CSAM) and nonconsensual intimate imagery (NCII). We implemented a series of pre-release mitigations to help prevent misuse by third parties, with additional post-release mitigations to help address residual risks:
108
+
109
+ 1. Pre-training mitigation. We filtered pre-training data for multiple categories of "not safe for work" (NSFW) and known child sexual abuse material (CSAM) to help prevent a user generating unlawful content in response to text prompts or uploaded images. We have partnered with the https://www.iwf.org.uk/, an independent nonprofit organization dedicated to preventing online abuse, to filter known CSAM from the training data.
110
+ 2. Post-training mitigation. Subsequently, we undertook multiple rounds of targeted fine-tuning to provide additional mitigation against potential abuse, including both text-to-image (T2I) and image-to-image (I2I) attacks. By inhibiting certain behaviors and suppressing certain concepts in the trained model, these techniques can help to prevent a user generating synthetic CSAM or NCII from a text prompt, or transforming an uploaded image into synthetic CSAM or NCII.
111
+ 3. Ongoing evaluation. Throughout this process, we conducted multiple internal and external third-party evaluations of model checkpoints to identify further opportunities for mitigation. External third-party evaluations focused on eliciting CSAM and NCII through adversarial testing with (i) text-only prompts, (ii) a single uploaded reference image with text prompts, and (iii) multiple uploaded reference images with text prompts. Based on this feedback, we conducted further safety fine-tuning to produce our open-weight FLUX.2 [klein] models.
112
+ 4. Release decision. After safety fine-tuning and prior to release, we conducted a final third-party evaluation of the proposed release checkpoints, focused on T2I and I2I generation of synthetic CSAM and NCII, including a comparison with other open-weight T2I and I2I models. The final FLUX.2 [klein] checkpoints demonstrated high resilience against violative inputs in complex generation and editing tasks, and demonstrated higher resilience than leading open-weight models across these risk categories. Based on these findings, we approved the release of the open-weight FLUX.2 [klein] 4B models under an Apache 2.0 license and the release of the FLUX.2 [klein] 9B models under a non-commercial license to support third-party research and development.
113
+ 5. Inference filters. The repository for the FLUX.2 [klein] models includes filters for NSFW and protected content in inputs and outputs. Filters or manual review must be used with the FLUX.2 [klein] 9B models under the terms of the FLUX Non-Commercial License, and we encourage deployers to implement these mitigations when using the FLUX.2 [klein] 4B models. Where we implement these features on our own hosted services, we may apply multiple filters to intercept text prompts, uploaded images, and output images. We utilize both in-house and third-party filters to mitigate against harmful outputs, such as CSAM and NCII outputs, including filters provided by https://thehive.ai/ and https://www.microsoft.com/.
114
+ 6. Content provenance. Content provenance features can help users and platforms better identify, label, and interpret AI-generated content online. The inference code for FLUX.2 [klein] implements an example of pixel-layer watermarking. Additionally, this repository includes links to the https://c2pa.org/ standard for metadata. The API for FLUX.2 [klein] applies cryptographically-signed C2PA metadata to downloaded output content to indicate that images were produced with our model.
115
+ 7. Policies. Acceptable use of our models and access to our API are governed by policies set out in applicable documentation, including FLUX Non-Commercial License (for our non-commercial open-weight users); Developer Terms of Service, Self-Hosted Commercial License Terms, and Usage Policy (for our commercial open-weight model users); and Developer Terms of Service, FLUX API Service Terms, and Usage Policy (for our API users). These prohibit the generation of unlawful content or the use of generated content for unlawful, defamatory, or abusive purposes.
116
+ 8. Safety. Black Forest Labs takes model safety seriously. We provide a dedicated email address (safety@blackforestlabs.ai) to solicit feedback from the community. We maintain a reporting relationship with organizations such as the https://www.iwf.org.uk/ and the https://www.missingkids.org/, and welcome ongoing engagement with authorities, developers, and researchers to share intelligence about emerging risks and develop effective mitigations.
117
+
118
+ ---
119
+ License
120
+
121
+ This model is licensed under the https://www.apache.org/licenses/LICENSE-2.0.
122
+
123
+ Trademarks & IP
124
+
125
+ This project may contain trademarks or logos for projects, products, or services. Use of Black Forest Labs and FLUX trademarks or logos in modified versions of this project must not cause confusion or imply sponsorship or endorsement. Any use of third-party trademarks, intellectual property or logos are subject to those third-party's policies.
README.md CHANGED
@@ -1,19 +1,103 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
- # Optima Tools — image-medium
6
 
7
- FLUX.2 Klein 4B — pipeline Diffusers : paquet complet pour Optima Tools (génération d’images).
 
 
 
 
 
 
 
 
8
 
9
- **Copie identique, octet pour octet, de fichiers publiés par leurs auteurs.** Dépôt d'origine : https://huggingface.co/black-forest-labs/FLUX.2-klein-4B (révision `e7b7dc27f91deacad38e78976d1f2b499d76a294`). Aucun fichier n'est modifié.
10
 
11
- ## Licence
 
 
 
12
 
13
- Apache License 2.0 (Apache-2.0) : https://www.apache.org/licenses/LICENSE-2.0
14
 
15
- Le texte de licence d'origine est conservé dans ce dépôt : `LICENSE.md`.
 
 
 
 
 
 
 
 
16
 
17
- ## Vérification
18
 
19
- `.optima-package.json` liste la taille et l'empreinte SHA-256 de chaque fichier ; Optima Tools les vérifie à l'installation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ license_link: https://www.apache.org/licenses/LICENSE-2.0.txt
4
+ library_name: diffusers
5
+ pipeline_tag: text-to-image
6
+ base_model: black-forest-labs/FLUX.2-klein-4B
7
+ language:
8
+ - en
9
+ tags:
10
+ - text-to-image
11
+ - diffusers
12
+ - flux
13
+ - image-editing
14
+ - optima-tools
15
  ---
16
 
17
+ # Optima Tools — Génération d'images — Medium
18
 
19
+ | | |
20
+ |---|---|
21
+ | Dépôt Hugging Face | `optima-tools-ch/image-medium` |
22
+ | Libellé dans Optima Tools | Génération d'images — Medium |
23
+ | Identifiant du paquet OT | `image.medium` |
24
+ | Modèle | FLUX.2 [klein] 4B — pipeline Diffusers |
25
+ | Source | black-forest-labs/FLUX.2-klein-4B (https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294) |
26
+ | Révision source | `e7b7dc27f91deacad38e78976d1f2b499d76a294` |
27
+ | Contenu | 18 fichiers d'exécution, 15,98 Go |
28
 
29
+ ## Statut
30
 
31
+ - **Publié :** les 18 fichiers d'exécution sont présents dans ce dépôt (copie côté serveur Hugging Face le 2026-10-27 ; documents ajoutés le 2026-10-27).
32
+ - **Intégrité :** pour les gros poids, le SHA-256 vient des métadonnées LFS de Hugging Face, identique sur la source et sur ce dépôt ; il n'a **pas été recalculé localement**. Pour les petits fichiers, le SHA-256 a été calculé sur leur contenu, source et destination comparés.
33
+ - **Validation dans Optima Tools : non effectuée.** Cette publication n'est pas un test d'exécution. Les besoins matériels n'ont pas été mesurés et ne sont pas annoncés.
34
+ - Le téléchargement depuis l'application n'est pas encore ouvert.
35
 
36
+ ## Contenu du paquet
37
 
38
+ | Dossier | Fichiers | Taille |
39
+ |---|---:|---:|
40
+ | `(racine)` | 1 | 0,0 Mo |
41
+ | `scheduler/` | 1 | 0,0 Mo |
42
+ | `text_encoder/` | 5 | 8,05 Go |
43
+ | `tokenizer/` | 7 | 15,9 Mo |
44
+ | `transformer/` | 2 | 7,75 Go |
45
+ | `vae/` | 2 | 168,1 Mo |
46
+ | **Total** | **18** | **15,98 Go** |
47
 
48
+ La liste complète, avec le SHA-256 de chaque fichier, figure dans `SOURCE.json` et `.optima-package.json`.
49
 
50
+ **Non repris de la source :** le fichier autonome `flux-2-klein-4b.safetensors` (il dupliquerait le poids du transformeur déjà livré dans `transformer/`) et les images d’illustration `editing.jpg`, `others.jpg` et `realism.jpg`.
51
+
52
+ ## Capacités documentées
53
+
54
+ - Génération d’images à partir d’un texte (text-to-image).
55
+ - La fiche source documente aussi l’édition d’images et l’édition multi-références dans un même modèle.
56
+ - La fiche source présente un modèle distillé pour une génération rapide (4 étapes dans son exemple).
57
+ - Avec Optima Tools, une image de référence peut être transmise à ce pipeline (Flux2KleinPipeline) pour la retouche ; non validé lors de cette publication.
58
+
59
+ ## Exemple de chargement
60
+
61
+ Exemple de la fiche source, adapté à un dossier local (`image-medium` contient ce paquet). Le pipeline demande une version récente de Diffusers : le `model_index.json` indique `0.37.0.dev0` et la source recommande l’installation depuis GitHub.
62
+
63
+ ```python
64
+ import torch
65
+ from diffusers import Flux2KleinPipeline
66
+
67
+ pipe = Flux2KleinPipeline.from_pretrained(
68
+ "image-medium", # dossier contenant ce paquet
69
+ torch_dtype=torch.bfloat16,
70
+ local_files_only=True,
71
+ )
72
+ pipe.enable_model_cpu_offload() # économise de la VRAM
73
+ image = pipe(
74
+ prompt="A cat holding a sign that says hello world",
75
+ height=1024,
76
+ width=1024,
77
+ guidance_scale=1.0,
78
+ num_inference_steps=4,
79
+ generator=torch.Generator(device="cuda").manual_seed(0),
80
+ ).images[0]
81
+ image.save("flux-klein.png")
82
+ ```
83
+
84
+ Optima Tools charge un dossier de ce type avec `DiffusionPipeline.from_pretrained(dossier, torch_dtype=…, local_files_only=True)`. Cet exemple est adapté de la fiche source et des noms de fichiers livrés ; il n'a pas été exécuté lors de cette publication.
85
+
86
+ ## Licence et crédits
87
+
88
+ Apache License 2.0 : texte officiel complet dans `LICENSE` ; `LICENSE.md` est la licence fournie par la source, conservée telle quelle. Auteurs, composants, sources, rôle d'Optima Tools (préparateur et distributeur) et modifications : `CREDITS.md` et `CREDITS.json`.
89
+
90
+ ## Documents du dépôt
91
+
92
+ | Fichier | Contenu |
93
+ |---|---|
94
+ | `README-source.md` | Fiche officielle de la révision source, copie identique |
95
+ | `LICENSE` | Texte officiel complet de la licence Apache 2.0 |
96
+ | `LICENSE.md` | Licence fournie par la source, conservée telle quelle (conditions Apache 2.0 sans annexe ni avis de copyright) |
97
+ | `CREDITS.md`, `CREDITS.json` | Crédits, licences, modifications |
98
+ | `SOURCE.json` | Provenance exacte : chemin source, chemin livré, taille et SHA-256 de chaque fichier |
99
+ | `.optima-package.json` | Manifeste lu par Optima Tools : fichiers d'exécution, licences, crédits et provenance (hors fiche `README.md` et hors lui-même) |
100
+
101
+ ## Droits des auteurs d'origine
102
+
103
+ Les auteurs d'origine conservent l'ensemble de leurs droits. Optima Tools n'est pas le créateur de ce modèle : ce dépôt en prépare la distribution vérifiée pour l'application, avec mention des sources, des licences et des crédits.
SOURCE.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schemaVersion": 1,
3
+ "preparedAt": "2026-10-27T20:56:07.611Z",
4
+ "preparedBy": "Optima Tools (optima-tools-ch)",
5
+ "package": {
6
+ "id": "image.medium",
7
+ "repository": "optima-tools-ch/image-medium",
8
+ "usage": "Génération d'images",
9
+ "level": "medium",
10
+ "label": "Génération d'images — Medium",
11
+ "name": "FLUX.2 [klein] 4B — pipeline Diffusers"
12
+ },
13
+ "source": {
14
+ "host": "huggingface.co",
15
+ "repository": "black-forest-labs/FLUX.2-klein-4B",
16
+ "revision": "e7b7dc27f91deacad38e78976d1f2b499d76a294",
17
+ "url": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294",
18
+ "license": "Apache-2.0",
19
+ "licenseUrl": "https://www.apache.org/licenses/LICENSE-2.0.txt"
20
+ },
21
+ "transfer": {
22
+ "method": "Duplication des fichiers LFS côté serveur Hugging Face (copie par empreinte), puis commit ; petits fichiers téléchargés, vérifiés par SHA-256 et ajoutés au même commit",
23
+ "downloadedLocally": false,
24
+ "uploadedFromLocal": false,
25
+ "modifiedContent": false,
26
+ "renamedFiles": 0
27
+ },
28
+ "verification": {
29
+ "largeFiles": "SHA-256 = oid LFS lu dans les métadonnées Hugging Face, identique sur la source et la destination ; non recalculé localement",
30
+ "smallFiles": "SHA-256 calculé sur le contenu téléchargé de la source et de la destination (identiques)",
31
+ "verifiedAt": "2026-10-27T20:56:07.611Z",
32
+ "executionTestedInOt": false
33
+ },
34
+ "files": [
35
+ {
36
+ "path": "model_index.json",
37
+ "sourcePath": "model_index.json",
38
+ "renamed": false,
39
+ "sizeBytes": 446,
40
+ "sha256": "51a76cb1cf3ed37423a1128c79c22faee8e6fbe7f5aaeb737f0a258930dbaac0",
41
+ "sha256Origin": "computed-from-content",
42
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/model_index.json"
43
+ },
44
+ {
45
+ "path": "scheduler/scheduler_config.json",
46
+ "sourcePath": "scheduler/scheduler_config.json",
47
+ "renamed": false,
48
+ "sizeBytes": 486,
49
+ "sha256": "067afb012cef64553a763447d1efd93daeffcc0123ca7e25b09f8de20b90762e",
50
+ "sha256Origin": "computed-from-content",
51
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/scheduler/scheduler_config.json"
52
+ },
53
+ {
54
+ "path": "text_encoder/config.json",
55
+ "sourcePath": "text_encoder/config.json",
56
+ "renamed": false,
57
+ "sizeBytes": 1536,
58
+ "sha256": "214b4c29a0d975e9fddf9994a5673f22cb2c4c5750352f9227c2c3251ebeab40",
59
+ "sha256Origin": "computed-from-content",
60
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/text_encoder/config.json"
61
+ },
62
+ {
63
+ "path": "text_encoder/generation_config.json",
64
+ "sourcePath": "text_encoder/generation_config.json",
65
+ "renamed": false,
66
+ "sizeBytes": 214,
67
+ "sha256": "4347b1aeed2b2b78bc059920a0b7f5fec71482e1344952b76d7665d638d71f13",
68
+ "sha256Origin": "computed-from-content",
69
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/text_encoder/generation_config.json"
70
+ },
71
+ {
72
+ "path": "text_encoder/model-00001-of-00002.safetensors",
73
+ "sourcePath": "text_encoder/model-00001-of-00002.safetensors",
74
+ "renamed": false,
75
+ "sizeBytes": 4967215360,
76
+ "sha256": "8c0506e7f4936fa7e26183a4fd8da4e2bdbc5990ba64ae441f965d51228f36ea",
77
+ "sha256Origin": "hf-lfs-metadata",
78
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/text_encoder/model-00001-of-00002.safetensors"
79
+ },
80
+ {
81
+ "path": "text_encoder/model-00002-of-00002.safetensors",
82
+ "sourcePath": "text_encoder/model-00002-of-00002.safetensors",
83
+ "renamed": false,
84
+ "sizeBytes": 3077766632,
85
+ "sha256": "82f2bd839378541b0557bfabaf37c7d3d637071fdcb73302dedd7cf61162ce07",
86
+ "sha256Origin": "hf-lfs-metadata",
87
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/text_encoder/model-00002-of-00002.safetensors"
88
+ },
89
+ {
90
+ "path": "text_encoder/model.safetensors.index.json",
91
+ "sourcePath": "text_encoder/model.safetensors.index.json",
92
+ "renamed": false,
93
+ "sizeBytes": 32855,
94
+ "sha256": "06b3d5319b6d76d1a4a2433419180016cfd54ed62d086a5e6567a809f8c82634",
95
+ "sha256Origin": "computed-from-content",
96
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/text_encoder/model.safetensors.index.json"
97
+ },
98
+ {
99
+ "path": "tokenizer/added_tokens.json",
100
+ "sourcePath": "tokenizer/added_tokens.json",
101
+ "renamed": false,
102
+ "sizeBytes": 707,
103
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680",
104
+ "sha256Origin": "computed-from-content",
105
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/added_tokens.json"
106
+ },
107
+ {
108
+ "path": "tokenizer/chat_template.jinja",
109
+ "sourcePath": "tokenizer/chat_template.jinja",
110
+ "renamed": false,
111
+ "sizeBytes": 4168,
112
+ "sha256": "a55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8",
113
+ "sha256Origin": "computed-from-content",
114
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/chat_template.jinja"
115
+ },
116
+ {
117
+ "path": "tokenizer/merges.txt",
118
+ "sourcePath": "tokenizer/merges.txt",
119
+ "renamed": false,
120
+ "sizeBytes": 1671853,
121
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5",
122
+ "sha256Origin": "computed-from-content",
123
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/merges.txt"
124
+ },
125
+ {
126
+ "path": "tokenizer/special_tokens_map.json",
127
+ "sourcePath": "tokenizer/special_tokens_map.json",
128
+ "renamed": false,
129
+ "sizeBytes": 613,
130
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd",
131
+ "sha256Origin": "computed-from-content",
132
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/special_tokens_map.json"
133
+ },
134
+ {
135
+ "path": "tokenizer/tokenizer.json",
136
+ "sourcePath": "tokenizer/tokenizer.json",
137
+ "renamed": false,
138
+ "sizeBytes": 11422654,
139
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4",
140
+ "sha256Origin": "hf-lfs-metadata",
141
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/tokenizer.json"
142
+ },
143
+ {
144
+ "path": "tokenizer/tokenizer_config.json",
145
+ "sourcePath": "tokenizer/tokenizer_config.json",
146
+ "renamed": false,
147
+ "sizeBytes": 5404,
148
+ "sha256": "443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0",
149
+ "sha256Origin": "computed-from-content",
150
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/tokenizer_config.json"
151
+ },
152
+ {
153
+ "path": "tokenizer/vocab.json",
154
+ "sourcePath": "tokenizer/vocab.json",
155
+ "renamed": false,
156
+ "sizeBytes": 2776833,
157
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910",
158
+ "sha256Origin": "computed-from-content",
159
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/tokenizer/vocab.json"
160
+ },
161
+ {
162
+ "path": "transformer/config.json",
163
+ "sourcePath": "transformer/config.json",
164
+ "renamed": false,
165
+ "sizeBytes": 541,
166
+ "sha256": "09733c74a3da6d17dd0a0472a091a8950c7c6935889c32c16cc800ede05029de",
167
+ "sha256Origin": "computed-from-content",
168
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/transformer/config.json"
169
+ },
170
+ {
171
+ "path": "transformer/diffusion_pytorch_model.safetensors",
172
+ "sourcePath": "transformer/diffusion_pytorch_model.safetensors",
173
+ "renamed": false,
174
+ "sizeBytes": 7751109744,
175
+ "sha256": "9f29f9edcfdae452a653ffb51a534ca4decd389952c225724ff3b94042612a6e",
176
+ "sha256Origin": "hf-lfs-metadata",
177
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/transformer/diffusion_pytorch_model.safetensors"
178
+ },
179
+ {
180
+ "path": "vae/config.json",
181
+ "sourcePath": "vae/config.json",
182
+ "renamed": false,
183
+ "sizeBytes": 821,
184
+ "sha256": "0d6dfb69ae95a5e2ac9836284bbb63d8b38ce67b25ba2dff380752b2a10ab948",
185
+ "sha256Origin": "computed-from-content",
186
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/vae/config.json"
187
+ },
188
+ {
189
+ "path": "vae/diffusion_pytorch_model.safetensors",
190
+ "sourcePath": "vae/diffusion_pytorch_model.safetensors",
191
+ "renamed": false,
192
+ "sizeBytes": 168120878,
193
+ "sha256": "ca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04",
194
+ "sha256Origin": "hf-lfs-metadata",
195
+ "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/vae/diffusion_pytorch_model.safetensors"
196
+ }
197
+ ],
198
+ "renames": [],
199
+ "notCopiedFromSource": [
200
+ {
201
+ "path": "flux-2-klein-4b.safetensors",
202
+ "reason": "fichier autonome qui dupliquerait le poids du transformeur déjà livré dans transformer/"
203
+ },
204
+ {
205
+ "path": "editing.jpg, others.jpg, realism.jpg",
206
+ "reason": "images d’illustration de la fiche source"
207
+ }
208
+ ],
209
+ "documents": [
210
+ {
211
+ "path": "README-source.md",
212
+ "origin": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/README.md",
213
+ "sizeBytes": 9991,
214
+ "sha256": "bd447051cf2db4bf67b992e563d89c35ebf1123f009c063361a222ab14e1c4f7",
215
+ "gitBlobId": "7b3cca65056e19a6ef27bdd0be671a030f067942",
216
+ "note": "Fiche officielle de la révision source, copie identique"
217
+ },
218
+ {
219
+ "path": "LICENSE.md",
220
+ "origin": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/resolve/e7b7dc27f91deacad38e78976d1f2b499d76a294/LICENSE.md",
221
+ "sizeBytes": 9584,
222
+ "sha256": "ca02bc51900ab07789d1b70283329e7137f5af98f5161c23a1c81fc38a4af1fe",
223
+ "gitBlobId": "0afa7632c1a195ea6627a3c53e6ebf18d1be3aa5",
224
+ "note": "Licence fournie par la source, conservée telle quelle"
225
+ },
226
+ {
227
+ "path": "LICENSE",
228
+ "origin": "https://www.apache.org/licenses/LICENSE-2.0.txt",
229
+ "sizeBytes": 11358,
230
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
231
+ "note": "Texte officiel de la licence Apache 2.0"
232
+ }
233
+ ]
234
+ }