skillsafeai/dreamshaper-8-lcm-onnx-webgpu
DreamShaper 8 LCM, fp16 ONNX for the browser
Exported for onnxruntime-web over WebGPU from Lykon/dreamshaper-8-lcm at commit 4645d8bc6a8e6b106d21606d63e8460cdad4f1a6. No weights were retrained or modified - only exported.
Standard ai.onnx operators, opset 17, no external data, single files (each under 2 GiB).
Sampling (LCM, 4 steps, no guidance)
timesteps = [999, 759, 499, 259]; a_t = alphas_cumprod (scaled_linear 0.00085..0.012)
x = randn(1,4,64,64)
for each t: eps = unet(x, t, text_encoder(tokens))
x0 = (x - sqrt(1-a_t) eps) / sqrt(a_t)
den = c_out(t) x0 + c_skip(t) x # sigma_data 0.5, timestep_scaling 10
x = last ? den : sqrt(a_next) den + sqrt(1-a_next) randn
image = vae_decoder(x) / 2 + 0.5Checked against diffusers StableDiffusionPipeline + LCMScheduler (fp32, 4 steps, guidance 1.0) with the same random stream: PSNR 60.7 / 51.0 / 54.1 dB. In Chrome (WebGPU, Apple silicon): ~2.2-3.1 s per 512x512 image after the session build.
Licence and use restrictions
CreativeML Open RAIL-M, as the source model. Its use-based restrictions apply to this export and its outputs - including no content that exploits or harms minors, no non-consensual imagery of real people, no defamation, harassment or illegal use.
