--- base_model: ByteDance-Seed/SeedVR2-3B base_model_relation: quantized license: apache-2.0 pipeline_tag: image-to-video library_name: gguf tags: - gguf - moonbox - seedvr2 - video-super-resolution - video-restoration - stable-diffusion.cpp --- # SeedVR2 GGUF GGUF builds of [SeedVR2](https://huggingface.co/ByteDance-Seed/SeedVR2-3B), made by Moonbox for on-device use. Each precision is one file at the root of this repository; pick one by the memory you have. Only the model's own weights are converted: the other parts of the pipeline (text encoder, VAE, tokenizer) come from the original repository unless the section below says otherwise. ## Files The last column is how far each file is from the original BF16 weights: the relative RMS error of its dequantized weights, averaged over all parameters. Image-quality scores against BF16 outputs are added as each precision passes the image eval. | Precision | File | Size | sha256 | Checked against BF16 | |---|---|---|---|---| | F16 | [`seedvr2-F16.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-F16.gguf) | 6.78 GB | `2e573ed10398` | the fp16 repack as is; the reference for the PSNR below; 24.9 / 21.4 dB from the original's frames (colour correction, own noise) | | Q8_0 | [`seedvr2-Q8_0.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q8_0.gguf) | 3.62 GB | `b05a916d3c17` | PSNR vs F16 43.3 / 40.3 dB mean, 41.2 / 39.6 worst frame (example0 / example1) | | Q6_K | [`seedvr2-Q6_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q6_K.gguf) | 2.80 GB | `437c0f16be0f` | PSNR vs F16 37.9 / 34.5 dB mean, 36.3 / 33.5 worst | | Q5_K | [`seedvr2-Q5_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q5_K.gguf) | 2.35 GB | `f99ead496f5b` | experimental: PSNR vs F16 33.4 / 29.8 dB mean, 32.1 / 28.8 worst (bar 30 on every frame) | | Q4_K | [`seedvr2-Q4_K.gguf`](https://huggingface.co/moonbox-dev/SeedVR2-3B-GGUF/blob/main/seedvr2-Q4_K.gguf) | 1.93 GB | `e0fe9861eef8` | experimental: PSNR vs F16 28.8 / 25.5 dB mean, 27.9 / 24.7 worst | ## How to run These files hold SeedVR2-3B's diffusion transformer (a NaDiT, one step) for [stable-diffusion.cpp](https://github.com/leejet/stable-diffusion.cpp)'s video upscaling. Take the VAE, `vae/seedvr2_ema_vae_fp16.safetensors`, from [Comfy-Org/SeedVR2](https://huggingface.co/Comfy-Org/SeedVR2). Then: ```sh sd-cli -M vid_upscale --diffusion-model seedvr2-Q8_0.gguf --vae seedvr2_ema_vae_fp16.safetensors \ --input-frames frames --upscale-factor 2 --vsr-temporal-chunk-size 5 -s 42 -o restored.avi ``` stable-diffusion.cpp's `docs/models/seedvr2.md` describes the options. **How these were made.** The source is Comfy-Org's fp16 repack of ByteDance-Seed's `seedvr2_ema_3b.pth`, with the tensor names stable-diffusion.cpp loads. It was converted with stable-diffusion.cpp's own converter (`sd-cli -M convert --type`, master-532d2c1): - **F16:** the repack as it is. - **Quantizations:** Q8_0, Q6_K, and pure Q5_K and Q4_K, with every weight matrix in that one type. llama-quantize's _M mixes don't exist for this architecture, so these files are named for what they hold. **Benchmark.** - **Clips:** two of 17 frames (384 x 384 and 512 x 288), the low-res frames already resized to the output size. - **Run:** upscale factor 1, seed 666, temporal chunks of 5, stable-diffusion.cpp on CUDA (RTX 3080 Laptop). - **Score:** PSNR of every frame against the F16 file's output. - **Pass mark:** at least 30 dB on every frame. Q5_K and Q4_K fall below it, so they are marked experimental. Every file is also about 24.8 / 21.4 dB from the frames of the original repository's script, and F16 is the same. The quantization isn't the cause: stable-diffusion.cpp keeps the input's colours, which the repository's script (without its colour fix) does not, and it draws its own noise. ## How these were made From [SeedVR2](https://huggingface.co/ByteDance-Seed/SeedVR2-3B) at revision `37255ff8cc`: the original BF16 weights converted to GGUF F16 / BF16, then quantized with llama.cpp's `llama-quantize`. Every file was checked against the original before upload; the `sha256` column above is what the files must hash to. ## License Apache-2.0. These files are a derivative of the original model and carry its license: it is copied in this repository, and it governs your use of these files. The original model card follows unchanged. --- # Original model card
