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
Run this model with HF Jobs
Run itslenoid/flux2-klein-4b-comic-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 files15 unmodified lines16171819202110 unmodified lines323334353637383940414290 unmodified lines13313413513613713813914014114214314415 unmodified lines- mlx- mflux- diffuserspipeline_tag: text-to-imagelibrary_name: diffusersdatasets:10 unmodified lines[](https://opensource.org/licenses/Apache-2.0)[](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)[](https://github.com/neurochipe/mflux)[](https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora)[](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset)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 [mflux](https://github.com/neurochipe/mflux).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.90 unmodified lines---## 📊 Dataset & Training Specifications- **Base Model**: [black-forest-labs/FLUX.2-klein-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) (quantized 8-bit baseline)- **Dataset**: [itslenoid/comic-illustration-dataset](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset) (86 curated high-resolution line-art & schematic illustrations)- **Training Harness**: [mflux](https://github.com/neurochipe/mflux) native MLX LoRA trainer on Apple Silicon- **Format**: Standard `.safetensors` LoRA weights---15 unmodified lines16171819202122232410 unmodified lines35363738394041424344454690 unmodified lines13713813914014114214314414514614714814915015 unmodified lines- mlx- mflux- diffusers- imaginator- apple-silicon-training- qlorapipeline_tag: text-to-imagelibrary_name: diffusersdatasets:10 unmodified lines[](https://opensource.org/licenses/Apache-2.0)[](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B)[](https://github.com/project-kingmaker/imaginator)[](https://github.com/neurochipe/mflux)[](https://huggingface.co/itslenoid/flux2-klein-4b-comic-lora)[](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset)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.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.90 unmodified lines---## 🛠️ Engine & Training ProvenanceThis model was engineered, captioned, and trained end-to-end using **[Imaginator](https://github.com/project-kingmaker/imaginator)**:- **Local Apple Silicon Execution**: 100% native execution on Apple Metal via MLX and `mflux` without requiring cloud GPUs.- **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.- **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.- **Dataset**: [itslenoid/comic-illustration-dataset](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset) (86 curated high-resolution line-art & schematic illustrations).- **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).---
README.md+12-6