Views
No views yet
ferrotorch/sd-v1-5-vae-decoderrunwayml/stable-diffusion-v1-5 (subfolder vae/),
openrail.ferrotorch/scripts/pin_pretrained_diffusion_weights.py.model.safetensors (this file is pinned in
ferrotorch-hub/src/registry.rs): 5210b518f8d4e829355197aa79855c206678e91d13467a580123222c75c5a131.['encoder.conv_in.bias', 'encoder.conv_in.weight', 'encoder.conv_norm_out.bias']._value_parity_latent.bin — deterministic latent
torch.manual_seed(42); torch.randn(1, 4, 64, 64) * 0.18215,
float32, shape [1, 4, 64, 64]. This is the post-scaling
latent the SD pipeline feeds to vae.decode (which itself
divides by scaling_factor internally)._value_parity_image.bin — float32 decoded image
[1, 3, 512, 512] from
AutoencoderKL.decode(latent, return_dict=False)[0] on
float32 weights in eval mode. Same dump format as every other
ferrotorch artifact:
[u32 ndim][u32 × ndim shape][f32 × prod(shape)] little-endian.1use ferrotorch_diffusion::{VaeDecoderConfig, load_vae_decoder};
2use ferrotorch_hub::{HubCache, hf_download_model};
3
4let cache = HubCache::with_default_dir();
5let repo_dir = hf_download_model("ferrotorch/sd-v1-5-vae-decoder", "main", &cache)?;
6let cfg = VaeDecoderConfig::from_file(&repo_dir.join("config.json"))?;
7let (decoder, _drop_report) = load_vae_decoder::<f32>(
8 &repo_dir.join("model.safetensors"),
9 cfg,
10 /* strict = */ false,
11)?;