Run this model with HF Jobs
Run nynxz/MOSS-Image on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nynxz/MOSS-Image. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nynxz/MOSS-Image on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nynxz/MOSS-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use nynxz/MOSS-Image with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
README: name the LoRA SFT Destripe, add 1024 px results and strength advice
Browse filesStrength 1.0 at 768 px, 1.5 at 1024 px (blind test: stripe left in 1 of 12
images at 1.5 vs 6 of 12 at 1.0). Credit MATLOWAI's DeBand investigation up
front; 'DeBand' now refers only to his project.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 unmodified lines91011121314151617181924 unmodified lines444546474849502 unmodified lines535455565758594 unmodified lines646566676869707172737475762 unmodified lines79808182838485868788899091929394959697989910010110217 unmodified lines1201211221231241251261271288 unmodified lineslicense: apache-2.0---# MOSS-Image: SFT deband LoRA + split q/k/v checkpointsThis repo has two things for running MOSS-Image in ComfyUI:- **[A 1.9 MB LoRA](#sft-deband-lora)** that removes the faint vertical color stripes MOSS-Image SFT draws in smooth areas.- **[Split q/k/v checkpoints](#split-qkv-non-fused-checkpoints)**: the same weights as Comfy-Org's, with attention q, k and v stored as separate tensors.Original model repositories:24 unmodified lines---## SFT deband LoRAMOSS-Image **SFT** often paints evenly spaced vertical color stripes across smooth areas such asskies, fog, walls and studio backdrops. The stripes are about 21 px apart at 1024 px wide and 16 px2 unmodified lines`moss_sft_deband_top64_bf16.safetensors` removes them while keeping nearly all of what SFT does.*Same prompt and seed (MOSS SFT int8, ER-SDE, 25 steps, CFG 2.5, skip-layer guidance on layer 22).Left: the image. Right: the color-only view from [bandviz](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand)4 unmodified lines1. Load the **SFT** model: Comfy-Org's `moss_image_sft_bf16` or `moss_image_sft_int8_convrot`, or`moss_image_sft_bf16_split_qkv` from this repo.2. Add **LoraLoaderModelOnly** with this file at strength **1.0**.3. Sample as usual. Everything else in the workflow stays the same.Use strength 1.0. At 1.0 the LoRA removes exactly the parts of SFT's change that cause stripes. Highervalues push those parts in the opposite direction instead of removing more banding. 2.0 scored the sameas 1.0 on banding and moved the image further from SFT. It is built from SFT's own changes, so use iton SFT only, not on Base.**Bypass mode on fused files:** the LoRA touches q, k and v in a few layers. ComfyUI's normal LoRAloading handles that on the fused Comfy-Org checkpoints. **Load LoRA (Bypass)** drops q/k/v adapters on2 unmodified lines### How well it worksHeld-out test: 4 prompts with large smooth areas (sand dunes, a plain wall, open water, a portrait ona blurred backdrop) Γ 3 seeds, none of them used to build the fix. 768 px, ER-SDE, 25 steps, CFG 2.5.| Model | bandviz score (median) | Images whose spectrum still peaks at the 16 px stripe | Similarity to SFT (SSIM) | Size || --- | --- | --- | --- | --- || SFT | 9.8 | 9 / 12 | 1.000 | β || SFT, layers 37β41 reverted to Base ([MATLOWAI's fix](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand)) | 6.5 | 8 / 12 | 0.980 | 1.13 GB || **SFT + this LoRA** | **4.2** | **1 / 12** | **0.995** | **1.9 MB** || Base | 4.2 | 5 / 12 | 0.876 | β |- **bandviz score:** MATLOWAI's metric. The column color spectrum's strongest peak at 10β48 px, dividedby the median. Lower means less banding.- **SSIM:** how close the image stays to plain SFT at the same seed. 1.0 is identical.The LoRA brings banding down to Base's level while keeping the image 99.5% similar to SFT. Revertingwhole layers changes the image more and leaves most of the stripes. On the 1024 px sky image above,bandviz scores 23.7 for SFT (stripes every 21.4 px) and 9.3 with the LoRA, where the peak moves off thestripe width. MATLOWAI's reference for "looks clean" is about 16.### How it was made17 unmodified lines**Limits:**- Validated at 768 px (table above). At 1024 px it has been checked on the sky image above; a full1024 px held-out run is still in progress. All tests use ER-SDE / 25 steps / CFG 2.5. Other samplersare untested.- Seed-to-seed variation in banding is large. The numbers above are medians over 12 images.Credits: banding analysis and the bandviz metric by8 unmodified lines91011121314151617181924 unmodified lines444546474849502 unmodified lines5354555657585960614 unmodified lines666768697071727374757677787980812 unmodified lines8485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012117 unmodified lines1391401411421431441451468 unmodified lineslicense: apache-2.0---# MOSS-Image: SFT Destripe LoRA + split q/k/v checkpointsThis repo has two things for running MOSS-Image in ComfyUI:- **[SFT Destripe](#sft-destripe-lora)**, a 1.9 MB LoRA that removes the faint vertical color stripes MOSS-Image SFT draws in smooth areas.- **[Split q/k/v checkpoints](#split-qkv-non-fused-checkpoints)**: the same weights as Comfy-Org's, with attention q, k and v stored as separate tensors.Original model repositories:24 unmodified lines---## SFT Destripe LoRAMOSS-Image **SFT** often paints evenly spaced vertical color stripes across smooth areas such asskies, fog, walls and studio backdrops. The stripes are about 21 px apart at 1024 px wide and 16 px2 unmodified lines`moss_sft_deband_top64_bf16.safetensors` removes them while keeping nearly all of what SFT does.**Builds on [MATLOWAI's DeBand investigation](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand).** His block-swap analysis found the layers that carry the stripes, and his bandviz tool is the banding score used below. His fix reverts whole layers. This LoRA removes only the few directions inside those layers that feed the stripes.*Same prompt and seed (MOSS SFT int8, ER-SDE, 25 steps, CFG 2.5, skip-layer guidance on layer 22).Left: the image. Right: the color-only view from [bandviz](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand)4 unmodified lines1. Load the **SFT** model: Comfy-Org's `moss_image_sft_bf16` or `moss_image_sft_int8_convrot`, or`moss_image_sft_bf16_split_qkv` from this repo.2. Add **LoraLoaderModelOnly** with this file.3. Set the strength by resolution:- **1.0 at 768 px**- **1.5 at 1024 px**4. Sample as usual. Everything else in the workflow stays the same.At 1024 px the stripes are wider, and 1.0 leaves a faint trace in about half of images. 1.5 clears it(stripe left in 1 of 12 test images instead of 6 of 12) for a tiny cost in similarity to SFT. 2.0 is nobetter than 1.5 and moves further from SFT. The LoRA is built from SFT's own changes, so use it on SFTonly, not on Base.**Bypass mode on fused files:** the LoRA touches q, k and v in a few layers. ComfyUI's normal LoRAloading handles that on the fused Comfy-Org checkpoints. **Load LoRA (Bypass)** drops q/k/v adapters on2 unmodified lines### How well it worksBlind test: 4 prompts with large smooth areas (sand dunes, a plain wall, open water, a portrait on ablurred backdrop) Γ 3 seeds, none of them used to build the fix. ER-SDE, 25 steps, CFG 2.5.**768 px**| Model | bandviz score (median) | Stripe still the strongest peak | Similarity to SFT (SSIM) | Size || --- | --- | --- | --- | --- || SFT | 9.8 | 9 / 12 | 1.000 | β || SFT, layers 37β41 reverted to Base ([MATLOWAI's fix](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand)) | 6.5 | 8 / 12 | 0.980 | 1.13 GB || **SFT + this LoRA @ 1.0** | **4.2** | **1 / 12** | **0.995** | **1.9 MB** || Base | 4.2 | 5 / 12 | 0.876 | β |**1024 px**| Model | bandviz score (median) | Stripe still the strongest peak | Similarity to SFT (SSIM) | Size || --- | --- | --- | --- | --- || SFT | 24.0 | 11 / 12 | 1.000 | β || SFT, layers 37β41 reverted to Base (MATLOWAI's fix) | 8.4 | 4 / 12 | 0.983 | 1.13 GB || SFT + this LoRA @ 1.0 | 6.1 | 6 / 12 | 0.996 | 1.9 MB || **SFT + this LoRA @ 1.5** | **5.9** | **1 / 12** | **0.993** | **1.9 MB** || SFT + this LoRA @ 2.0 | 6.0 | 1 / 12 | 0.992 | 1.9 MB || Base | 4.0 | 0 / 12 | 0.863 | β |- **bandviz score:** MATLOWAI's metric. The column color spectrum's strongest peak at 10β48 px, dividedby the median. Lower means less banding, and about 16 or below looks clean.- **Stripe still the strongest peak:** the number of images whose spectrum still peaks at the stripewidth (16 px at 768, 21.3 px at 1024).- **SSIM:** how close the image stays to plain SFT at the same seed. 1.0 is identical.The LoRA brings banding down to about Base's level while keeping the image over 99% similar to SFT.Reverting whole layers changes the image more and leaves the stripe in more images. On the 1024 px skyimage above, at strength 1.0, bandviz scores 23.7 for SFT (stripes every 21.4 px) and 9.3 with the LoRA.### How it was made17 unmodified lines**Limits:**- Tested at 768 and 1024 px with ER-SDE / 25 steps / CFG 2.5. Other samplers and resolutions areuntested.- Seed-to-seed variation in banding is large. The numbers above are medians over 12 images.Credits: banding analysis and the bandviz metric by
README.md+40-22