MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / load_residual_unit

Function load_residual_unit

src/models/ace_step/vae_decoder.cpp:308–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306 out.snake2 = load_snake_exact(store, source, prefix + ".snake2", channels);
307 out.conv2 = load_weight_norm_conv1d(store, source, prefix + ".conv2", channels, channels, 1, 1, 0, 1, storage_type, true);
308 return out;
309}
310
311VAEDecoderWeights load_vae_decoder_weights(
312 const AceStepAssets & assets,
313 ggml_backend_t backend,
314 core::BackendType backend_type,
315 size_t weight_context_bytes,
316 assets::TensorStorageType storage_type) {
317 const auto & config = assets.config.vae;
318 if (config.decoder_channels <= 0 ||
319 config.decoder_input_channels <= 0 ||
320 config.channel_multiples.empty() || config.downsampling_ratios.empty()) {
321 throw std::runtime_error("ACE-Step VAE config is incomplete for decoder loading");
322 }
323 const auto & source = *assets.vae_weights;

Callers 2

load_vae_decoder_weightsFunction · 0.70
load_vae_encoder_weightsFunction · 0.70

Calls 2

load_snake_exactFunction · 0.85
load_weight_norm_conv1dFunction · 0.70

Tested by

no test coverage detected