Text-to-Image
ai-toolkit
flux
lora
comic
lettering

xcmcomic, FLUX.3 Klein LoRA

A rank 16 LoRA for black-forest-labs/flux-3-image-klein-base, trained on 184 comic panels whose captions quote the lettering that is burned into the pixels. It is a style and typography adapter, not a character adapter.

Trigger: xcmcomic style at the start of the prompt.

The intent is narrow and worth stating plainly: the base model draws comic panels well and spells short quoted strings badly. Every caption in this set names the words on the panel, so the adapter is supervised on the pairing of lettering and pixels rather than on captions that describe a scene and leave the words to chance.

Files

path what
lora/xcmcomic-flux3-klein-v1/xcmcomic-flux3-klein-v1.safetensors final adapter, bf16
lora/xcmcomic-flux3-klein-v1/xcmcomic-flux3-klein-v1-fp16.safetensors same weights in fp16, for cards without bf16
lora/xcmcomic-flux3-klein-v1/xcmcomic-flux3-klein-v1_00000{0500,1000,1500}.safetensors checkpoints at 500, 1000 and 1500 steps, so an earlier stopping point can be chosen without a retrain. Steps 250, 750, 1250 and 1750 existed on the training box and were not kept
lora/xcmcomic-flux3-klein-v1/samples/ the in-training samples, unfiltered, at steps 0, 500, 1000, 1500, 2000
dataset/text-1024.zip 184 jpg plus 184 txt, native 1024 wide
config/train_lora_flux3_xcmcomic.yaml the exact config this was trained with
scripts/bootstrap_train.sh one command rebuild of the whole run on a fresh box
logs/train.log the run log
quants/manifest.json the two GGUF builds this project produces: sizes, sha256, measured quantisation error, and which checkpoint each pairs with
quants/README.md build and verify commands, header notes, and the public GGUF mirrors, including a quant of the base this adapter was trained on
LICENSE.md, NOTICE.md the FLUX Kommunity License and the attribution notice the licence requires

Training

setting value why
base flux-3-image-klein-base the undistilled package. The distilled -comfy weights are trained 16 steps at alpha 16 and cannot be fine-tuned the same way
steps 2000 10.9 epochs of 184 captioned panels
rank / alpha 16 / 16
lr 1e-4, adamw8bit, cosine
resolution 1024 native; a smaller bucket teaches glyphs the 1024 draw cannot hold
batch 1, grad checkpointing
timestep shift 6.93 sampler.alpha in the base package config.json
text encoder frozen, embeddings cached 184 unique captions, one encode each
caption dropout 0.0 dropout trains the caption to be ignored, which is the opposite of the goal

Sampling during training is 50 steps at guidance 3.5, the base package recipe. A 25 step sample of the base model is soft and would make a good checkpoint look bad.

Result

Trained 2026-11-07 on one A100 SXM4 80 GB. 2000 steps took 35m28s at 1.04 s/it, and the whole rented box, one hour 52 minutes of billed time including the 19 GB base download, the environment build and two rounds of samples, cost $1.91 at $1.021/hr. The instance was destroyed after publishing.

The training loss barely moved, and that is the most useful fact on this page:

window mean loss
steps 1 to 100 0.728
steps 900 to 1100 0.729
steps 1901 to 2000 0.703

A 3.4 percent fall over 2000 steps means this adapter is a small perturbation of the base model, not a retrained one. Rank 16 at lr 1e-4 for 10.9 epochs on 184 images is not enough capacity or enough pressure to move a 5.6B model far.

The samples agree with that reading. Both sample prompts were rendered at step 0 and step 2000 with the same seed, 50 steps at guidance 3.5, and read back with a vision model:

  • Letterform quality clearly improves. At step 0 the bubbles are made of malformed glyph clusters (TH?? ?AD, A? r?OU T?S TO F?O ???). At step 2000 the same panels have clean, well formed letterforms; what is wrong at step 2000 is spelling, not drawing.
  • Short quoted strings improve, long ones do not. The prompt asking for "LAST CALL" and "I told you." produced one legible string at step 0 (LAST CALL) and two or three at step 2000, with I told you. spelled correctly in more than one bubble. The multi line bubbles of four to five lines are still pseudo-text at step 2000 (Fryea mat tir pool. Ie tiroa.).
  • The second prompt did not move. "NO ANSWER." was already legible on the signage at step 0 and still is at step 2000. The small placards on the phone box are nonsense at both steps.

