Instructions to use gatilin/duo-av-codecs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use gatilin/duo-av-codecs with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("gatilin/duo-av-codecs", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("gatilin/duo-av-codecs", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Duo shared audio and video codecs
Research bundle of the audio and video VAEs in Duo-1.2-causal-base, pinned to d65767bcbbf699ae7782fb71931112001db0a15b. The corresponding files in Duo-1.0-causal-base are byte-identical according to Hugging Face LFS SHA-256 metadata. Files were copied unchanged; the realization, intent and speech models are not included.
codec/audio_vae/diffusion_pytorch_model.safetensors: DAC-based audio VAE, 605,429,340 bytes, SHA-25652c59e67ba8de5477c81bfbced0327aabf500f1bfdeefd5ee754529241cb26cb. Mono model, used with stereo as two batch items; 32 kHz, 800 samples per latent, 32 latent channels.codec/video_vae/model.safetensors: video VAE, 10,415,548,320 bytes, SHA-2565f0c2e161d895a9fee7645ca32d4a7e3a22b90cacfcbeba62ec999cdbbefe0d3. The official codec configuration has 24 latent channels, spatial factor 16, temporal factor 4 and a ViT decoder.config/contains the official runtime YAML configurations, taken from the Duo code at revision068e357ede2bdea233b408645301e522f560da73. These configurations include latent normalization; follow the official loader and pipeline for preprocessing and streaming behavior.
Validation and limits
Both destination LFS SHA-256 hashes and sizes match the pinned source. The audio file was additionally downloaded from the official ModelScope mirror and hashed locally. The original audio model was strictly loaded and tested on a short synthetic 32 kHz waveform: its encoder produced two 32-dimensional latent steps and its decoder returned 1,600 finite samples. This is a smoke test, not a measure of audio quality.
The video header lists 560 FP32 tensors; their names and shapes match the official meta-constructed video VAE. The full video file was not downloaded or locally hashed, no tensor values were loaded in that structural audit, and no video encode/decode forward was run. The audit used a no-op compatibility shim for the optional Diffusers original-file-loading mixin. See the validation JSON files and provenance.json. No full Duo pipeline was tested.
License
The source bundle identifies the MiniMax H3 Community License. The exact upstream LICENSE and NOTICE are included. The license contains territorial limitations and conditions for distribution and recipients. Users and distributors must comply with the applicable territory and recipient requirements; do not treat the code's Apache-2.0 license as the weight license. External components and code retain their own notices.
- Downloads last month
- -
Model tree for gatilin/duo-av-codecs
Base model
inclusionAI/Duo-1.2-causal-base