Upcello-Models / README.md
PowerBeef02's picture
Remove deprecated Compact tier; make Studio (4.20 GB) universal default
ed3d2c5 verified
|
Raw History Blame Contribute Delete
2.8 kB
---
license: mit
license_name: mit-and-apache-2.0
tags:
- super-resolution
- image-to-image
- apple-silicon
- metal-4
- kandinsky
- upcello
base_model:
- kandinskylab/Kandinsky-ImageSR-2.0
- black-forest-labs/FLUX.1-schnell
---
# Upcello Models (`UPCM` v1 for Metal 4.1)
Pre-baked, zero-copy `UPCM` v1 (`.upcello`) containers for [**Upcello**](https://github.com/PowerBeef/Upcello), a private, local-first AI image super-resolution studio (`×1`, `×2`, `×4`) built natively for Apple Silicon (`MTLGPUFamilyApple10+`, macOS 27 / iOS 27 / iPadOS 27).
Both containers were packed from [`kandinskylab/Kandinsky-ImageSR-2.0`](https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0) (commit `7b97cf49816622f60b1b5282dab0e1d24b553171`, `MIT`) and [`black-forest-labs/FLUX.1-schnell`](https://huggingface.co/black-forest-labs/FLUX.1-schnell) VAE (`Apache-2.0`), with:
- Bit-exact offline AdaLN + cross-attention bias pre-baking across all **26 baked timesteps** (`×1`, `×2`, `×4`, `-2.29 GB` vs. raw checkpoint)
- Dead VAE encoder `logvar` channels `[16..31]` pruned and VAE convolution weights pre-transposed to `HWIO`
- `16 KiB` page-aligned slabs for zero-copy `mmap` -> `MTLDevice.newBufferWithBytesNoCopy`
- Embedded `16 MiB` chunk SHA-256 verification table
## Verified Tiers (Live Apple M6 & Physical iPhone 17 Pro, `MTL_DEBUG_LAYER=1` = `0` errors)
| File | Tier | Exact Bytes | Heap | Mean `1024²` Tile | E2E PSNR | MS-SSIM | Mean ΔE₀₀ | SHA-256 |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | --- |
| `kandinsky-sr2-studio.upcello` | **Studio** *(Default on Mac, iPhone & iPad · 50-blk SmoothQuant `W8A8`)* | `4,204,118,016` (`4.20 GB`) | `512 MiB` (12 GB iOS) / `768 MiB` (16 GB+) | `4.71 s` (M6) / `11.52 s` (iPhone 17 Pro) | `43.90 - 43.98 dB` | `0.9973` | `0.57` | `3540ab6a5a4cec18378ab08ed8103f7269172633f9063967d51d670dcec4edee` |
| `kandinsky-sr2-reference.upcello` | **Reference** *(Optional · Pre-baked Lossless `BF16`)* | `8,128,036,864` (`8.13 GB`) | `768 MiB` | `7.20 s` (M6) | `48.15 dB` | `0.9986` | `0.42` | `fd9c87a57433bde5f2b1a76348f3ac6f80732a2b7c9409e98f87be655eb5f67e` |
On 12 GB iPhones and iPads (`Apple A19 Pro` / `M5`), `Studio` executes over a bit-exact `512 MiB` strip-tiled placement heap (`0.0` float difference vs. `768 MiB` full-res heap) at `613.7 MiB` peak dirty footprint (`5.40 GiB` free headroom).
## Licensing & Attributions
- **Transformer weights & pipeline:** [`kandinskylab/Kandinsky-ImageSR-2.0`](https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0) (MIT License)
- **VAE weights:** [`black-forest-labs/FLUX.1-schnell`](https://huggingface.co/black-forest-labs/FLUX.1-schnell) (Apache License 2.0)
- **Runtime & Packer:** [PowerBeef/Upcello](https://github.com/PowerBeef/Upcello) (Apache License 2.0)