Hey everyone!
I've been experimenting with character/person LoKR training on MOSS Image Base using Ostris AI Toolkit, and I wanted to share my experience, training configuration, and a few interesting observations.
I'm also hoping to get some feedback from others experimenting with MOSS, especially regarding LoKR vs traditional LoRA, identity preservation, and optimal training settings.
My Results So Far
I'm training a character/person LoKR using MOSS Image Base and testing the results with MOSS SFT.
The results have been quite encouraging, although they're not consistently perfect.
- Facial resemblance: At times, I'm getting approximately 90% likeness to the original person, based on my visual assessment.
- LoKR strength: I've found that increasing the strength to 1.25 gives me considerably better identity retention.
- MOSS SFT: Results are decent, but the consistency of facial likeness varies depending on the prompt, pose, and composition.
- 8-step LoRA: Here's where things become particularly interesting. When I use my trained character LoKR alongside an 8-step LoRA, the perceived facial resemblance improves dramatically — much more than I was expecting.
I'm not claiming these results are universal, but the improvement with the 8-step setup has been noticeable enough that I thought it was worth discussing.
One Important Observation: Captioning Is a MUST!
For this experiment, I captioned my training images directly within Ostris AI Toolkit using Ideogram's JSON captioning.
And from my experience, I would strongly recommend not overlooking this step.
For character/person training, I believe high-quality, descriptive captions are extremely important.
Rather than relying on generic captions, I wanted the model to understand the clothing, hairstyle, pose, background, lighting, camera perspective, and overall composition while learning the person's identity.
For my workflow, Ideogram JSON captioning is a must.
I'd be particularly interested to hear whether anyone has compared Ideogram JSON captions against Florence, JoyCaption, Qwen-VL, or other captioning methods for MOSS character training.
My Ostris AI Toolkit LoKR Configuration
Here are the actual settings I've been using:
| Parameter | Value |
|---|
| Base model | OpenMOSS-Team/MOSS-Image-Base |
| Architecture | moss_image |
| Network | LoKR |
| Linear / Alpha | 32 / 32 |
| Conv / Alpha | 16 / 16 |
| LoKR Full Rank | True |
| LoKR Factor | 8 |
| Total Training Steps | 6,600 |
| Batch Size | 1 |
| Gradient Accumulation | 2 |
| Optimizer | AdamW8bit |
| Learning Rate | 0.0001 |
| Weight Decay | 0.00005 |
| Training Precision | BF16 |
| Quantization | ConvRot8 (Model + Text Encoder) |
| Resolution Buckets | 512, 768, 1024 |
| Caption Dropout | 0.05 |
| Noise Scheduler | FlowMatch |
| Timestep Type | Shift |
| Differential Guidance | Enabled |
| Differential Guidance Scale | 4 |
| Loss Type | MSE |
| Gradient Checkpointing | Enabled |
| EMA | Disabled |
| Text Encoder Training | Disabled |
| Sampling Guidance | 3 |
| Sampling Steps | 30 |
| LoKR Strength During Inference | 1.25 |
Additional settings worth mentioning:
ignore_if_contains: ["layers.22."]uncond_skip_layers: [22]switch_boundary_every: 1content_or_style: balanceddiff_output_preservation: falsesave_every: 330sample_every: 660
Complete AI Toolkit YAML Configuration
I've removed my personal trigger word, dataset names, and local paths. You can replace the placeholders with your own values.
---
job: "extension"
config:
name: "MOSS_Character_LoKR"
process:
- type: "diffusion_trainer"
training_folder: "YOUR_OUTPUT_DIRECTORY"
sqlite_db_path: "./aitk_db.db"
device: "cuda"
trigger_word: "YOUR_TRIGGER_WORD"
performance_log_every: 10
network:
type: "lokr"
linear: 32
linear_alpha: 32
conv: 16
conv_alpha: 16
lokr_full_rank: true
lokr_factor: 8
network_kwargs:
ignore_if_contains:
- "layers.22."
save:
dtype: "bf16"
save_every: 330
max_step_saves_to_keep: 100
save_format: "diffusers"
push_to_hub: false
datasets:
- folder_path: "YOUR_DATASET_DIRECTORY"
mask_path: null
mask_min_value: 0.1
default_caption: ""
caption_ext: "txt"
caption_dropout_rate: 0.05
cache_latents_to_disk: false
is_reg: false
network_weight: 1
resolution:
- 512
- 768
- 1024
controls: []
shrink_video_to_frames: true
num_frames: 1
flip_x: false
flip_y: false
num_repeats: 1
train:
batch_size: 1
bypass_guidance_embedding: false
steps: 6600
gradient_accumulation: 2
train_unet: true
train_text_encoder: false
gradient_checkpointing: true
noise_scheduler: "flowmatch"
optimizer: "adamw8bit"
timestep_type: "shift"
content_or_style: "balanced"
optimizer_params:
weight_decay: 0.00005
unload_text_encoder: false
cache_text_embeddings: false
lr: 0.0001
ema_config:
use_ema: false
ema_decay: 0.99
skip_first_sample: true
force_first_sample: false
disable_sampling: false
dtype: "bf16"
diff_output_preservation: false
diff_output_preservation_multiplier: 1
diff_output_preservation_class: "person"
switch_boundary_every: 1
loss_type: "mse"
do_differential_guidance: true
differential_guidance_scale: 4
logging:
log_every: 1
use_ui_logger: true
model:
name_or_path: "OpenMOSS-Team/MOSS-Image-Base"
quantize: true
qtype: "convrot8"
quantize_te: true
qtype_te: "convrot8"
arch: "moss_image:base"
low_vram: false
model_kwargs:
uncond_skip_layers:
- 22
compile: false
layer_offloading: false
layer_offloading_text_encoder_percent: 1
layer_offloading_transformer_percent: 1
sample:
sampler: "flowmatch"
sample_every: 660
sample_start_step: 0
width: 1024
height: 1024
samples:
- prompt: "a woman holding a coffee cup, in a beanie, sitting at a cafe"
- prompt: "woman playing the guitar, on stage, singing a song, laser lights, punk rocker"
neg: ""
seed: 42
walk_seed: true
guidance_scale: 3
sample_steps: 30
num_frames: 1
fps: 1
meta:
name: "MOSS_Character_LoKR"
version: "1.0"
A Few Things I'd Love to Discuss with the Community
1. LoKR vs LoRA for MOSS Image Base
Has anyone directly compared LoKR and traditional LoRA using the same character dataset?
I'm particularly interested in whether LoKR provides better identity preservation, fewer unwanted learned characteristics, or improved flexibility across different prompts.
2. Is 6,600 steps too much?
I'm currently using 6,600 steps with gradient accumulation set to 2.
I'd love to know whether anyone has experimented with fewer steps, alternative learning rates, or different accumulation values.
Have you observed identity improvements continuing throughout training, or does the model eventually reach a point where additional steps become counterproductive?
3. Why does the 8-step LoRA improve facial likeness so dramatically?
This is probably my biggest question.
With MOSS SFT, I get decent results at a LoKR strength of 1.25.
However, when I combine the character LoKR with an 8-step LoRA, the resemblance appears to increase multifold.
Has anyone else noticed this?
Could this be related to changes in the denoising trajectory, the distilled model's behavior, or how the character LoKR interacts with the accelerated sampling process?
I'd love to hear technical explanations or actual experimental results.
4. Is differential guidance at 4 optimal?
I'm using differential guidance with a scale of 4.
Has anyone tested different values specifically for MOSS character/person training?
I'm curious whether lowering or increasing this value improves identity retention, prompt flexibility, or overall image quality.
5. Are my LoKR network settings sensible?
My current configuration uses:
- Linear: 32 / Alpha: 32
- Conv: 16 / Alpha: 16
- Full Rank: True
- Factor: 8
Would increasing or decreasing these values produce better results for realistic human identity training?
I'm especially interested in experiments where people have changed only one setting at a time.
Final Thoughts
I'm genuinely impressed with the potential of MOSS Image Base for realistic character training.
There's definitely room for improvement in terms of consistency, but achieving what looks like roughly 90% facial resemblance in some generations is already encouraging.
The biggest surprise has been the improvement when pairing my trained LoKR with an 8-step LoRA.
I'm sharing this as an experiment, not as an officially recommended or universally optimized configuration.
If you're also training characters with MOSS using Ostris AI Toolkit, please share your configurations, observations, and failures too!
In particular, I'd love to see controlled comparisons between LoRA and LoKR, different captioning strategies, training durations, and inference configurations.
And if the MOSS developers or experienced AI Toolkit trainers are reading this, I'd really appreciate any recommendations on the ideal LoRA/LoKR configuration for character identity training.
What settings have worked best for you? And has anyone else experienced dramatically better identity preservation with an 8-step LoRA?
Looking forward to comparing notes with everyone! One technical detail I deliberately preserved: gradient_accumulation: 2 with batch_size: 1 gives an effective batch size of 2, assuming the normal accumulation behavior. Also, the 90% resemblance and dramatic 8-step improvement are presented as your observations, rather than scientifically measured benchmarks. That distinction should make the discussion more credible and encourage meaningful technical replies.