SeedVR2-3B Snapdragon NPU conversion (experimental, unofficial)

This is a modified deployment conversion of ByteDance SeedVR2-3B, not a newly trained model. The transformer was split into 32 static 256-token ONNX graphs and quantized with mixed group-wise W4/W8 weights and A16 activations; the image VAE uses W8A16. RMS normalization was rewritten with ONNX Runtime SimplifiedLayerNormalization to avoid observed quantization instability. The head and tail include fixed conditioning and the single-step inference components. This is a single-image inference conversion, not a general video model export.

Compatibility and limitations

The complete conversion was tested through a custom Android pipeline on a Snapdragon 8 Gen 2 (SM8550, HTP v73, 8 GB RAM), using ONNX Runtime 1.29.0, ONNX Runtime QNN execution provider 2.7.0 and QAIRT 2.51.0, with CPU fallback disabled for accelerator graphs. The baseline conversion was also exercised on one Snapdragon 8 Gen 3 phone (SM8650). Other devices and runtimes are untested. The transformer graphs use an ONNX Runtime-specific SimplifiedLayerNormalization operator; they are not a drop-in general ONNX model and require a compatible runtime and supporting code. Static shapes are 256 video tokens, 58 text tokens and 2560 hidden dimensions. These files alone do not include a ready-to-use application, tile processing pipeline, NPU runtime or inference script.

The device used SoC-specific precompiled QNN contexts. Those contexts and Qualcomm runtime libraries are not included in this initial release. The ONNX files here are the corrected patched graphs, whereas the current prototype app expects separate on-device context files and does not yet download this repository. They cannot be copied into a stock app to make it work. Generating compatible contexts requires the matching Qualcomm tooling and validation. Support beyond those two tested phones is not established.

The model can produce tile seams, tonal shifts, and invented or altered detail. This is experimental; no quantitative quality claim across a representative dataset is made. On the Snapdragon 8 Gen 2, one portrait took 267 seconds to produce a 1992 Γ— 2560 output; performance varies with image dimensions, device state, and thermal conditions. These measurements do not establish hardware maximum utilization. The upstream model is for restoration; not all generated details reflect the source.

Optional faster decoder (Snapdragon 8 Gen 3 experiment)

onnx/vae/decoder_256_w8a16_groupnorm.onnx is an additional W8A16 decoder graph. It replaces 30 decomposed normalization sequences with ONNX GroupNormalization while preserving the original boundary quantization scales. It removes intermediate quantization roundings, so results are not bit-identical. The original decoder remains available.

A single Snapdragon 8 Gen 3 phone (SM8650 / HTP v75) was tested with ONNX Runtime 1.29.0, ONNX Runtime QNN EP 2.7.0 and QAIRT 2.51.0. A custom QNN HTP context was compiled from this exact ONNX graph using those tools, with CPU fallback disabled. For three latent tiles, the optimized decoder measured 276–278 ms per tile versus 464–469 ms for a QNN context compiled from the baseline onnx/vae/decoder_256_w8a16.onnx on the same phone and runtime. One full 1992 Γ— 2560 portrait completed in 165 seconds versus 189 seconds in a separate prior run; output PSNR versus the output of the earlier 189-second run was 55.7 dB (8-bit peak 255, maximum per-channel difference 4/255). Only the decoder was changed; these were separate runs, not a controlled end-to-end A/B trial. The three raw decoder tile comparisons were 61.4–63.0 dB PSNR on a [-1,1] signal with peak range 2. Results may vary by image, thermal state and runtime; these are not broad quality or compatibility claims. The optimized decoder was not validated on Gen 2.

The file SHA-256 is fa55e9f0f3bba65566caf72279eb550f2c507e5622e9befa4be3ba3dd6474359; size is 52,830,295 bytes. The graph uses ONNX opset 21 and Microsoft-domain quantization operators and is validated with the runtime versions above; it is not a precompiled QNN context or a guarantee of compatibility with arbitrary ONNX runtimes. Compiling and deploying it requires a compatible QNN runtime, tooling and application; the current prototype does not download model files. No Qualcomm runtime or proprietary context is included.

Files

  • onnx/dit/block00_256.onnx through block31_256.onnx: quantized, modified transformer blocks in execution order.
  • onnx/vae/: quantized single-frame encoder, baseline decoder, and optional decoder_256_w8a16_groupnorm.onnx.
  • onnx/pipeline/: fixed-shape head and tail graphs, including fixed conditioning.
  • SHA256SUMS: checksums for model artifacts.

Attribution and provenance

Original model and architecture: ByteDance SeedVR2, SeedVR2-3B, Apache-2.0. Source transformer checkpoint hash 98669fd2c06df5eca88baf68cd5c478775c8e61fc110e598c52b350145ea2660 matches Comfy-Org SeedVR2; source VAE hash 20678548f420d98d26f11442d3528f8b8c94e57ee046ef93dbb7633da8612ca1 matches that repository. These hashes identify source checkpoints, not the converted files. Modifications include graph export and splitting, quantization, normalization fusion, and adaptation for static image tiles. The Apache 2.0 license is provided in LICENSE; any runtime or SDK used to execute these graphs has its own separate terms.

No user photographs or calibration images are included in this repository. The conversion, quantization and GroupNormalization rewrite scripts are not included, so these graphs cannot be rebuilt from the files in this repository alone. The optional decoder was rewritten from the baseline decoder graph (SHA-256 e1a573ae4572e7e5e6c933853bb9f4aac9a60dc1b482651428a21924e8e923df).

This project is unofficial and is not affiliated with ByteDance or Qualcomm. Trademarks belong to their respective owners.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for XYETHER/SeedVR2-3B-Snapdragon-NPU

Quantized
(9)
this model