| """ |
| ACE-Step Training Module |
| |
| This module provides LoRA training functionality for ACE-Step models, |
| including dataset building, audio labeling, and training utilities. |
| """ |
|
|
| from acestep.training.dataset_builder import DatasetBuilder, AudioSample |
| from acestep.training.configs import LoRAConfig, TrainingConfig |
| from acestep.training.lora_utils import ( |
| inject_lora_into_dit, |
| save_lora_weights, |
| load_lora_weights, |
| merge_lora_weights, |
| check_peft_available, |
| ) |
| from acestep.training.data_module import ( |
| |
| PreprocessedTensorDataset, |
| PreprocessedDataModule, |
| collate_preprocessed_batch, |
| |
| AceStepTrainingDataset, |
| AceStepDataModule, |
| collate_training_batch, |
| load_dataset_from_json, |
| ) |
| from acestep.training.trainer import LoRATrainer, PreprocessedLoRAModule, LIGHTNING_AVAILABLE |
|
|
| def check_lightning_available(): |
| """Check if Lightning Fabric is available.""" |
| return LIGHTNING_AVAILABLE |
|
|
| __all__ = [ |
| |
| "DatasetBuilder", |
| "AudioSample", |
| |
| "LoRAConfig", |
| "TrainingConfig", |
| |
| "inject_lora_into_dit", |
| "save_lora_weights", |
| "load_lora_weights", |
| "merge_lora_weights", |
| "check_peft_available", |
| |
| "PreprocessedTensorDataset", |
| "PreprocessedDataModule", |
| "collate_preprocessed_batch", |
| |
| "AceStepTrainingDataset", |
| "AceStepDataModule", |
| "collate_training_batch", |
| "load_dataset_from_json", |
| |
| "LoRATrainer", |
| "PreprocessedLoRAModule", |
| "check_lightning_available", |
| "LIGHTNING_AVAILABLE", |
| ] |
|
|