SD1.5 LCM Cartoon, DreamShaper 7 (MNN)
The original batch-2 export of DreamShaper 7 with the LCM-LoRA and a cartoon style LoRA fused in, as an MNN bundle, kept for older TokForge builds; the current app uses the batch-1 copy.
Published by TokForge for on-device inference.
| What it is | Image generator (style: cartoon) |
| Format | MNN diffusion bundle: batch-2 UNet with 8-bit weights, f16 text encoder and VAE decoder |
| Runs on | Android phones (CPU), in older TokForge builds |
| Phone class | No catalog class in the current app; needs more free RAM than its 1.13 GB of weights (older TokForge builds listed it for 8 GB RAM or more) |
| Download | 1.21 GB (9 files) |
| Base model | Lykon/dreamshaper-7, latent-consistency/lcm-lora-sdv1-5, shawn323/sd-v1.5-lora-cartoon |
| License | CreativeML OpenRAIL-M, plus Lykon's Civitai terms for DreamShaper (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.
- On Android, open Models > Recommended > Image and download Cartoon (SD1.5 LCM Styled). TokForge lists it on phones with 8 GB RAM or more. The current app downloads the batch-1 copy of this model, TokForge-SD15-LCM-Style-Cartoon-b1, not this repo.
This repo is the original batch-2 export. Older TokForge builds (for example 3.6.0 beta 12) download it by this exact name, so it stays online for them (see Batch-1 and plain bundles below).
Collections: TokForge SD1.5 LCM Styles (MNN).
Files
| File | Size | What it is |
|---|---|---|
alphas.txt |
13.3 KB | Scheduler alphas |
merges.txt |
525 KB | CLIP tokenizer merges |
text_encoder.mnn |
76.3 MB | CLIP text encoder graph (SD1.5 reference) |
text_encoder.mnn.weight |
170 MB | CLIP text encoder weights (f16, SD1.5 reference) |
unet.mnn |
774 KB | UNet graph (batch-2 export, fixed 512x512) |
unet.mnn.weight |
862 MB | UNet weights (8-bit, LCM and cartoon style fused) |
vae_decoder.mnn |
154 KB | VAE decoder graph (SD1.5 reference) |
vae_decoder.mnn.weight |
99.0 MB | VAE decoder weights (f16, SD1.5 reference) |
vocab.json |
862 KB | CLIP tokenizer vocabulary |
Only unet.mnn differs from the batch-1 bundle TokForge-SD15-LCM-Style-Cartoon-b1. Every other file, unet.mnn.weight included, is byte-identical (same sha256).
About the model
This is the TokForge SD1.5 LCM bundle (DreamShaper 7 with the LCM-LoRA fused in) with the sd-v1.5-lora-cartoon art-style LoRA by shawn323 also fused into the UNet at export time, so every image comes out in that style: a bold, clean cartoon and animation look with flat shading and crisp outlines. The LCM adapter lets it make a coherent 512x512 image in 4 steps with guidance-free sampling (CFG 1.0).
| Architecture | Stable Diffusion 1.5 (CLIP ViT-L/14 text encoder, UNet, VAE decoder) |
| Base checkpoint | DreamShaper 7 by Lykon |
| Few-step adapter | LCM-LoRA SD1.5, fused into the UNet |
| Style | sd-v1.5-lora-cartoon by shawn323, fused into the UNet |
| UNet | 8-bit weights (asymmetric), fixed batch 2, fixed 64x64 latent |
| Text encoder and VAE decoder | SD1.5 reference MNN files, f16 |
| Output | 512x512 |
Render settings
| Setting | Value |
|---|---|
| Steps | 4 (TokForge default); up to 8 for extra refinement |
| CFG scale | 1.0 (guidance-free) |
| Negative prompt | Not used at CFG 1.0 |
| Size | 512x512 |
Batch-1 and plain bundles
This model is published twice. The weights are the same; only the UNet graph differs.
| Repo | UNet export | Downloaded by |
|---|---|---|
| TokForge-SD15-LCM-Style-Cartoon-b1 | batch 1, dynamic height and width (sample=[1,4,-1,-1]) |
TokForge 3.6.0 beta 24 and later, including the current 1.3.x releases |
| TokForge-SD15-LCM-Style-Cartoon (this repo) | fixed batch 2 (conditional and unconditional) | Older TokForge builds, for example 3.6.0 beta 12 |
LCM sampling is guidance-free (CFG 1.0), so the unconditional UNet pass adds nothing. With the batch-1 UNet, TokForge's engine runs one conditional UNet pass per step instead of a batch of two. Older builds such as TokForge 3.6.0 beta 12 always feed the UNet a batch of two and would crash on the batch-1 export, so they keep downloading the plain repo by its exact name. The two repos are separate so that each app version gets the files it can run.
How it was made
- In diffusers, load
Lykon/dreamshaper-7, then load and fuselatent-consistency/lcm-lora-sdv1-5and, on top of it,shawn323/sd-v1.5-lora-cartoon(one LoRA at a time,fuse_lorain fp32). - Export the fused UNet to ONNX, traced at a fixed batch of 2 (conditional and unconditional) and a fixed 64x64 latent.
- Convert the UNet to MNN with 8-bit weights (command below).
- Add the SD1.5 reference MNN text encoder and VAE decoder (f16) and the tokenizer and scheduler files. The LoRAs only change the UNet, so these are reused unchanged and are byte-identical across the TokForge SD1.5 LCM bundles.
MNNConvert -f ONNX --modelFile unet/model.onnx --MNNModel unet.mnn \
--saveExternalData=1 --weightQuantBits 8 --weightQuantAsymmetric
Limitations
- Built for TokForge's MNN diffusion engine. This is a runtime bundle, not a diffusers checkpoint.
- Fixed batch-2, 512x512 graph. Current TokForge uses the batch-1 copy instead.
- Use 4 to 8 steps: below 4 the output is noise, and quality falls off above 8.
- The style is baked into the UNet, so its strength cannot be changed at render time.
- The UNet weights are 8-bit, which may slightly change fine detail compared with the full-precision model.
License
This bundle is shared under the CreativeML OpenRAIL-M license, like its SD1.5 base, including its use-based restrictions. Sources and their licences:
- Base: Lykon/dreamshaper-7: CreativeML-OpenRAIL-M
- LCM adapter: latent-consistency/lcm-lora-sdv1-5: openrail++
- Style LoRA: shawn323/sd-v1.5-lora-cartoon: CreativeML-OpenRAIL-M
DreamShaper also carries Lykon's Civitai terms (no selling the model or merges of it); see Credits. Fused with diffusers.fuse_lora()
(fp32 ฮW before INT8 quant); CLIP/VAE reused unchanged from the SD1.5 reference (the style LoRA is
UNet-only).
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.
- sd-v1.5-lora-cartoon by shawn323 (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 MNN with MNN by Alibaba (Apache-2.0).