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

Runs on-device in the TokForge app.

Use it in TokForge

  1. Join the iOS TestFlight to install TokForge on iPhone or iPad.
  2. 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.
  3. 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

  1. Loaded Lykon/dreamshaper-8 (SD 1.5 diffusers format).
  2. Converted the UNet, text encoder, VAE decoder and VAE encoder to Core ML with Apple ml-stable-diffusion python_coreml_stable_diffusion.torch2coreml, --attention-implementation SPLIT_EINSUM_V2 (attention shaped for the Neural Engine).
  3. Applied 6-bit palettization (--quantize-nbits 6), which lets the Neural Engine compile the graph without a long first-load wait.
  4. 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).

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).
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for darkmaniac7/TokForge-DreamShaper-8-CoreML-6bit

Quantized
(17)
this model

Collection including darkmaniac7/TokForge-DreamShaper-8-CoreML-6bit