DreamShaper 7 LCM Q4_0 (GGUF)
A Q4_0 build of DreamShaper 7 with the LCM-LoRA fused in, as one GGUF for stable-diffusion.cpp; the current TokForge apps use other builds of the same model.
Published by TokForge for on-device inference.
| What it is | Image generator |
| Format | Single GGUF for stable-diffusion.cpp: Q4_0 for the UNet and CLIP linear weights and for the norm weights (UNet, CLIP, VAE); F16 for all convolutions, embeddings and biases |
| Runs on | stable-diffusion.cpp on any device; not downloaded by the current TokForge apps |
| Phone class | No catalog class; needs more free RAM than its 1.63 GB of weights |
| Download | 1.63 GB (3 files) |
| Base model | Lykon/dreamshaper-7, latent-consistency/lcm-lora-sdv1-5 |
| License | CreativeML OpenRAIL-M plus Lykon's Civitai terms (no selling) |
TokForge
- Website: https://tokforge.ai
- Discord: https://discord.gg/Acv3CBtfVm
- Google Play: https://play.google.com/store/apps/details?id=dev.tokforge
- iOS TestFlight: https://testflight.apple.com/join/jnufjzRr
Runs on-device in the TokForge app.
Use it in TokForge
- Install TokForge from Google Play, or join the iOS TestFlight.
- The current apps do not download this file. On Android, open Models > Recommended > Image and download DreamShaper LCM GGUF (Fast Image), the f16 build from TokForge-DreamShaper-LCM-GGUF. TokForge lists it on phones with 8 GB RAM or more.
- On iPhone or iPad, the 6 GB option of this model comes from TokForge-SD-GGUF-6GB, a Q4_0 rebuild that keeps the whole CLIP text encoder and VAE at F16.
To run this file yourself, use the stable-diffusion.cpp example below.
Collections: TokForge GGUF Models, TokForge Image Models (Android).
Files
| File | Size | What it is |
|---|---|---|
dreamshaper-7-lcm-q4_0.gguf | 1.63 GB | CLIP text encoder, LCM-fused UNet and VAE in one GGUF (Q4_0 linear and norm weights, F16 convolutions) |
manifest.json | 718 B | Precision notes, render defaults, size and md5 |
MD5SUMS | 62 B | md5 of the GGUF |
About the model
A Q4_0-quantized single self-contained GGUF for
stable-diffusion.cpp,
packaging DreamShaper-7 (SD1.5, realistic
finetune) with the LCM-LoRA
fused into the UNet for fast, guidance-free few-step sampling.
It is the smaller sibling of TokForge-DreamShaper-LCM-GGUF
(f16, about 2.1 GB): the same model at a smaller download and RAM footprint. TokForge for iOS used it for its 6 GB
devices before it moved to TokForge-SD-GGUF-6GB.
Precision details
This GGUF was quantized with stable-diffusion.cpp's own -M convert --type q4_0, whose
tensor_should_be_converted rule keeps embeddings and biases at F16. So the CLIP text encoder's
token_embedding.weight stays F16, which matters: a block-quantized CLIP token-embedding produces empty CLIP
conditioning through ggml_get_rows and makes sd.cpp abort at
conditioner.hpp GGML_ASSERT(!chunk_hidden_states.empty()).
The CLIP linear and LayerNorm weights in this file are Q4_0 (only the CLIP embeddings and biases stay F16). TokForge for iOS only loads GGUFs whose whole CLIP text encoder is unquantized, which is why it uses TokForge-SD-GGUF-6GB instead.
Note the file is about 1.63 GB rather than about 0.6 GB because SD-1.5's UNet is dominated by 3x3
convolution weights (ne[0] = 3), which are not divisible by Q4_0's block size of 32 and so
are kept at F16 by ggml (the same reason the gpustack Q4_0 SD-1.5 GGUF is about 1.75 GB).
The Q4_0 win comes from the attention, projection and feed-forward linears; the 1x1 convs stay F16 as well. Type histogram:
690 F16 tensors + 440 Q4_0 tensors; CLIP token_embedding.weight = F16.
Render settings
LCM, few-step, guidance-free:
sampler: lcm
scheduler: lcm
steps: 6 (4 = fast floor, 8 = extra refinement)
cfg-scale: 1.5
resolution: 512x512 (SD1.5 native; 256/384 presets also work)
stable-diffusion.cpp CLI example
sd -M img_gen \
-m dreamshaper-7-lcm-q4_0.gguf \
-p "a busy outdoor street market crowded with people shopping, candid street photo" \
--sampling-method lcm --scheduler lcm --steps 6 --cfg-scale 1.5 \
-W 512 -H 512 -o out.png
How it was made
- Started from
TokForge-DreamShaper-LCM-GGUFdreamshaper-7-lcm-f16.gguf(DreamShaper-7 with LCM-LoRA fused into the UNet, exported to a single SD1.5 GGUF, f16). - Quantized to Q4_0 with
stable-diffusion.cpp(leejet):sd -M convert -m dreamshaper-7-lcm-f16.gguf -o dreamshaper-7-lcm-q4_0.gguf --type q4_0. - Checked that the CLIP
token_embedding.weightis F16 in the output header, and ran a 6-step LCM render that produced a coherent on-prompt image.
License
- License: CreativeML OpenRAIL-M (inherited from DreamShaper-7 / Stable Diffusion 1.5). Use is subject to the OpenRAIL-M use restrictions.
- Base model: DreamShaper-7 by Lykon: https://huggingface.co/Lykon/dreamshaper-7
- Adapter: LCM-LoRA SD1.5 by Latent Consistency: https://huggingface.co/latent-consistency/lcm-lora-sdv1-5
- Quantization tooling: stable-diffusion.cpp by leejet
- Built on top of Stable Diffusion 1.5 (Runway/CompVis/Stability).
No additional restrictions are imposed by this repackaging; the original OpenRAIL-M terms and attribution requirements propagate to this GGUF and any images generated with it.
DreamShaper 7 is also under Lykon's Civitai terms: no selling the model or merges of it. The LCM-LoRA is under the CreativeML OpenRAIL++-M license.
Credits
- DreamShaper 7 by Lykon (Civitai, Hugging Face). Used under the CreativeML OpenRAIL-M license and the creator's Civitai terms. Lykon's Civitai terms: no selling the model or merges of it.
- LCM-LoRA SD1.5 by Latent Consistency (Hugging Face). Used under the CreativeML OpenRAIL++-M license.
- Stable Diffusion v1.5 by Runway and CompVis (Hugging Face). Used under the CreativeML OpenRAIL-M license.
- Converted to GGUF with stable-diffusion.cpp by leejet (MIT).