--- license: apache-2.0 base_model: OpenMOSS-Team/MOSS-Image-Base base_model_relation: finetune pipeline_tag: text-to-image tags: - text-to-image - moss-image - comfyui - diffusers --- # MOSS-Image-Base Heal A full fine-tune of the diffusion transformer of [OpenMOSS-Team/MOSS-Image-Base](https://huggingface.co/OpenMOSS-Team/MOSS-Image-Base) that removes its massive activations and weight outliers ("stream healing"). It is meant as a drop-in replacement for the base transformer; the text encoder and VAE are unchanged and not included. ## What was done The heal method comes from [KBlueLeaf/KohakuMossTrainer](https://github.com/KohakuBlueleaf/KohakuMossTrainer) (see also [KBlueLeaf/MOSS-Image-heal](https://huggingface.co/KBlueLeaf/MOSS-Image-heal)); this is an independent run of it, not a copy of that model. Training used: - distillation from the frozen original base model as teacher (the main loss), - residual-stream penalties (a write-concentration term and a stream-RMS term), - weight outlier decay, - a small flow-matching loss term retained alongside the distillation (weight 0.05, versus 1.0 for distillation). ## Files | File | Description | |---|---| | `moss-image-base-heal-comfyui.safetensors` | ComfyUI single-file diffusion model (bf16, 10.16 GB) | | `transformer/` | diffusers-format transformer (`MOSSImageTransformer`, bf16, 3 shards) | An int8 ConvRot version of the ComfyUI file: [SumomoLee/MOSS-Image-Base-Heal-INT8-ConvRot](https://huggingface.co/SumomoLee/MOSS-Image-Base-Heal-INT8-ConvRot). ## Usage - ComfyUI: put the single file in `models/diffusion_models/` and use it in place of the MOSS-Image base diffusion model (same text encoder, Qwen3.5-9B, and Flux.2 VAE as the base). - diffusers: use the `transformer/` folder in place of the `transformer/` folder of the base MOSS-Image pipeline. Use the same sampling settings as the base model. ## Weight statistics Computed on CPU directly from the weights, over all 185 two-dimensional `.weight` tensors (ComfyUI layout, q/k/v fused as in that file), using each tensor's RMS as the scale: | | base | this model | |---|---|---| | elements with abs value above 64x tensor RMS | 349 | 0 | | elements with abs value above 32x tensor RMS | 2,621 | 15 | | largest abs value / tensor RMS | 271.7 | 54.7 | These are weight statistics only; no image-quality evaluation is claimed here. The number of elements above 16x RMS is not reduced (15,310 vs 17,555), because outlier decay caps the largest weights rather than flattening all of them. ## Disclaimer Unofficial community model, provided as is without warranty. Outputs may be biased or unsuitable; you are responsible for how you use it. License: Apache-2.0, as the original MOSS-Image-Base. Credit for the model goes to the OpenMOSS team and for the heal method to KBlueLeaf.