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…
A work-in-progress distillation of MOSS-Image-Base that draws an image in 8 steps with no guidance, shipped as a LoRA and a data-space sampler. For people experimenting with fast text to image sampling.
MOSS-Image-Base 8-step data-space DMD 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 lodestones/MOSS-Image-Base-8-steps-dmd
This is a distilled version of OpenMOSS-Team's MOSS-Image-Base text to image model, with 5.1B parameters. The base model needs 50 steps and a guidance scale of 3. This one gets down to 8 network evaluations with no guidance, using data-space DMD. The card calls it a work in progress.
Image-generation tinkerers and researchers who want faster sampling from MOSS-Image-Base and are comfortable loading adapters or writing a custom sampler.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Research | ML researchers | Study data-space DMD and few-step distillation | A test of fewer steps from the trained prefixes |
| Software | Developers | Speed up image generation in a ComfyUI or Python pipeline | A LoRA loader set to strength 1 |
| Art | Image makers | Generate images faster with the stock sampler | A draft at 4 to 8 steps |
| Design | Designers | Iterate quickly on prompts | A set of variations from one prompt |
If you want a finished, easy-to-use model, you can skip it, since the card describes work in progress that needs care with precision.
| Use case | Who | What they get back |
|---|---|---|
| Fast sampling with a LoRA | Image makers | Images in 4 to 8 steps with guidance at 1 |
| Data-space sampling | Researchers | The training-time sampler with its own loop |
| Adapter experiments | Developers | A rank 128 LoRA to apply to the base model |
pip install -U huggingface_hub hf download lodestones/MOSS-Image-Base-8-steps-dmd
The card recommends the LoRA alone with the standard sampler, and says nothing else in the repository is needed for that. The data-space sampler mirrors how the model was trained: starting from fixed noise, it refines its own clean estimate step by step.
from safetensors.torch import load_file
ds = load_file("dataspace.safetensors") # latent_mix.Q [128, 128], step_codes [8]
Q, codes = ds["latent_mix.Q"].cuda(), ds["step_codes"].cuda()
z = torch.randn(1, 128, H // 16, W // 16, device="cuda") # fp32
x0 = torch.zeros_like(z)
for r in range(8): # fewer steps also work (each prefix is trained)
x = z + torch.einsum("oc,bchw->bohw", Q, x0)
v = transformer(x, codes[r], prompt_embeds, prompt_mask).sample.float()
x0 = z - v
# decode x0 with the release VAE (BN denormalize + 2x2 unpatchify)| Tool | What it does |
|---|---|
| lora.safetensors | fp32 LoRA, rank 128, for the recommended route |
| time_embedding.safetensors | fp32 replacements for the step embedder and two modulation biases |
| generator.safetensors | The same tensors in a single file, plus Q and the step codes |
| dataspace.safetensors | Holds the latent_mix.Q matrix and the 8 step codes |
You load lora.safetensors on the base transformer in ComfyUI at strength 1, set guidance to 1 and choose 8 steps. You type a scene description, and the model returns an image in a fraction of the base model's steps.
Start with the LoRA route and 8 steps, since it needs nothing else from the repository. Treat the data-space sampler as an experiment for people who want to read the code.
Precision matters. The distillation change is smaller than bf16 rounding, so the transformer folder must be loaded and run in fp32 with no autocast, or most of the distillation is lost. For fast bf16 inference, keep the base bf16 transformer and apply the adapter files without merging them.
A work-in-progress distillation of MOSS-Image-Base that draws an image in 8 steps with no guidance, shipped as a LoRA and a data-space sampler. For people experimenting with fast text to image sampling.
Made by lodestones 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 a distilled version of OpenMOSS-Team's MOSS-Image-Base text to image model, with 5.1B parameters. The base model needs 50 steps and a guidance scale of 3. This one gets down to 8 network evaluations with no guidance, using data-space DMD. The card calls it a work in progress.
Who it suits: Image-generation tinkerers and researchers who want faster sampling from MOSS-Image-Base and are comfortable loading adapters or writing a custom sampler.
Industry | Who uses it | How they use it | Example
Research | ML researchers | Study data-space DMD and few-step distillation | A test of fewer steps from the trained prefixes
Software | Developers | Speed up image generation in a ComfyUI or Python pipeline | A LoRA loader set to strength 1
Art | Image makers | Generate images faster with the stock sampler | A draft at 4 to 8 steps
Design | Designers | Iterate quickly on prompts | A set of variations from one prompt
If you want a finished, easy-to-use model, you can skip it, since the card describes work in progress that needs care with precision.
Where to use it:
Use case | Who | What they get back
Fast sampling with a LoRA | Image makers | Images in 4 to 8 steps with guidance at 1
Data-space sampling | Researchers | The training-time sampler with its own loop
Adapter experiments | Developers | A rank 128 LoRA to apply to the base model
How to set it up:
pip install -U huggingface_hub
hf download lodestones/MOSS-Image-Base-8-steps-dmd
How to use it: The card recommends the LoRA alone with the standard sampler, and says nothing else in the repository is needed for that. The data-space sampler mirrors how the model was trained: starting from fixed noise, it refines its own clean estimate step by step.
from safetensors.torch import load_file
ds = load_file("dataspace.safetensors") # latent_mix.Q [128, 128], step_codes [8]
Q, codes = ds["latent_mix.Q"].cuda(), ds["step_codes"].cuda()
z = torch.randn(1, 128, H // 16, W // 16, device="cuda") # fp32
x0 = torch.zeros_like(z)
for r in range(8): # fewer steps also work (each prefix is trained)
x = z + torch.einsum("oc,bchw->bohw", Q, x0)
v = transformer(x, codes[r], prompt_embeds, prompt_mask).sample.float()
x0 = z - v
# decode x0 with the release VAE (BN denormalize + 2x2 unpatchify)
Tool | What it does
lora.safetensors | fp32 LoRA, rank 128, for the recommended route
time_embedding.safetensors | fp32 replacements for the step embedder and two modulation biases
generator.safetensors | The same tensors in a single file, plus Q and the step codes
dataspace.safetensors | Holds the latent_mix.Q matrix and the 8 step codes
Example: You load lora.safetensors on the base transformer in ComfyUI at strength 1, set guidance to 1 and choose 8 steps. You type a scene description, and the model returns an image in a fraction of the base model's steps.
For newcomers and experts: Start with the LoRA route and 8 steps, since it needs nothing else from the repository. Treat the data-space sampler as an experiment for people who want to read the code.
Precision matters. The distillation change is smaller than bf16 rounding, so the transformer folder must be loaded and run in fp32 with no autocast, or most of the distillation is lost. For fast bf16 inference, keep the base bf16 transformer and apply the adapter files without merging them.
Load the base transformer
Apply lora.safetensors
Set guidance to 1
Sample 4 to 8 steps
An image comes out
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download lodestones/MOSS-Image-Base-8-steps-dmd
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 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-Base 8-step data-space DMD This page | 33,911 | 70 | 5.1B | apache-2.0 | |
| stable-diffusion-xl-base-1.0Shares diffusers · safetensors | 4,688,522 | 8,466 | 2.6B | openrail++ | |
| Animagine XL 4.0Shares diffusers · safetensors | 1,026,807 | 582 | 2.6B | openrail++ | |
| Stable Diffusion v1-5Shares diffusers · safetensors | 1,012,982 | 1,364 | 860M | creativeml-openrail-m | |
| Z-Image-TurboShares diffusers · safetensors | 765,804 | 5,594 | 6.2B | apache-2.0 | |
| FLUX.2 [klein] 4B BaseShares diffusers · safetensors | 743,055 | 195 | 3.9B | 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.