> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omnichar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Train a MOSS-Image LoRA on a 12GB GPU

> Train a MOSS-Image LoRA locally on the int8 ConvRot build. The 5.4GB base trains as stored, in about 6.5GB of VRAM at 512px, and the LoRA loads on any build.

MOSS-Image is OpenMOSS' 5B single-stream DiT, with Qwen3.5-9B as its text encoder and a FLUX.2 VAE. Omnichar Studio trains it on the int8 ConvRot build ComfyUI ships. The base stays int8 while the LoRA trains at full precision on top, so the 5.4GB model trains in about 6.5GB of VRAM at 512px.

## Get the files

The MOSS-Image node's model popup downloads all three from [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image). Training reuses them:

```text theme={null}
core/models/
  diffusion_models/  moss_image_sft_int8_convrot.safetensors
  text_encoders/     qwen3.5_9b_int8_convrot.safetensors
  vae/               flux2-vae_small.safetensors
```

The `qwen3.5_9b_w4a8_gptq` encoder in ComfyUI's templates needs ComfyUI's own kernels, so it doesn't load here. Pick it and the node tells you to use the int8 ConvRot or bf16 encoder.

## Choose a base

| Base | File | Notes |
| - | - | - |
| SFT, int8 (recommended) | `moss_image_sft_int8_convrot.safetensors` | The build the generate node runs |
| SFT, bf16 | `moss_image_sft_bf16.safetensors` | Full precision, or int8 at load |
| Base, int8 | `moss_image_base_int8_convrot.safetensors` | The raw pretrain, before instruction tuning |
| Base, bf16 | `moss_image_base_bf16.safetensors` | Full precision, or int8 at load |

Train on SFT if you will generate with SFT. The LoRA uses the model's own module names, the same keys community MOSS-Image LoRAs ship with, so one adapter loads on the int8 and bf16 builds alike.

## Base precision

MOSS-Image offers int8 ConvRot where other models offer 4-bit.

* **Auto** (default) trains an int8 base as it is. On a bf16 base it keeps full precision when the base and its activations fit your card, and stores the base int8 when they don't.
* **Full precision (bf16)** needs a bf16 base.
* **int8 ConvRot** stores a bf16 base int8 as it loads, the same format as the int8 file.

There is no 4-bit option, because the model reads its activation precision off its weights and 4-bit weights would have it compute in bytes.

## VRAM

Measured on an RTX PRO 4500 (32GB), rank 16, batch 1. Each figure is the peak of one training step, from `torch.cuda.max_memory_allocated`:

| Base | 512px | 768px | 1024px |
| - | - | - | - |
| int8 ConvRot | 6.5GB | 7.3GB | 8.5GB |
| bf16 | 11.0GB | 11.8GB | 12.8GB |

Before training starts, the run encodes your captions with Qwen3.5-9B and then frees the encoder. With the int8 encoder that pass peaks at about 10GB, higher than any 512px training step, so a 12GB card is the floor. Loading that encoder also peaks at 16.5GB of system RAM, because the int8 file is read whole, so plan on 24GB of RAM. Training itself uses about 2.7GB.

## Speed

On the same card a step on the int8 base takes 0.8 seconds at 512px, 1.7 at 768px and 3.3 at 1024px. The bf16 base is about a quarter faster, because the int8 base quantizes its activations on every layer. Over a whole run, steps take a little longer than the single-step figures, because checkpoints are written every 250 steps.

| Run | Images | Resolution | Steps | Learning rate | Start to finished file |
| - | - | - | - | - | - |
| Duotone style | 12 | 512px | 400 | 2e-4 | 7 minutes |
| lin, a character | 10 | 1024px | 1500 | 1e-4 | 88 minutes, about 3.6 s per step |

Both trained on the SFT int8 base at rank 16. The 1024px run used 8.8GB of GPU memory in total, as `nvidia-smi` reports it. A finished rank 16 LoRA is 149MB, and each resume checkpoint is 144MB, the adapter plus its optimizer state.

MOSS-Image trains in bf16, so the trainer refuses a GPU without it, such as a T4. Generating doesn't need bf16: on those cards the node computes in fp32, because fp16 overflows this model.

## Settings that worked

A style LoRA learned a duotone look from 12 captioned images in 400 steps: rank 16, alpha 16, learning rate 2e-4, 512px, caption dropout 0.05, on the SFT int8 base. A character LoRA held one face across 15 new scenes after 1500 steps at 1024px from 10 photos, at learning rate 1e-4, with every caption starting `lin, photo of linchar woman`. Unsloth's MOSS-Image guide starts from rank 32, learning rate 1e-4, 768px and 500 steps, which fits a 12GB card on the int8 base.

## The lin LoRA and its dataset

These four came from the lin character LoRA above, rendered at 896×1152, 30 steps, CFG 3, with the LoRA at strength 1.0 and seeds 2, 7, 11 and 13.

![Lin sitting cross-legged on a sunlit bed reading a paperback, in an oversized white t-shirt](https://mintcdn.com/omnichar/U8Y5pg1pmwMPKdEa/images/lora/moss-lin-reading.webp?fit=max\&auto=format\&n=U8Y5pg1pmwMPKdEa\&q=85\&s=21a0aef95b84c02b1fb380e759fe4d04)

Reading in bed

![Lin laughing with her eyes closed at an outdoor cafe table in Paris, a croissant and espresso in front of her](https://mintcdn.com/omnichar/U8Y5pg1pmwMPKdEa/images/lora/moss-lin-cafe.webp?fit=max\&auto=format\&n=U8Y5pg1pmwMPKdEa\&q=85\&s=1d7580eed1fd4a9da2b5fd4d1f8ecca4)

Paris cafe

![Lin at a sunny farmers market in a denim jacket, holding a paper bag of oranges](https://mintcdn.com/omnichar/U8Y5pg1pmwMPKdEa/images/lora/moss-lin-market.webp?fit=max\&auto=format\&n=U8Y5pg1pmwMPKdEa\&q=85\&s=f63bdd5e478d5fe58ee60d93faee3f46)

Farmers market

![Lin riding a bicycle along a canal path, a tote bag in the front basket](https://mintcdn.com/omnichar/U8Y5pg1pmwMPKdEa/images/lora/moss-lin-cycling.webp?fit=max\&auto=format\&n=U8Y5pg1pmwMPKdEa\&q=85\&s=9811bd3a304c9f30e1102edcef13d219)

Canal path

The LoRA, its 10 captioned training photos and all 16 renders with their prompts are published as [inlineresearch/lin-moss-image-lora](https://huggingface.co/datasets/inlineresearch/lin-moss-image-lora) on Hugging Face, under Apache-2.0.

* [Training photos and captions](https://huggingface.co/datasets/inlineresearch/lin-moss-image-lora/tree/main/data): drop the folder into a dataset to train the same LoRA.
* [lin.safetensors](https://huggingface.co/datasets/inlineresearch/lin-moss-image-lora/blob/main/lora/lin.safetensors): put it in `models/loras/` to generate with lin straight away.
* [Every render and its prompt](https://huggingface.co/datasets/inlineresearch/lin-moss-image-lora/tree/main/outputs): the prompt, seed and settings for each image are in `metadata.jsonl`.

## Generate with it

Wire a LoRA loader into the MOSS-Image node and start the prompt with your trigger word. The node defaults to 30 steps at CFG 3, with OpenMOSS' recommended negative prompt and skip-layer guidance on block 22. A character with a trained MOSS-Image adapter applies the same way; see [Characters](https://docs.omnichar.org/characters.md).

## Licence

MOSS-Image weights and code are Apache-2.0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.