Text-to-Image
Diffusers
MLX
mflux
flux
flux2
flux.2-klein-4b
lora
comic
illustration
line-art
crosshatching
black-and-white
comic-art
technical-art
schematics
imaginator
apple-silicon-training
qlora
Instructions to use itslenoid/flux2-klein-4b-comic-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use itslenoid/flux2-klein-4b-comic-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("itslenoid/flux2-klein-4b-comic-lora") prompt = "a black and white comic illustration of a software engineer at a multi-monitor workstation, detailed line art, crosshatching, technical schematics on the wall, high contrast" image = pipe(prompt).images[0] - MLX
How to use itslenoid/flux2-klein-4b-comic-lora with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download itslenoid/flux2-klein-4b-comic-lora --local-dir flux2-klein-4b-comic-lora
- mflux
How to use itslenoid/flux2-klein-4b-comic-lora with mflux:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Draw Things
- DiffusionBee
- Atomic Chat
docs: update model card with FLUX.2 Klein marketing, benchmarks, and quickstart
Browse files
README.md
CHANGED
|
@@ -16,6 +16,9 @@ tags:
|
|
| 16 |
- mlx
|
| 17 |
- mflux
|
| 18 |
- diffusers
|
|
|
|
|
|
|
|
|
|
| 19 |
pipeline_tag: text-to-image
|
| 20 |
library_name: diffusers
|
| 21 |
datasets:
|
|
@@ -32,11 +35,12 @@ widget:
|
|
| 32 |
|
| 33 |
[](https://opensource.org/licenses/Apache-2.0)
|
| 34 |
[](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)
|
|
|
|
| 35 |
[](https://github.com/neurochipe/mflux)
|
| 36 |
[](https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora)
|
| 37 |
[](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset)
|
| 38 |
|
| 39 |
-
A high-performance LoRA adapter specialized in **pen-and-ink comic illustration, crosshatching, and technical schematics**, trained on [black-forest-labs/FLUX.2-klein-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) using [
|
| 40 |
|
| 41 |
This repository contains the **standalone dynamic LoRA adapter** (`comic-illustration-lora.safetensors`, ~99 MB). If you prefer complete, out-of-the-box models without needing runtime adapter injection, see the pre-baked fused variants below.
|
| 42 |
|
|
@@ -133,12 +137,14 @@ To maximize the comic style activation, incorporate these keywords in your posit
|
|
| 133 |
|
| 134 |
---
|
| 135 |
|
| 136 |
-
##
|
| 137 |
|
| 138 |
-
-
|
| 139 |
-
- **
|
| 140 |
-
- **
|
| 141 |
-
- **
|
|
|
|
|
|
|
| 142 |
|
| 143 |
---
|
| 144 |
|
|
|
|
| 16 |
- mlx
|
| 17 |
- mflux
|
| 18 |
- diffusers
|
| 19 |
+
- imaginator
|
| 20 |
+
- apple-silicon-training
|
| 21 |
+
- qlora
|
| 22 |
pipeline_tag: text-to-image
|
| 23 |
library_name: diffusers
|
| 24 |
datasets:
|
|
|
|
| 35 |
|
| 36 |
[](https://opensource.org/licenses/Apache-2.0)
|
| 37 |
[](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)
|
| 38 |
+
[](https://github.com/project-kingmaker/imaginator)
|
| 39 |
[](https://github.com/neurochipe/mflux)
|
| 40 |
[](https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora)
|
| 41 |
[](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset)
|
| 42 |
|
| 43 |
+
A high-performance LoRA adapter specialized in **pen-and-ink comic illustration, crosshatching, and technical schematics**, trained on [black-forest-labs/FLUX.2-klein-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) using **[Imaginator](https://github.com/project-kingmaker/imaginator)** — the end-to-end Apple Silicon FLUX.2 training and data engineering framework.
|
| 44 |
|
| 45 |
This repository contains the **standalone dynamic LoRA adapter** (`comic-illustration-lora.safetensors`, ~99 MB). If you prefer complete, out-of-the-box models without needing runtime adapter injection, see the pre-baked fused variants below.
|
| 46 |
|
|
|
|
| 137 |
|
| 138 |
---
|
| 139 |
|
| 140 |
+
## 🛠️ Engine & Training Provenance
|
| 141 |
|
| 142 |
+
This model was engineered, captioned, and trained end-to-end using **[Imaginator](https://github.com/project-kingmaker/imaginator)**:
|
| 143 |
+
- **Local Apple Silicon Execution**: 100% native execution on Apple Metal via MLX and `mflux` without requiring cloud GPUs.
|
| 144 |
+
- **Zero-OOM Auto-Captioning Pipeline**: Curated and captioned using a token-optimized vision-language pipeline that reduced visual memory footprint from >8 GB down to **1.2 GB**, fitting comfortably on 16 GB unified RAM.
|
| 145 |
+
- **Precision Target Layers**: Injected rank-16 Low-Rank Adaptation across single and double transformer blocks (cross-attention, self-attention, and feed-forward MLP layers) with gradient checkpointing on 8-bit quantized weights.
|
| 146 |
+
- **Dataset**: [itslenoid/comic-illustration-dataset](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset) (86 curated high-resolution line-art & schematic illustrations).
|
| 147 |
+
- **Train Your Own Models**: To train custom FLUX.2 Klein LoRA adapters locally on Apple Silicon, visit the [Imaginator repository](https://github.com/project-kingmaker/imaginator).
|
| 148 |
|
| 149 |
---
|
| 150 |
|