MCPcopy Create free account

hub / github.com/Stability-AI/stable-audio-tools / functions

Functions1,182 in github.com/Stability-AI/stable-audio-tools

Methodon_save_checkpoint
(self, checkpoint)
stable_audio_tools/training/arc.py:580
Methodon_save_checkpoint
(self, checkpoint)
stable_audio_tools/training/diffusion.py:936
Methodon_train_batch_end
(self, trainer, module, outputs, batch, batch_idx)
stable_audio_tools/training/diffusion.py:216
Methodon_train_batch_end
Synchronize non-FSDP parameters after optimizer step.
stable_audio_tools/training/diffusion.py:529
Methodon_train_batch_end
(self, trainer, module: DiffusionCondTrainingWrapper, outputs, batch, batch_idx)
stable_audio_tools/training/diffusion.py:980
Methodon_train_batch_end
(self, trainer, module: DiffusionCondTrainingWrapper, outputs, batch, batch_idx)
stable_audio_tools/training/diffusion.py:1490
Methodon_train_batch_end
(self, trainer, module: DiffusionAutoencoderTrainingWrapper, outputs, batch, batch_idx)
stable_audio_tools/training/diffusion.py:1924
Methodon_train_batch_end
(self, trainer, module, outputs, batch, batch_idx)
stable_audio_tools/training/autoencoders.py:1112
Methodon_train_batch_end
(self, trainer, module: CLAPTrainingWrapper, outputs, batch, batch_idx)
stable_audio_tools/training/clap.py:480
Methodon_train_batch_end
(self, trainer, module: AudioLanguageModelTrainingWrapper, outputs, batch, batch_idx)
stable_audio_tools/training/lm.py:204
Methodon_train_batch_end
(self, trainer, module, outputs, batch, batch_idx)
stable_audio_tools/training/metrics/conditioner_distance.py:70
Methodon_train_batch_start
(self, trainer, module, batch, batch_idx)
stable_audio_tools/training/metrics/fad_metrics.py:891
Methodon_train_batch_start
(self, trainer, module, batch, batch_idx)
stable_audio_tools/training/metrics/fad_metrics.py:1207
Methodon_train_epoch_end
(self)
stable_audio_tools/training/autoencoders.py:685
Methodon_train_start
(self, trainer, pl_module)
stable_audio_tools/models/lora/callbacks.py:26
Methodon_validation_batch_end
(self, *args, **kwargs)
pre_encode.py:174
Methodon_validation_epoch_end
(self)
stable_audio_tools/training/diffusion.py:893
Methodon_validation_epoch_end
(self)
stable_audio_tools/training/autoencoders.py:740
Methodon_validation_epoch_end
(self)
stable_audio_tools/training/clap.py:445
Functionor_reduce
(masks)
stable_audio_tools/models/transformer.py:186
Functionpad_for_conv1d
Pad for a convolution to make sure that the last window is full. Extra padding is added at the end. This is required to ensure that we can rebuild
stable_audio_tools/models/adp.py:82
Methodprepare_data
(self)
pre_encode.py:57
Functionprogress_callback
(callback_info)
stable_audio_tools/interface/gradio.py:223
Functionprogress_callback
(callback_info)
stable_audio_tools/interface/interfaces/diffusion_cond.py:205
Functionproj_pca
(tokens, proj_dims=3)
stable_audio_tools/interface/aeiou.py:62
Functionrand_scalar
()
stable_audio_tools/training/autoencoders.py:146
Functionremove_lora
remove lora parametrization to all layers in a model. This will remove all parametrization
stable_audio_tools/models/lora/model.py:424
Functionremove_lora_by_index
Remove all LoRA parametrizations with a specific lora_index. For modules where other LoRA entries remain, only the matching entry is deleted.
stable_audio_tools/models/lora/model.py:428
Methodreset_parameters
(self)
stable_audio_tools/models/arc.py:88
Methodreset_parameters
(self)
stable_audio_tools/models/arc.py:154
Methodreset_parameters
Recursively reset all parameters in the discriminator head.
stable_audio_tools/models/arc.py:254
Methodreset_parameters
(self)
stable_audio_tools/models/arc.py:367
Methodrestore_ema_model_device
(self)
stable_audio_tools/training/ema.py:104
Functionsample
(b)
stable_audio_tools/training/arc.py:47
Functionsample_dpm_2
A sampler inspired by DPM-Solver-2 and Algorithm 2 from Karras et al. (2022).
stable_audio_tools/inference/k_diffusion/sampling.py:128
Functionsample_dpm_adaptive
DPM-Solver-12 and 23 (adaptive step size). See https://arxiv.org/abs/2206.00927.
stable_audio_tools/inference/k_diffusion/sampling.py:381
Functionsample_dpm_fast
DPM-Solver-Fast (fixed step size). See https://arxiv.org/abs/2206.00927.
stable_audio_tools/inference/k_diffusion/sampling.py:369
Functionsample_dpmpp_2m
DPM-Solver++(2M).
stable_audio_tools/inference/k_diffusion/sampling.py:430
Functionsample_dpmpp_2m_sde
DPM-Solver++(2M) SDE.
stable_audio_tools/inference/k_diffusion/sampling.py:456
Functionsample_dpmpp_2s_ancestral
Ancestral sampling with DPM-Solver++(2S) second-order steps.
stable_audio_tools/inference/k_diffusion/sampling.py:396
Functionsample_dpmpp_3m_sde
DPM-Solver++(3M) SDE.
stable_audio_tools/inference/k_diffusion/sampling.py:501
Functionsample_euler
(model_wrapper, x_t, t, s, cond, steps=4, **teacher_kwargs)
stable_audio_tools/training/arc.py:64
Functionsample_euler_model
(model, x_t, t, s, steps=4, **teacher_kwargs)
stable_audio_tools/training/arc.py:76
Functionsample_heun
Implements Algorithm 2 (Heun steps) from Karras et al. (2022).
stable_audio_tools/inference/k_diffusion/sampling.py:99
Functionsample_lms
(model, x, sigmas, extra_args=None, callback=None, disable=None, order=4)
stable_audio_tools/inference/k_diffusion/sampling.py:172
Functionselect_lora
(model, index)
stable_audio_tools/models/lora/utils.py:336
Methodsetup
(self, stage=None)
pre_encode.py:71
Methodsetup
(self, trainer, pl_module, stage=None)
stable_audio_tools/training/fsdp.py:254
Methodshift
(self, t: torch.Tensor, seq_len)
stable_audio_tools/inference/sampling.py:36
Methodshift
Shift timesteps based on sequence length. Args: t: Timesteps tensor of shape (batch_size,) or (steps,) seq_len: Eithe
stable_audio_tools/inference/sampling.py:91
Methodshift
Shift timesteps based on sequence length to adjust noise schedule. Args: t: Timesteps tensor of shape (batch_size,) or (
stable_audio_tools/inference/sampling.py:121
Functionsliding_window_mask
(b, h, q_idx, kv_idx)
stable_audio_tools/models/attn_masks.py:2
Functionspectral_convergence_loss
(pred: torch.Tensor, target: torch.Tensor)
stable_audio_tools/models/utils.py:137
Methodstep
Performs a single optimization step. Arguments: closure (`Callable`, *optional*): A closure that reevaluates the model a
stable_audio_tools/training/optims.py:56
Methodstep
(self, closure: Optional[Callable] = None)
stable_audio_tools/training/optims.py:323
Methodsum_dicts
(dict_a, dict_b)
stable_audio_tools/models/discriminators.py:413
Methodt_to_sigma
(self, t)
stable_audio_tools/inference/k_diffusion/external.py:28
Functiontie_weights
tie the weights of the linear layer and the embedding layer both with the same lora
stable_audio_tools/models/lora/utils.py:402
Methodtokenize
(self, x, **kwargs)
stable_audio_tools/models/pretransforms.py:103
Methodtokenize
(self, x)
stable_audio_tools/models/pretransforms.py:621
Methodtokenize
(self, x)
stable_audio_tools/models/pretransforms.py:686
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/arc.py:965
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/diffusion.py:128
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/diffusion.py:541
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/diffusion.py:1818
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/autoencoders.py:764
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/clap.py:262
Methodtraining_step
(self, batch, batch_idx)
stable_audio_tools/training/lm.py:115
Functionuniform_loss
(x, t=2)
stable_audio_tools/training/clap.py:34
Functionuntie_weights
untie the weights of the linear layer and the embedding layer
stable_audio_tools/models/lora/utils.py:413
Functionupdate_dist_shift_state
Route the 4 relevant params to build_dist_shift based on type.
stable_audio_tools/interface/interfaces/diffusion_cond.py:564
Functionupdate_fn
(p, grad, exp_avg, lr, wd, beta1, beta2)
stable_audio_tools/training/optims.py:120
Functionupdate_inpaint_sliders
(seconds_total)
stable_audio_tools/interface/interfaces/diffusion_cond.py:632
Methodvalid_layout
(self)
stable_audio_tools/models/codebook_patterns.py:88
Methodvalidation_step
(self, batch, batch_idx)
pre_encode.py:76
Methodvalidation_step
(self, batch, batch_idx)
stable_audio_tools/training/diffusion.py:814
Methodvalidation_step
(self, batch, batch_idx)
stable_audio_tools/training/autoencoders.py:690
Methodvalidation_step
(self, batch, batch_idx)
stable_audio_tools/training/clap.py:406
Methodwds_preprocess
(self, sample)
stable_audio_tools/data/dataset.py:841
Methodwrap_fsdp
Wrap model components for FSDP distributed training. Uses selective wrapping: only transformer layers are wrapped with FSDP for
stable_audio_tools/training/diffusion.py:498
Methodwrap_policy
Wrap only transformer layers (largest modules).
stable_audio_tools/training/arc.py:937
Methodwrap_policy
Wrap only transformer layers (largest modules).
stable_audio_tools/training/diffusion.py:510
← previous1,101–1,182 of 1,182, ranked by callers