So the honest summary is: this checkpoint improves how letters are drawn and helps strings of up to about three words, and it does not teach the model to spell paragraphs. Nothing here should be read as having fixed comic lettering.

What the next run should change

Each of these is a direct response to the flat loss above, and none of them is a correctness fix, so they are recorded rather than guessed at:

  1. Rank 32 or 64, and lr 3e-4 with a short warmup. The current run is underparameterised for the shift being asked of it.
  2. More repeats. 10.9 epochs sounds like a lot but the set is 184 images; 30 repeats (about 5500 steps, roughly 1.6 hours on the same card) gives the lettering loss somewhere to go.
  3. Crop to the lettering. A panel at 1024 wide gives a four word bubble perhaps 200 px to spell itself in. Training on native crops of the bubbles and the signage, at 1024, would put the gradient where the failure is, the same argument that made the hand crops unusable at 344 px.
  4. Keep the base model. The distilled package the app serves (16 steps, alpha 16, no guidance) is not the schedule this adapter saw, so its effect there will be smaller than in the samples above. Serving base at 50 steps guidance 3.5 costs about three times the sampling time on a 24 GB machine.

Use

ai-toolkit, which is how it was trained (arch: flux3, base package layout):

model:
  name_or_path: "black-forest-labs/flux-3-image-klein-base"
  arch: "flux3"
network:
  type: "lora"
  path: "lora/xcmcomic-flux3-klein-v1/xcmcomic-flux3-klein-v1.safetensors"

Base sampling settings are 50 steps, guidance 3.5, shift 6.93 at 1024. The adapter is a style layer, so dropping to the 16 step distilled schedule without retraining it against that schedule will lose most of the effect.

Quants

Two GGUF builds of the image transformer were produced and verified from the distilled checkpoint, and their sizes, hashes and measured quantisation error are in quants/manifest.json. Build commands, the header notes and the mirrors are in quants/README.md.

build type size worst sampled error
flux-3-image-klein-Q4_K.gguf Q4_K_S 3.12 GB 0.08416
flux-3-image-klein-Q8_0.gguf Q8_0 5.90 GB 0.00636

The files are not mirrored here. The machine that built them has 134 kB/s upstream, which is 6.5 hours for the smaller build and 12.2 hours for the larger, and the same checkpoints are already published as GGUF by others (unsloth/flux-3-image-klein-GGUF, unsloth/flux-3-image-klein-base-GGUF, leejet/flux-3-image-klein-GGUF). The hashes in the manifest are what a local build has to reproduce, so the builds are reproducible rather than redistributed.

Both of these are quants of the distilled checkpoint, which is what the app serves. The adapter was trained on the base package, so the tested pairing is a base quant, and unsloth/flux-3-image-klein-base-GGUF publishes one.

The adapter is a dtype portable delta, so it applies unchanged to any quantised build of the same base: the variants/fp8r and variants/nvfp4 builds of the base package load with it, and ComfyUI applies it over whichever DiT precision a workflow uses. Quantising an adapter itself is not meaningful at rank 16; the useful low precision axis is the base, which is why this repo carries the fp16 copy rather than a bit-packed adapter.

A merged full checkpoint is not published here. Merging freezes the adapter into one precision and one licence state, which is worse for anyone who wants to stack it with another LoRA.

Dataset

184 panels, all 1024 wide (183 at 1024x683, one at 1024x849), captions 23 to 83 words, median 46, every caption starting xcmcomic style, and every caption quoting the panel lettering. Panels were kept only when their own lettering was readable; panels with broken lettering (37 of 262 scanned) were excluded, since a malformed hand does not make the words wrong but malformed words teach the opposite of the goal. Multi-panel character sheets were excluded too: their layout is not the single panel this adapter draws.

The panels are my own artwork. The captions were written by reading each panel back, and each quoted string matches the pixels.

Licence

The adapter is a Derivative of the FLUX Model and is distributed under the FLUX Kommunity License v1.0, the same licence as the base package. Non-commercial and non-production unless you are a Qualifying User under that licence. The dataset images are mine, but they were made with FLUX and are published here for training and evaluation of this adapter.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for XcaliburMoon/xcmcomic-flux3-klein

Adapter
(32)
this model