DreamShaper 8 (Core ML 6-bit)
Lykon's DreamShaper 8 as a 6-bit Core ML bundle for making pictures on iPhone and iPad with TokForge.
Published by TokForge for on-device inference.
| What it is | Image generator |
| Format | Core ML resources for Apple's ml-stable-diffusion, 6-bit palettized, split einsum v2 attention, 512 x 512 |
| Runs on | iPhone and iPad (Core ML, Apple Neural Engine); listed in TokForge for iOS |
| Phone class | 6 GB RAM or more, iOS 17 or later (TokForge for iOS catalog) |
| Download | 1.87 GB (23 files); TokForge fetches only the zip (916 MB) |
| Base model | Lykon/dreamshaper-8 |
| 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
- Join the iOS TestFlight to install TokForge on iPhone or iPad.
- TokForge for iOS lists it in its image models as DreamShaper 8 ยท 6-bit (ANE) and uses it for the Everyday look. On iOS 17 or later it is the default image model of a fresh install. Pick it and the app downloads the zip, unpacks it and runs it on the Neural Engine.
- Describe the picture you want and generate it. The model runs on the device; once it is downloaded, making pictures needs no connection.
Collections: TokForge iOS Models.
Files
| File | Size | What it is |
|---|---|---|
DreamShaper-8_palettized_split_einsum_v2_compiled.zip |
916 MB | Compiled Core ML resources in one zip (the file TokForge downloads) |
Resources/ |
958 MB in 22 files | The same compiled resources, unzipped: TextEncoder, Unet, VAEDecoder and VAEEncoder (.mlmodelc) plus the CLIP tokenizer files |
The zip expands to one wrapper folder (Resources/) holding the compiled .mlmodelc models plus the CLIP
vocab.json and merges.txt, the exact layout Apple's StableDiffusionPipeline (and the TokForge installer) loads.
The Resources/ folder in this repo is the same tree, unzipped.
About the model
DreamShaper 8 is Lykon's Stable Diffusion 1.5 fine-tune, an all-round model for both realistic and artistic pictures.
| Architecture | Stable Diffusion 1.5 (UNet, CLIP text encoder, VAE) |
| Weights | UNet and text encoder 6-bit palettized, VAE in fp16 |
| Components | TextEncoder, Unet, VAEDecoder and VAEEncoder (.mlmodelc), plus the CLIP vocab.json and merges.txt |
| UNet batch | 2 (classifier-free guidance works as usual) |
| Output | 512 x 512, fixed in the compiled model |
| Tooling | ml-stable-diffusion 1.1.0, coremltools 9.0, torch 2.8.0 (from each model's metadata.json) |
Render settings
Standard SD 1.5 settings:
| Setting | Value |
|---|---|
| Attention | split_einsum_v2 (Apple Neural Engine) |
| Compute units | .cpuAndNeuralEngine |
| Steps | 20 (8 is the low end, 40 adds extra refinement) |
| Guidance (CFG) | 7.5 |
| Resolution | 512 x 512 (SD 1.5 native; baked into the compiled model) |
How it was made
- Loaded
Lykon/dreamshaper-8(SD 1.5 diffusers format). - Converted the UNet, text encoder, VAE decoder and VAE encoder to Core ML with Apple
ml-stable-diffusionpython_coreml_stable_diffusion.torch2coreml,--attention-implementation SPLIT_EINSUM_V2(attention shaped for the Neural Engine). - Applied 6-bit palettization (
--quantize-nbits 6), which lets the Neural Engine compile the graph without a long first-load wait. - Bundled the compiled resources for the Swift CLI (
--bundle-resources-for-swift-cli).
Conversion peaked at about 9.96 GB RAM (no --chunk-unet needed). It runs on Apple silicon; TokForge uses the 6-bit
palettized weights on iOS 17 or later and falls back to an FP16 model on iOS 16.
Limitations
- Pictures are 512 x 512 only; the size is built into the compiled model.
- 6-bit palettization may slightly reduce quality compared to the FP16 original.
- This is a Core ML runtime bundle, not a diffusers or PyTorch checkpoint.
License
DreamShaper 8 and this conversion are under the CreativeML OpenRAIL-M license, and Lykon's Civitai terms apply too: no selling the model or merges of it (see Credits).
- License: CreativeML OpenRAIL-M (inherited from DreamShaper 8 / Stable Diffusion 1.5). Use is subject to the OpenRAIL-M use restrictions.
- Base model: DreamShaper 8 by Lykon: https://huggingface.co/Lykon/dreamshaper-8 (a Stable Diffusion 1.5 finetune). All credit for the model weights is Lykon's.
- Conversion tooling: Apple
ml-stable-diffusion: https://github.com/apple/ml-stable-diffusion (6-bit palettization,SPLIT_EINSUM_V2attention). - Built on top of Stable Diffusion 1.5 (Runway/CompVis/Stability).
This repository is a redistribution for on-device use, a format conversion (PyTorch -> CoreML) and 6-bit palettization of Lykon's DreamShaper 8. No weights were retrained. The original OpenRAIL-M terms and attribution requirements propagate to this conversion and any images generated with it. No additional restrictions are imposed by this repackaging.
Credits
- DreamShaper 8 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.
- Stable Diffusion v1.5 by Runway and CompVis (Hugging Face). Used under the CreativeML OpenRAIL-M license.
- Converted to Core ML with ml-stable-diffusion by Apple (MIT).
Model tree for darkmaniac7/TokForge-DreamShaper-8-CoreML-6bit
Base model
Lykon/dreamshaper-8