bindx-dev commited on
Commit
7dc3a59
·
verified ·
1 Parent(s): 7c8301c

Upload SM8550 (Hexagon HTP v73) QNN context binary pack

Browse files
Files changed (6) hide show
  1. README.md +18 -0
  2. bindx.json +16 -0
  3. metadata.json +134 -0
  4. text_encoder.bin +3 -0
  5. unet.bin +3 -0
  6. vae.bin +3 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ tags:
4
+ - bindx
5
+ - qnn
6
+ - snapdragon
7
+ - sm8550
8
+ - diffusion
9
+ ---
10
+
11
+ # Stable Diffusion v1.5 (Qualcomm SM8550 / Hexagon HTP v73)
12
+
13
+ Per-SoC QNN Hexagon HTP context binary pack for **Qualcomm Snapdragon 8 Gen 2 (`SM8550`, Hexagon HTP `v73`, `soc_model=43`)**.
14
+
15
+ - **Upstream model:** `stable-diffusion-v1-5/stable-diffusion-v1-5`
16
+ - **License:** `creativeml-openrail-m`
17
+ - **Compiler:** Qualcomm AI Runtime (QAIRT) `2.52.1.261105`
18
+ - **Status:** Compiled offline; pending on-device `HDK8550` verification.
bindx.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "manifest_version": 1,
3
+ "id": "stable_diffusion_v1_5",
4
+ "display_name": "Stable Diffusion v1.5",
5
+ "modality": "TEXT_TO_IMAGE",
6
+ "tier": "MEDIUM",
7
+ "engine": "QNN",
8
+ "architecture": "sd15",
9
+ "soc": "SM8550",
10
+ "entry_points": {
11
+ "text_encoder": "text_encoder.bin",
12
+ "unet": "unet.bin",
13
+ "vae": "vae.bin"
14
+ },
15
+ "hardware_target": "NPU_HTP"
16
+ }
metadata.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_id": "stable_diffusion_v1_5",
3
+ "model_name": "Stable Diffusion v1.5",
4
+ "runtime": "qnn_context_binary",
5
+ "precision": "w8a16",
6
+ "architecture": "sd15",
7
+ "tool_versions": {
8
+ "qairt": "2.52.1.261105"
9
+ },
10
+ "model_files": {
11
+ "text_encoder.bin": {
12
+ "inputs": {
13
+ "tokens": {
14
+ "shape": [
15
+ 1,
16
+ 77
17
+ ],
18
+ "dtype": "int32"
19
+ }
20
+ },
21
+ "outputs": {
22
+ "text_embedding": {
23
+ "shape": [
24
+ 1,
25
+ 77,
26
+ 768
27
+ ],
28
+ "dtype": "uint16",
29
+ "quantization_parameters": {
30
+ "scale": 0.000931975082,
31
+ "zero_point": 30078
32
+ }
33
+ }
34
+ }
35
+ },
36
+ "unet.bin": {
37
+ "inputs": {
38
+ "timestep": {
39
+ "shape": [
40
+ 1
41
+ ],
42
+ "dtype": "int32"
43
+ },
44
+ "latent": {
45
+ "shape": [
46
+ 1,
47
+ 4,
48
+ 64,
49
+ 64
50
+ ],
51
+ "dtype": "uint16",
52
+ "quantization_parameters": {
53
+ "scale": 0.000143379104,
54
+ "zero_point": 30612
55
+ }
56
+ },
57
+ "text_emb": {
58
+ "shape": [
59
+ 1,
60
+ 77,
61
+ 768
62
+ ],
63
+ "dtype": "uint16",
64
+ "quantization_parameters": {
65
+ "scale": 0.000933156232,
66
+ "zero_point": 30103
67
+ }
68
+ }
69
+ },
70
+ "outputs": {
71
+ "output_latent": {
72
+ "shape": [
73
+ 1,
74
+ 4,
75
+ 64,
76
+ 64
77
+ ],
78
+ "dtype": "uint16",
79
+ "quantization_parameters": {
80
+ "scale": 0.000143995436,
81
+ "zero_point": 30625
82
+ }
83
+ }
84
+ }
85
+ },
86
+ "vae.bin": {
87
+ "inputs": {
88
+ "latent": {
89
+ "shape": [
90
+ 1,
91
+ 4,
92
+ 64,
93
+ 64
94
+ ],
95
+ "dtype": "uint16",
96
+ "quantization_parameters": {
97
+ "scale": 0.000114703289,
98
+ "zero_point": 30612
99
+ }
100
+ }
101
+ },
102
+ "outputs": {
103
+ "image": {
104
+ "shape": [
105
+ 1,
106
+ 3,
107
+ 512,
108
+ 512
109
+ ],
110
+ "dtype": "uint16",
111
+ "quantization_parameters": {
112
+ "scale": 6.5607637e-05,
113
+ "zero_point": 38027
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "chipset_attributes": {
120
+ "aliases": [
121
+ "qualcomm-snapdragon-8-gen-2",
122
+ "sm8550"
123
+ ],
124
+ "marketing_name": "qualcomm-snapdragon-8-gen-2",
125
+ "world": "Mobile",
126
+ "supports_fp16": true,
127
+ "htp_version": 73,
128
+ "soc_model": 43,
129
+ "reference_device": "Snapdragon 8 Gen 2 HDK (SM8550)",
130
+ "supports_weight_sharing": true,
131
+ "name": "qualcomm-snapdragon-8-gen-2"
132
+ },
133
+ "use_case": "Image Generation"
134
+ }
text_encoder.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23815fcaf3cf880af019029a0752aaade1d2b08efbeb8bfbee881939c53aef8c
3
+ size 163069952
unet.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6acf9051c3579b76b8ea26b955fdd223a6617f1b18ef448759b318578b674faa
3
+ size 874045440
vae.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eceac1e2acf5e54fc8d6242cd950a43c1b90cd12943f5a5ae35fab414ab49e1d
3
+ size 61902848