anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
The MOSS-Image Base and SFT image transformers with their weights rescaled so they run in fp16 without overflow, giving the same outputs. For diffusers, ComfyUI and KohakuMoss.
MOSS-Image FP16-fixed is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download KBlueLeaf/MOSS-Image-FP16-fixed
This is MOSS-Image, in Base and SFT versions, with one edit inside the weights: the running sum that carries values from block to block is divided by 16. fp16 then has plenty of room to spare, where before it had only about 5 percent.
Per the card, results match the official model apart from rounding, and track the fp32 reference more closely than the stock bf16 files. Only the transformer changes. Everything else is unchanged and official. That covers the text encoder and tokenizer, plus the VAE, the scheduler and the pipeline code.
People who generate images with MOSS-Image in diffusers or ComfyUI and want fp16 to work safely, especially at large sizes or with LoRAs and fine-tunes.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Design | Image generators in ComfyUI | Run fp16 on a larger canvas | A 2560 by 2560 render that no longer turns black |
| Software | Pipeline developers | Use the diffusers transformer in fp16 | Serving images from a GPU with fp16 support |
| Research | Model tinkerers | Add LoRAs or fine-tunes on top | Training an adapter without overflow |
You can skip it if you already run bf16 or fp32 without trouble, or if you want a different image model.
The files target three places, and the card lists which file goes where.
| Use case | Who | What they get back |
|---|---|---|
| Safe fp16 generation | ComfyUI users | Images without NaN or black output at large sizes |
| Diffusers pipelines | Developers | An fp16 transformer matching the official config |
| Tuning on top | Trainers | More headroom when adding LoRAs or fine-tunes |
You need Python and the Hugging Face tools to fetch the files, then one of the three runners. The card says the text encoder and VAE come from the official or Comfy-Org releases.
pip install -U huggingface_hub hf download KBlueLeaf/MOSS-Image-FP16-fixed
Choose Base or SFT, then load the matching file in your tool. In ComfyUI use the single-file checkpoint, and in diffusers load the transformer folder. The card shows no run command.
| File | Used for |
|---|---|
| base/transformer and sft/transformer | The diffusers MOSSImageTransformer, in fp16 |
| moss_image_base_fp16_fixed.safetensors | A single ComfyUI file for Base |
| moss_image_sft_fp16_fixed.safetensors | A single ComfyUI file for SFT |
| reports folder | The numbers behind the page, per image |
You load the fixed Base file in ComfyUI with fp16 and render a 2560 by 2560 image. The card says the official file turns black at that size, while the fixed weights stay finite.
If you are new, this is the same image model, adjusted so the numbers inside it stay small enough for fp16. Swap it in where you used the official file and render a normal image first.
If you know the field, the residual stream peaks near 62,000 at block 26 of 42, just under fp16's limit of 65,504. Scaling by 1/16 inside the weights gives 16.9 times headroom there. The card measured 189 forwards and real 50-step sampling to show this.
Plain fp16 on the official file passed every test the author ran up to 2048 by 2048, then failed at 2560 by 2560 on step 29 of 50. The fixed weights keep much more margin.
The MOSS-Image Base and SFT image transformers with their weights rescaled so they run in fp16 without overflow, giving the same outputs. For diffusers, ComfyUI and KohakuMoss.
Made by KBlueLeaf on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is MOSS-Image, in Base and SFT versions, with one edit inside the weights: the running sum that carries values from block to block is divided by 16. fp16 then has plenty of room to spare, where before it had only about 5 percent.
Per the card, results match the official model apart from rounding, and track the fp32 reference more closely than the stock bf16 files. Only the transformer changes. Everything else is unchanged and official. That covers the text encoder and tokenizer, plus the VAE, the scheduler and the pipeline code.
Who it suits: People who generate images with MOSS-Image in diffusers or ComfyUI and want fp16 to work safely, especially at large sizes or with LoRAs and fine-tunes.
Industry | Who uses it | How they use it | Example
Design | Image generators in ComfyUI | Run fp16 on a larger canvas | A 2560 by 2560 render that no longer turns black
Software | Pipeline developers | Use the diffusers transformer in fp16 | Serving images from a GPU with fp16 support
Research | Model tinkerers | Add LoRAs or fine-tunes on top | Training an adapter without overflow
You can skip it if you already run bf16 or fp32 without trouble, or if you want a different image model.
Where to use it: The files target three places, and the card lists which file goes where.
Use case | Who | What they get back
Safe fp16 generation | ComfyUI users | Images without NaN or black output at large sizes
Diffusers pipelines | Developers | An fp16 transformer matching the official config
Tuning on top | Trainers | More headroom when adding LoRAs or fine-tunes
How to set it up: You need Python and the Hugging Face tools to fetch the files, then one of the three runners. The card says the text encoder and VAE come from the official or Comfy-Org releases.
pip install -U huggingface_hub
hf download KBlueLeaf/MOSS-Image-FP16-fixed
How to use it: Choose Base or SFT, then load the matching file in your tool. In ComfyUI use the single-file checkpoint, and in diffusers load the transformer folder. The card shows no run command.
File | Used for
base/transformer and sft/transformer | The diffusers MOSSImageTransformer, in fp16
moss_image_base_fp16_fixed.safetensors | A single ComfyUI file for Base
moss_image_sft_fp16_fixed.safetensors | A single ComfyUI file for SFT
reports folder | The numbers behind the page, per image
Example: You load the fixed Base file in ComfyUI with fp16 and render a 2560 by 2560 image. The card says the official file turns black at that size, while the fixed weights stay finite.
For newcomers and experts: If you are new, this is the same image model, adjusted so the numbers inside it stay small enough for fp16. Swap it in where you used the official file and render a normal image first.
If you know the field, the residual stream peaks near 62,000 at block 26 of 42, just under fp16's limit of 65,504. Scaling by 1/16 inside the weights gives 16.9 times headroom there. The card measured 189 forwards and real 50-step sampling to show this.
Official weights peak near the fp16 limit
Scale the residual stream by 1/16
Run in fp16 with wide headroom
Same images up to rounding
Good to know: Plain fp16 on the official file passed every test the author ran up to 2048 by 2048, then failed at 2560 by 2560 on step 29 of 50. The fixed weights keep much more margin.
Title: Headroom to the fp16 limit at block 26, times
Official weights: 1.05 times
Fixed weights: 16.9 times
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download KBlueLeaf/MOSS-Image-FP16-fixed
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| MOSS-Image FP16-fixed This page | 0 | 38 | — | apache-2.0 | |
| MOSS-Image-heal by KBlueLeafShares fp16 · moss-image · comfyui | 0 | 76 | 5.1B | apache-2.0 | |
| MOSS-Image-SFT-4-stepsShares moss-image · text-to-image · diffusers | 73,131 | 96 | 5.1B | apache-2.0 | |
| KromossShares moss-image · text-to-image · diffusers | 64,728 | 322 | 5.1B | apache-2.0 | |
| MOSS-Image-SFTShares moss-image · text-to-image · diffusers | 22,963 | 950 | 5.1B | apache-2.0 | |
| MOSS-Image-BaseShares moss-image · text-to-image · diffusers | 13,535 | 656 | 5.1B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.