Instructions to use optima-tools-ch/image-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use optima-tools-ch/image-medium with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("optima-tools-ch/image-medium", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download CREDITS.json from optima-tools-ch/image-medium: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/optima-tools-ch/image-medium/resolve/main/CREDITS.json
- Command line
-
hf download hf://optima-tools-ch/image-medium/CREDITS.json
-
curl -L -o CREDITS.json https://huggingface.co/optima-tools-ch/image-medium/resolve/main/CREDITS.json
2.97 kB
| { | |
| "schemaVersion": 1, | |
| "preparedAt": "2026-10-27T20:56:07.611Z", | |
| "package": { | |
| "id": "image.medium", | |
| "repository": "optima-tools-ch/image-medium", | |
| "label": "Génération d'images — Medium" | |
| }, | |
| "model": { | |
| "name": "FLUX.2 [klein] 4B — pipeline Diffusers", | |
| "source": "black-forest-labs/FLUX.2-klein-4B", | |
| "revision": "e7b7dc27f91deacad38e78976d1f2b499d76a294", | |
| "url": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" | |
| }, | |
| "authors": [ | |
| { | |
| "name": "Black Forest Labs", | |
| "url": "https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence", | |
| "role": "éditeur du modèle et propriétaire du dépôt source ; billet cité par la fiche source" | |
| } | |
| ], | |
| "components": [ | |
| { | |
| "folder": "scheduler", | |
| "className": "FlowMatchEulerDiscreteScheduler" | |
| }, | |
| { | |
| "folder": "text_encoder", | |
| "className": "Qwen3ForCausalLM", | |
| "note": "classe indiquée par model_index.json ; la fiche source ne détaille pas son origine" | |
| }, | |
| { | |
| "folder": "tokenizer", | |
| "className": "Qwen2TokenizerFast" | |
| }, | |
| { | |
| "folder": "transformer", | |
| "className": "Flux2Transformer2DModel", | |
| "note": "4 milliards de paramètres selon la fiche source" | |
| }, | |
| { | |
| "folder": "vae", | |
| "className": "AutoencoderKLFlux2" | |
| } | |
| ], | |
| "upstream": [], | |
| "license": { | |
| "spdx": "Apache-2.0", | |
| "name": "Apache License 2.0", | |
| "url": "https://www.apache.org/licenses/LICENSE-2.0.txt", | |
| "files": [ | |
| "LICENSE", | |
| "LICENSE.md" | |
| ] | |
| }, | |
| "licenseNotes": [ | |
| "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.", | |
| "Le texte officiel complet (avec annexe) est ajouté dans `LICENSE`.", | |
| "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." | |
| ], | |
| "copyrightNotices": [], | |
| "preparedAndDistributedBy": { | |
| "name": "Optima Tools", | |
| "organization": "optima-tools-ch", | |
| "role": "Préparateur et distributeur du paquet" | |
| }, | |
| "modifications": { | |
| "weights": "Aucune : octets identiques à ceux de la source, noms et arborescence conservés.", | |
| "renamedFiles": [], | |
| "addedDocuments": [ | |
| "README.md", | |
| "README-source.md (copie)", | |
| "LICENSE (texte officiel Apache 2.0)", | |
| "CREDITS.md", | |
| "CREDITS.json", | |
| "SOURCE.json", | |
| ".optima-package.json" | |
| ] | |
| }, | |
| "notCopiedFromSource": [ | |
| { | |
| "path": "flux-2-klein-4b.safetensors", | |
| "reason": "fichier autonome qui dupliquerait le poids du transformeur déjà livré dans transformer/" | |
| }, | |
| { | |
| "path": "editing.jpg, others.jpg, realism.jpg", | |
| "reason": "images d’illustration de la fiche source" | |
| } | |
| ] | |
| } | |