File size: 2,057 Bytes
2bbc588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: creativeml-openrail-m
tags:
  - stable-diffusion
  - text-to-image
  - onnx
  - sona-forge
---

# Stable Diffusion 1.5 — ONNX FP16 (sona-forge mirror)

Mirror of the Stable Diffusion 1.5 ONNX FP16 weights bundled with the
[Sona Forge](https://github.com/virtaava/mobile-ai-image-app) Android app.

The local-first Sona Forge architecture requires every binary the app fetches
at runtime to live on a single, stable mirror under
[`huggingface.co/sona-forge`](https://huggingface.co/sona-forge), so that a
provider-side change (account rename, file deletion, hash drift) cannot break
end-user installs.

## Provenance

These files are byte-identical mirrors of:

- `nmkd/stable-diffusion-1.5-onnx-fp16` @ `38dacf2c14c89e3538b5e32da888eb9c46e0e1bf`

which itself is an ONNX FP16 conversion of the Stable Diffusion 1.5 weights
originally released by Runway and CompVis under the
[CreativeML Open RAIL-M](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
licence. The licence is preserved in the Sona Forge in-app
"Open-source notices" screen.

## Layout

```
text_encoder/model.onnx    246 MB    text encoder
unet/model.onnx              1 MB    unet graph (external-data references weights.pb)
unet/weights.pb            1.7 GB    unet weights (external data)
vae_decoder/model.onnx      99 MB    vae decoder
vae_encoder/model.onnx      68 MB    vae encoder
tokenizer/                            CLIP BPE tokenizer (vocab, merges)
scheduler/                            DDIM scheduler config
model_index.json                      diffusers pipeline manifest
```

`unet/model.onnx` references `weights.pb` via ONNX external-data, so both
files must live in the same `unet/` subdirectory at load time.

## SHA-256 manifest

The Sona Forge app verifies every file against a per-file SHA-256 declared in
`app/src/main/assets/model_manifests/manifest.json` before loading it. If the
content of this mirror ever drifts from what the app expects, the download
will fail-closed with a hash mismatch — Toni will know before any user does.