Nyx-36M LoRAs

Released under the Apache License 2.0, the same licence as the base model.

Six example LoRAs for Nyx-36M by Bhoidy, a 36M-parameter text-to-sprite model that draws native 32ร—32 RGBA pixel art. All credit for the base model goes to its author; these are small add-on adapters trained on top of it.

They are the Nyx-36M counterparts of the Solstice 80M LoRAs: the same 250 training sprites, captions and triggers per LoRA, trained with the same recipe, so the two base models can be compared like for like.

LoRA Trigger Training sprites File Sheet
Ghost texture spectral style 250 lora sheet
Monochrome monochrome 250 lora sheet
Cyberpunk neon city style 250 lora sheet
Knight identity sir aldric 250 lora sheet
Slime slime style 250 lora sheet
Princess princess style 246 lora sheet

Ghost texture LoRA on Nyx-36M: base, strength 0.5 and strength 1.0

Ghost texture (spectral style): rows are the base model, then the LoRA at strength 0.5 and 1.0, two seeds per prompt. The prompts on the right leave out the trigger and stay unchanged.

Monochrome LoRA on Nyx-36M

Monochrome (monochrome), same layout.

Usage

train_nyx_lora.py uses Nyx-36M's own code and weights from a local clone of its repository (the nyx_v2 package and nyx-image-36m.safetensors). It needs torch transformers safetensors numpy pillow.

git clone https://huggingface.co/Bhoidy/nyx-image-36m     # or set NYX36M=/path/to/a/clone
python train_nyx_lora.py generate --lora loras/ghost/lora.safetensors --trigger "spectral style" \
    --prompt "spectral style, red apple" --out ghost-apple.png

Write prompts as <trigger>, <description>; the script turns them into Nyx's own template, <trigger> pixel art icon of a <description>, which Nyx already understands. --strength scales the LoRA (1.0 is the trained strength). The LoRA is merged into the weights before sampling, as W += strength * alpha / rank * B @ A, and sampling uses Nyx's sampler and settings (30 Heun steps, CFG 4 on t โ‰ค 0.75). Each file's metadata holds its rank, alpha, trigger and template.

Recipe

  • Rank 16, alpha 16, adapters on the attention and MLP linear layers of all 12 DiT blocks (96 layers, 1.6M trainable parameters); Nyx-36M and SigLIP stay frozen.
  • AdamW at 3e-4, batch 16, 2,000 steps with 100 warmup steps; about 4 minutes on an RTX A6000.
  • Rectified-flow loss with Nyx's alpha-aware outline weighting, 10% empty prompts (so CFG keeps working), and mirrored training with left and right swapped in the captions.
  • Prior preservation: half of every batch is 400 sprites that Nyx-36M itself drew from prior_prompts.txt, trained with their own prompts and no trigger, so prompts without the trigger stay close to the base model.

To train your own: a folder of 32ร—32 RGBA PNGs with a captions.jsonl ({"file": ..., "caption": ...} per line) or a .txt caption beside each image, then

python train_nyx_lora.py train --data my-sprites --trigger "my style" --lr 3e-4 --out runs/my-style
python train_nyx_lora.py sheet --lora runs/my-style/lora.safetensors --trigger "my style" \
    --prompts sheet-prompts.txt --out sheet.png

Comparison with Solstice 80M

These LoRAs use the Solstice recipe with one change: a learning rate of 3e-4 instead of 1e-4. At 1e-4, the Nyx ghost LoRA only partly learned the style (one of two cats stayed orange); 3e-4 or rank 32 fixed that, and 3e-4 is the cheaper of the two. Seen side by side on the same prompts:

  • At strength 1.0 the styles come through on Nyx-36M: ghostly purple chests, knights, cats, dragons and towers; grey monochrome apples, potions, foxes and chests; dark neon cyberpunk samurai, cars and ramen; the plumed "sir aldric" knight in new poses. Slime and princess are subtle on both models, since both bases already draw those subjects well.
  • At strength 0.5 the effect is weak on Nyx-36M and mostly visible on Solstice 80M, which carries more of a style at half strength.
  • Strongly coloured subjects resist the style on Nyx-36M: a red apple stays red (or turns magenta) under the ghost LoRA, where Solstice turns it into a purple ghost apple.
  • Prompts without the trigger stay unchanged on both, thanks to prior preservation.
  • A trigger that is not a real word (spktrz, which neither SigLIP nor T5Gemma reads as a word) gave the same result on Nyx-36M as spectral style, so the gap is not the trigger: the likely causes are the adapters' smaller size (1.6M parameters against Solstice's 3.0M) and Nyx-36M's base prompt following.
  • Training is faster on Nyx-36M: about 4 minutes against 9 for Solstice 80M.

Example sheets

Each sheet has three rows: the base model, then the LoRA at strength 0.5 and 1.0, two seeds per prompt. Prompts without the trigger show what the LoRA does to ordinary prompts.

All six sheets

Ghost texture Monochrome Cyberpunk Knight identity Slime Princess

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 ThalisAI/nyx-36m-loras

Adapter
(1)
this model