-
Training epochs: 416
-
Training steps: 10000
-
Learning rate: 1.0
- Learning rate schedule: constant
- Warmup steps: 0
-
Max grad value: 1.0
-
Effective batch size: 1
- Micro-batch size: 1
- Gradient accumulation steps: 1
- Number of GPUs: 1
-
Gradient checkpointing: True
-
Prediction type: autoregressive_next_token
-
Optimizer: prodigy
-
Trainable parameter precision: Pure BF16
-
Base model precision: no_change
-
Caption dropout probability: 0.0%
-
LoRA Rank: 64
-
LoRA Alpha: None
-
LoRA Dropout: 0.1
-
LoRA initialisation style: default
-
LoRA mode: Standard
1import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'MiniMaxAI/MiniMax-Music3'
5adapter_id = 'RareConcepts/soad-mm3-xm-20260822-10k-prodigy-nocapdrop'
6pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "An astronaut is riding a horse through the jungles of Thailand."
10negative_prompt = 'blurry, cropped, ugly'
11
12## Optional: quantise the model to save on vram.
13## Note: The model was not quantised during training, so it is not necessary to quantise it during inference time.
14#from optimum.quanto import quantize, freeze, qint8
15#quantize(pipeline.transformer, weights=qint8)
16#freeze(pipeline.transformer)
17
18pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
19model_output = pipeline(
20 prompt=prompt,
21 negative_prompt=negative_prompt,
22 num_inference_steps=30,
23 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
24 width=256,
25 height=256,
26 guidance_scale=7.5,
27).images[0]
28
29model_output.save("output.png", format="PNG")
30
The four caption controls separate trigger response from descriptive style learning and unrelated-style leakage:
NextLat predictor and XM route-embedding sidecars are training-only and are intentionally not used during inference.