Add SDXL-Turbo W8A16 Hexagon NPU bundle (V75-native, fwd-compat V79/V81) + manifest
Browse files- .gitattributes +1 -0
- README.md +110 -0
- manifest.json +171 -0
- v75/config.json +25 -0
- v75/sdxl_emb_mlp.bin +3 -0
- v75/taesdxl_decoder.mnn +3 -0
- v75/text_encoder_1_fp16.bin +3 -0
- v75/text_encoder_2_fp16.bin +3 -0
- v75/tokenizer/merges.txt +0 -0
- v75/tokenizer/special_tokens_map.json +30 -0
- v75/tokenizer/tokenizer_config.json +30 -0
- v75/tokenizer/vocab.json +0 -0
- v75/tokenizer_2/merges.txt +0 -0
- v75/tokenizer_2/special_tokens_map.json +24 -0
- v75/tokenizer_2/tokenizer_config.json +38 -0
- v75/tokenizer_2/vocab.json +0 -0
- v75/unet.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
v75/taesdxl_decoder.mnn filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: stabilityai-ai-community
|
| 4 |
+
license_link: https://huggingface.co/stabilityai/sdxl-turbo/blob/main/LICENSE.md
|
| 5 |
+
tags:
|
| 6 |
+
- stable-diffusion-xl
|
| 7 |
+
- sdxl-turbo
|
| 8 |
+
- qnn
|
| 9 |
+
- hexagon
|
| 10 |
+
- npu
|
| 11 |
+
- w8a16
|
| 12 |
+
- text-to-image
|
| 13 |
+
- tokforge
|
| 14 |
+
pipeline_tag: text-to-image
|
| 15 |
+
library_name: qnn
|
| 16 |
+
inference: false
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# TokForge SDXL-Turbo · Hexagon NPU (W8A16)
|
| 20 |
+
|
| 21 |
+
**PRIVATE** model bundle for the **TokForge** Android app (`dev.tokforge`). This repo hosts the
|
| 22 |
+
**SDXL-Turbo** image-generation pipeline compiled to **QNN context binaries** for the
|
| 23 |
+
**Qualcomm Hexagon DSP (HTP)**, so TokForge can fetch the SDXL-NPU "Faithful" backend from scratch
|
| 24 |
+
(previously hand-staged on devices only).
|
| 25 |
+
|
| 26 |
+
Sibling of [`darkmaniac7/TokForge-SD15-QNN-NPU`](https://huggingface.co/darkmaniac7/TokForge-SD15-QNN-NPU)
|
| 27 |
+
(SD1.5). Same non-root `untrusted_app` cDSP recipe; this is the higher-quality 1024px tier.
|
| 28 |
+
|
| 29 |
+
## What this is
|
| 30 |
+
|
| 31 |
+
- **Model:** SDXL-Turbo (few-step distilled SDXL), native **1024×1024** (128×128 latent).
|
| 32 |
+
- **Quantization:** **W8A16** (8-bit weights, 16-bit activations) on the Hexagon HTP.
|
| 33 |
+
- **Runtime:** **QAIRT 2.40**. Bin set is **V75-native** (`libQnnHtpV75Skel.so`).
|
| 34 |
+
- **Variant:** **fp16 text encoders + TAESDXL** tiny-VAE (see below).
|
| 35 |
+
- **Footprint:** **~4.3 GB** on disk (the on-device fresh download is this big).
|
| 36 |
+
|
| 37 |
+
## Pipeline / variant
|
| 38 |
+
|
| 39 |
+
This bundle is the **fp16-encoders + TAESDXL** variant the `libsdxl_qnn_driver` runs end-to-end
|
| 40 |
+
(no host orchestration beyond the emb-MLP):
|
| 41 |
+
|
| 42 |
+
| Stage | File | Where it runs |
|
| 43 |
+
|-------|------|---------------|
|
| 44 |
+
| CLIP-L text encoder | `text_encoder_1_fp16.bin` | DSP (fp16) → `last_hidden [1,77,768]` |
|
| 45 |
+
| OpenCLIP-bigG text encoder (+proj) | `text_encoder_2_fp16.bin` | DSP (fp16) → `last_hidden [1,77,1280]` + `pooled [1,1280]` |
|
| 46 |
+
| text_embedding | concat → `[1,77,2048]` | driver |
|
| 47 |
+
| combined-emb MLP | `sdxl_emb_mlp.bin` | **host CPU** → `emb [1,1280]` per step |
|
| 48 |
+
| UNet (EulerAncestral, 4 steps, guidance 0) | `unet.bin` (2.6 GB) | DSP |
|
| 49 |
+
| VAE decode (1024px) | `taesdxl_decoder.mnn` (2.4 MB) | **CPU** (MNN tiny-VAE) |
|
| 50 |
+
|
| 51 |
+
**Why the host emb-MLP:** qairt-converter 2.40 constant-folds SDXL's two sinusoidal paths
|
| 52 |
+
(`time_proj` and `add_time_proj`). The driver dodges both by precomputing the **combined**
|
| 53 |
+
`emb = time_embedding(time_proj(t)) + add_embedding(cat(pooled, add_time_proj(time_ids)))` on host
|
| 54 |
+
(weights in `sdxl_emb_mlp.bin`) and feeding it as ONE float UNet input, so no foldable path remains.
|
| 55 |
+
|
| 56 |
+
**Why TAESDXL CPU VAE:** it is the **only validated** VAE path. The DSP VAE is blocked at 1024px on
|
| 57 |
+
V75 (unsigned-PD HTP cap) and the OpenCL/Vulkan VAE SIGSEGVs Adreno in `Session::resize`. The driver
|
| 58 |
+
always selects `--vae_mnn` + `SDXL_VAE_BACKEND=cpu`.
|
| 59 |
+
|
| 60 |
+
**SDXL-Turbo is guidance-free** (`guidance_scale 0`): NO CFG → one UNet pass per step. EulerAncestral,
|
| 61 |
+
4 steps native (6 for quality), VAE scaling factor **0.13025**.
|
| 62 |
+
|
| 63 |
+
## Arch coverage & verification
|
| 64 |
+
|
| 65 |
+
| Set | dsp_arch | Skel | Verified |
|
| 66 |
+
|-----|----------|------|----------|
|
| 67 |
+
| `ours/v75` | 75 (V75) | `libQnnHtpV75Skel.so` | **YES** — device-verified coherent+crisp on Lenovo **SM8650/V75** (.69) |
|
| 68 |
+
|
| 69 |
+
**Forward-compat:** a lower-arch bin runs on a higher-arch DSP. The **V75-native** set is the
|
| 70 |
+
shipping set for **V73 → V81**, and was **verified by forward-compat on V81** (RedMagic **SM8850**
|
| 71 |
+
handsets .82 and .80, coherent+crisp). **Native V81/V79 SDXL bins are NOT separately built** — V75-native
|
| 72 |
+
is the single own-built set today.
|
| 73 |
+
|
| 74 |
+
| SoC class | Hexagon | Status |
|
| 75 |
+
|-----------|---------|--------|
|
| 76 |
+
| 8 Gen 2 / 8s Gen 3 (SM8550/SM8635) | V73 | covered by V75-native forward-compat (untested on device) |
|
| 77 |
+
| 8 Gen 3 (SM8650) | V75 | **device-verified** |
|
| 78 |
+
| 8 Elite (SM8750) | V79 | forward-compat (untested on V79 silicon) |
|
| 79 |
+
| 8 Elite Gen 5 (SM8850) | V81 | **forward-compat verified** (.82, .80) |
|
| 80 |
+
|
| 81 |
+
## Provenance
|
| 82 |
+
|
| 83 |
+
Clean-room conversion, our own pipeline (no third-party NPU bins):
|
| 84 |
+
|
| 85 |
+
1. **Base:** `stabilityai/sdxl-turbo` (fp16 safetensors) → ONNX export (UNet emb-input/fold-proofed
|
| 86 |
+
graph, dual CLIP encoders, TAESDXL decoder).
|
| 87 |
+
2. **Quantize:** **W8A16** via QAIRT (calibration set), graph name `model`.
|
| 88 |
+
3. **Compile:** `qnn-context-binary-generator` → V75 HTP context binaries (**QAIRT 2.40**).
|
| 89 |
+
4. **VAE:** TAESDXL exported to a CPU MNN model (`taesdxl_decoder.mnn`).
|
| 90 |
+
|
| 91 |
+
## License
|
| 92 |
+
|
| 93 |
+
**SDXL-Turbo — Stability AI Community License** (`stabilityai/sdxl-turbo`).
|
| 94 |
+
|
| 95 |
+
- Commercial use **permitted** for organizations/individuals with **< $1M USD annual revenue**.
|
| 96 |
+
- Above $1M revenue requires a **Stability AI Enterprise license**.
|
| 97 |
+
- **Attribution + license text must be retained** with the model.
|
| 98 |
+
- This is **NOT** OpenRAIL-M (that covers the sibling SD1.5 bundle).
|
| 99 |
+
|
| 100 |
+
Text encoder bases: OpenCLIP bigG (MIT-class), OpenAI CLIP-L (MIT).
|
| 101 |
+
|
| 102 |
+
## Files
|
| 103 |
+
|
| 104 |
+
See `manifest.json` for the authoritative file set with per-file md5 + size. The app reads
|
| 105 |
+
`manifest.json`, resolves the device Hexagon arch, downloads the matching set into
|
| 106 |
+
`filesDir/image_models/SDXL-QNN-NPU/`, and the `libsdxl_qnn_driver` loads the bins flat from there.
|
| 107 |
+
|
| 108 |
+
**Driver-required files** (every one must be present + non-empty for a usable bundle):
|
| 109 |
+
`unet.bin`, `text_encoder_1_fp16.bin`, `text_encoder_2_fp16.bin`, `sdxl_emb_mlp.bin`,
|
| 110 |
+
`taesdxl_decoder.mnn`, `tokenizer/{vocab.json,merges.txt}`, `tokenizer_2/{vocab.json,merges.txt}`.
|
manifest.json
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "tokforge-sdxl-qnn-npu/manifest@1",
|
| 3 |
+
"model": "sdxl-turbo",
|
| 4 |
+
"variant": "fp16-encoders + TAESDXL",
|
| 5 |
+
"license": "Stability AI Community License (SDXL-Turbo)",
|
| 6 |
+
"license_note": "Commercial use permitted for orgs/individuals with < $1M USD annual revenue; above that requires a Stability AI Enterprise license. Attribution + license text must be retained with the model. NOT OpenRAIL (that was SD1.5).",
|
| 7 |
+
"generated": "2026-06-05T03:08:58Z",
|
| 8 |
+
"repo": "darkmaniac7/TokForge-SDXL-QNN-NPU (PRIVATE)",
|
| 9 |
+
"notes": [
|
| 10 |
+
"App reads the device Hexagon arch (dsp_arch) and picks the matching set. SDXL ships ONE own-built set today: V75-native (ours).",
|
| 11 |
+
"Forward-compat: a lower-arch bin runs on a higher-arch DSP. The V75-native SDXL set is forward-compat to V79/V81 silicon (verified on the V81 SM8850 handset, .82 + .80). NATIVE V81/V79 SDXL bins are NOT separately built yet.",
|
| 12 |
+
"source=ours: our own clean-room SDXL-Turbo -> W8A16 -> QAIRT 2.40 conversion, drop-in for our libsdxl_qnn_driver (graph name 'model', host combined-emb input). There is no AI-Hub SDXL set in this repo.",
|
| 13 |
+
"verified=true means run on real silicon and confirmed coherent+crisp. verified=false = produced + offline-validated but NEEDS a handset before NPU-enabling.",
|
| 14 |
+
"VAE path: TAESDXL CPU tiny-VAE (taesdxl_decoder.mnn, 2.4 MB) via --vae_mnn / SDXL_VAE_BACKEND=cpu. The DSP VAE is blocked at 1024px on V75 (unsigned-PD HTP cap) and the OpenCL/Vulkan VAE SIGSEGVs Adreno in Session::resize. CPU TAESDXL is the ONLY validated VAE path.",
|
| 15 |
+
"On-device fresh download is ~4.3 GB (4,308,394,979 bytes): unet.bin 2.6 GB + text_encoder_2_fp16 1.4 GB + text_encoder_1_fp16 235 MB + sdxl_emb_mlp 29 MB + taesdxl 2.4 MB + tokenizers/config."
|
| 16 |
+
],
|
| 17 |
+
"arch_to_socs": {
|
| 18 |
+
"73": {
|
| 19 |
+
"name": "Hexagon V73",
|
| 20 |
+
"socs": [
|
| 21 |
+
"SM8550 (Snapdragon 8 Gen 2)",
|
| 22 |
+
"SM8635 (8s Gen 3)",
|
| 23 |
+
"SM7475 (7+ Gen 3)"
|
| 24 |
+
]
|
| 25 |
+
},
|
| 26 |
+
"75": {
|
| 27 |
+
"name": "Hexagon V75",
|
| 28 |
+
"socs": [
|
| 29 |
+
"SM8650 (Snapdragon 8 Gen 3)",
|
| 30 |
+
"SM7675 (7 Gen 4)"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"79": {
|
| 34 |
+
"name": "Hexagon V79",
|
| 35 |
+
"socs": [
|
| 36 |
+
"SM8750 (Snapdragon 8 Elite)",
|
| 37 |
+
"SM8750-AB (8 Elite for Galaxy)"
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"81": {
|
| 41 |
+
"name": "Hexagon V81",
|
| 42 |
+
"socs": [
|
| 43 |
+
"SM8850 (Snapdragon 8 Elite Gen 5)"
|
| 44 |
+
]
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"io_contracts": {
|
| 48 |
+
"ours-sdxl-emb": {
|
| 49 |
+
"graph_name": "model",
|
| 50 |
+
"unet_inputs": {
|
| 51 |
+
"sample": "[1,4,128,128] UFIXED16 (NCHW, raw scheduler latent)",
|
| 52 |
+
"emb": "[1,1280] UFIXED16 host combined-emb = time_embedding(time_proj(t)) + add_embedding(cat(pooled, add_time_proj(time_ids))); computed host-side via sdxl_emb_mlp.bin to fold-proof BOTH sinusoidal paths qairt-converter 2.40 would constant-fold",
|
| 53 |
+
"text_embedding": "[1,77,2048] UFIXED16 = concat CLIP-L last_hidden[1,77,768] ++ bigG last_hidden[1,77,1280]"
|
| 54 |
+
},
|
| 55 |
+
"unet_output": "output [1,4,128,128] UFIXED16",
|
| 56 |
+
"text_encoder_1": "CLIP-L: in input_ids INT32 [1,77] -> out last_hidden [1,77,768] (penultimate, hidden -2)",
|
| 57 |
+
"text_encoder_2": "OpenCLIP-bigG (+projection): in input_ids INT32 [1,77] -> out last_hidden [1,77,1280] + pooled [1,1280] (pooled feeds the host emb compute)",
|
| 58 |
+
"vae": "TAESDXL CPU tiny-VAE (taesdxl_decoder.mnn), in latent [1,4,128,128] -> out [1,3,1024,1024]; CPU MNN path only (SDXL_VAE_BACKEND=cpu)",
|
| 59 |
+
"scheduler": "EulerAncestralDiscrete, trailing spacing, epsilon prediction, 4 steps native, guidance_scale 0 (NO CFG -> ONE UNet pass per step)",
|
| 60 |
+
"vae_scaling_factor": 0.13025,
|
| 61 |
+
"resolution": 1024,
|
| 62 |
+
"driver": "libsdxl_qnn_driver.so (#51 ImageGenerationSdxlNpuCliHelper); flags --text_encoder_1/--text_encoder_2/--unet/--vae_mnn/--emb_mlp/--vocab_1/--merges_1/--vocab_2/--merges_2/--backend/--system_library; env SDXL_VAE_BACKEND=cpu"
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"sets": {
|
| 66 |
+
"ours/v75": {
|
| 67 |
+
"source": "ours",
|
| 68 |
+
"dsp_arch": 75,
|
| 69 |
+
"representative_soc": "SM8650 (Snapdragon 8 Gen 3)",
|
| 70 |
+
"soc_model": 57,
|
| 71 |
+
"qairt_runtime_required": "2.40",
|
| 72 |
+
"skel": "libQnnHtpV75Skel.so",
|
| 73 |
+
"io_contract": "ours-sdxl-emb",
|
| 74 |
+
"verified": true,
|
| 75 |
+
"verify_note": "Device-verified coherent+crisp on Lenovo SM8650/V75 (.69), EulerAncestral, 4-6 steps. Forward-compat verified: these exact V75-native bins also ran coherent+crisp on the RedMagic SM8850/V81 handset (.82) and a second V81 (.80). Native-V81/V79 SDXL bins NOT separately built; V75-native is the shipping set for V73->V81.",
|
| 76 |
+
"files": {
|
| 77 |
+
"unet.bin": {
|
| 78 |
+
"path": "v75/unet.bin",
|
| 79 |
+
"size": 2637398016,
|
| 80 |
+
"md5": "d7be73631e7c2a57875517c9af09dbe8"
|
| 81 |
+
},
|
| 82 |
+
"text_encoder_1_fp16.bin": {
|
| 83 |
+
"path": "v75/text_encoder_1_fp16.bin",
|
| 84 |
+
"size": 234770432,
|
| 85 |
+
"md5": "4e9612177b6ec68a4c1ea992174cdff7"
|
| 86 |
+
},
|
| 87 |
+
"text_encoder_2_fp16.bin": {
|
| 88 |
+
"path": "v75/text_encoder_2_fp16.bin",
|
| 89 |
+
"size": 1401405440,
|
| 90 |
+
"md5": "3aa8a2ad01be2ba854f1a847ec16a9b8"
|
| 91 |
+
},
|
| 92 |
+
"sdxl_emb_mlp.bin": {
|
| 93 |
+
"path": "v75/sdxl_emb_mlp.bin",
|
| 94 |
+
"size": 29184000,
|
| 95 |
+
"md5": "0cf25084f04c78560d3e58cde177f28c"
|
| 96 |
+
},
|
| 97 |
+
"taesdxl_decoder.mnn": {
|
| 98 |
+
"path": "v75/taesdxl_decoder.mnn",
|
| 99 |
+
"size": 2464388,
|
| 100 |
+
"md5": "bfbfb43faa70fc3885bfef24a60b8882"
|
| 101 |
+
},
|
| 102 |
+
"tokenizer/vocab.json": {
|
| 103 |
+
"path": "v75/tokenizer/vocab.json",
|
| 104 |
+
"size": 1059962,
|
| 105 |
+
"md5": "a3933521163a0e76cee6094f1d72a9cc"
|
| 106 |
+
},
|
| 107 |
+
"tokenizer/merges.txt": {
|
| 108 |
+
"path": "v75/tokenizer/merges.txt",
|
| 109 |
+
"size": 524619,
|
| 110 |
+
"md5": "d2bc10797e70c920c14c69729ecdab34"
|
| 111 |
+
},
|
| 112 |
+
"tokenizer/special_tokens_map.json": {
|
| 113 |
+
"path": "v75/tokenizer/special_tokens_map.json",
|
| 114 |
+
"size": 586,
|
| 115 |
+
"md5": "f1c97d73dc836331f2138893217d32d8"
|
| 116 |
+
},
|
| 117 |
+
"tokenizer/tokenizer_config.json": {
|
| 118 |
+
"path": "v75/tokenizer/tokenizer_config.json",
|
| 119 |
+
"size": 704,
|
| 120 |
+
"md5": "b0e83247e6c27802b6f2ccce2615e402"
|
| 121 |
+
},
|
| 122 |
+
"tokenizer_2/vocab.json": {
|
| 123 |
+
"path": "v75/tokenizer_2/vocab.json",
|
| 124 |
+
"size": 1059962,
|
| 125 |
+
"md5": "a3933521163a0e76cee6094f1d72a9cc"
|
| 126 |
+
},
|
| 127 |
+
"tokenizer_2/merges.txt": {
|
| 128 |
+
"path": "v75/tokenizer_2/merges.txt",
|
| 129 |
+
"size": 524619,
|
| 130 |
+
"md5": "d2bc10797e70c920c14c69729ecdab34"
|
| 131 |
+
},
|
| 132 |
+
"tokenizer_2/special_tokens_map.json": {
|
| 133 |
+
"path": "v75/tokenizer_2/special_tokens_map.json",
|
| 134 |
+
"size": 460,
|
| 135 |
+
"md5": "1f2ba80c3ba1db3a1729f82f0c2667ce"
|
| 136 |
+
},
|
| 137 |
+
"tokenizer_2/tokenizer_config.json": {
|
| 138 |
+
"path": "v75/tokenizer_2/tokenizer_config.json",
|
| 139 |
+
"size": 855,
|
| 140 |
+
"md5": "7a07b6cea8034258f7a153860e81bc41"
|
| 141 |
+
},
|
| 142 |
+
"config.json": {
|
| 143 |
+
"path": "v75/config.json",
|
| 144 |
+
"size": 936,
|
| 145 |
+
"md5": "833a8f609063eee89c093754af978210"
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
},
|
| 150 |
+
"driver_required_files": [
|
| 151 |
+
"unet.bin",
|
| 152 |
+
"text_encoder_1_fp16.bin",
|
| 153 |
+
"text_encoder_2_fp16.bin",
|
| 154 |
+
"sdxl_emb_mlp.bin",
|
| 155 |
+
"taesdxl_decoder.mnn",
|
| 156 |
+
"tokenizer/vocab.json",
|
| 157 |
+
"tokenizer/merges.txt",
|
| 158 |
+
"tokenizer_2/vocab.json",
|
| 159 |
+
"tokenizer_2/merges.txt"
|
| 160 |
+
],
|
| 161 |
+
"install_marker_files": [
|
| 162 |
+
"unet.bin",
|
| 163 |
+
"text_encoder_1_fp16.bin",
|
| 164 |
+
"text_encoder_2_fp16.bin",
|
| 165 |
+
"taesdxl_decoder.mnn"
|
| 166 |
+
],
|
| 167 |
+
"bundle_dir_name": "SDXL-QNN-NPU",
|
| 168 |
+
"model_id": "image-sdxl-qnn-npu",
|
| 169 |
+
"total_bytes": 4308394979,
|
| 170 |
+
"total_human": "4.31 GB (4.01 GiB)"
|
| 171 |
+
}
|
v75/config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "sdxl-turbo",
|
| 3 |
+
"pipeline": "StableDiffusionXLPipeline",
|
| 4 |
+
"variant": "fp16-encoders + TAESDXL",
|
| 5 |
+
"dsp_arch": 75,
|
| 6 |
+
"skel": "libQnnHtpV75Skel.so",
|
| 7 |
+
"qairt_runtime_required": "2.40",
|
| 8 |
+
"quantization": "W8A16",
|
| 9 |
+
"resolution": 1024,
|
| 10 |
+
"latent": [1, 4, 128, 128],
|
| 11 |
+
"scheduler": "EulerAncestralDiscrete",
|
| 12 |
+
"steps_default": 4,
|
| 13 |
+
"guidance_scale": 0.0,
|
| 14 |
+
"cross_attention_dim": 2048,
|
| 15 |
+
"vae_scaling_factor": 0.13025,
|
| 16 |
+
"text_encoders": {
|
| 17 |
+
"text_encoder_1": "CLIP-L (penultimate, hidden -2) -> [1,77,768]",
|
| 18 |
+
"text_encoder_2": "OpenCLIP-bigG (+projection) -> last_hidden [1,77,1280] + pooled [1,1280]"
|
| 19 |
+
},
|
| 20 |
+
"text_embedding": "concat CLIP-L[768] ++ bigG[1280] -> [1,77,2048]",
|
| 21 |
+
"host_emb": "sdxl_emb_mlp.bin -> emb[1,1280] per step (fold-proofs timestep + add_time)",
|
| 22 |
+
"vae": "TAESDXL CPU tiny-VAE (taesdxl_decoder.mnn) via --vae_mnn, SDXL_VAE_BACKEND=cpu",
|
| 23 |
+
"graph_name": "model",
|
| 24 |
+
"io_contract": "ours-sdxl-emb"
|
| 25 |
+
}
|
v75/sdxl_emb_mlp.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82b3a85d8dc3942aa4e1b55d134180258317a863a46023f075d806fdc4c1184c
|
| 3 |
+
size 29184000
|
v75/taesdxl_decoder.mnn
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3174bb23f3aadbe59ca365aca59d00b8998a0410364ee859882affe91f10b43
|
| 3 |
+
size 2464388
|
v75/text_encoder_1_fp16.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7dfe0b318196ae5aa7ce8d592c171c1c057f2382dd7285e7ed0ffb9a1f5c521
|
| 3 |
+
size 234770432
|
v75/text_encoder_2_fp16.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0a87055f6465fb4887d02a53867dd5a3a00c0b5d479882295b097f1741f68ce
|
| 3 |
+
size 1401405440
|
v75/tokenizer/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v75/tokenizer/special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|startoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|endoftext|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<|endoftext|>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": true,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
v75/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"49406": {
|
| 5 |
+
"content": "<|startoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"49407": {
|
| 13 |
+
"content": "<|endoftext|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"bos_token": "<|startoftext|>",
|
| 22 |
+
"clean_up_tokenization_spaces": true,
|
| 23 |
+
"do_lower_case": true,
|
| 24 |
+
"eos_token": "<|endoftext|>",
|
| 25 |
+
"errors": "replace",
|
| 26 |
+
"model_max_length": 77,
|
| 27 |
+
"pad_token": "<|endoftext|>",
|
| 28 |
+
"tokenizer_class": "CLIPTokenizer",
|
| 29 |
+
"unk_token": "<|endoftext|>"
|
| 30 |
+
}
|
v75/tokenizer/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v75/tokenizer_2/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v75/tokenizer_2/special_tokens_map.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|startoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "!",
|
| 17 |
+
"unk_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": true,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
}
|
| 24 |
+
}
|
v75/tokenizer_2/tokenizer_config.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "!",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"49406": {
|
| 13 |
+
"content": "<|startoftext|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"49407": {
|
| 21 |
+
"content": "<|endoftext|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"bos_token": "<|startoftext|>",
|
| 30 |
+
"clean_up_tokenization_spaces": true,
|
| 31 |
+
"do_lower_case": true,
|
| 32 |
+
"eos_token": "<|endoftext|>",
|
| 33 |
+
"errors": "replace",
|
| 34 |
+
"model_max_length": 77,
|
| 35 |
+
"pad_token": "!",
|
| 36 |
+
"tokenizer_class": "CLIPTokenizer",
|
| 37 |
+
"unk_token": "<|endoftext|>"
|
| 38 |
+
}
|
v75/tokenizer_2/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v75/unet.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2159472360dcd197e6566a97fc85f878ad7b25fd180d64a018df72b9e861b612
|
| 3 |
+
size 2637398016
|