Asteroid
Asteroid is a PyTorch audio source-separation toolkit for researchers. Use this repo skill when a task mentions Asteroid models, separation, enhancement, recipes, metrics, datasets, DSP blocks, or model sharing.
Start here
Install the runtime from a clean environment, then read the sub-skill that matches the user intent.
From this skill directory, use the bundled scripts/install_runtime.py helper to bootstrap the public Asteroid runtime packages from the skill-local scripts/runtime_requirements.txt file without depending on the source checkout.
python scripts/install_runtime.py
python scripts/smoke_training.py --device cpu
If you want a tiny training sanity check after installation, run scripts/smoke_training.py.
If you only need a quick environment sanity check, read references/installation.md, references/package-overview.md, and references/runtime-entrypoints.md, then run the bundled scripts/inspect_versions.py helper.
Route by task family
Pretrained inference and separation
Read sub-skills/pretrained-inference/SKILL.md when the task is about:
asteroid-inferBaseModel.from_pretrainedseparate(...),file_separate(...),numpy_separate(...),torch_separate(...)- Torch Hub or Hugging Face model loading
available_models()orshow_available_models()- long-file overlap-add inference with
LambdaOverlapAdd
This sub-skill covers loading pretrained checkpoints from local files, Zenodo URLs, and hub IDs, then separating audio tensors or files.
Training recipes and evaluation
Read sub-skills/training-recipes/SKILL.md when the task is about:
System,Trainer, optimizers, schedulers, or callbacks- recipe
run.sh,train.py,eval.py,local/data prep scripts, and stage-based experiment flows - datasets such as
WhamDataset,LibriMix,Wsj0mixDataset,DNSDataset,MUSDB18Dataset,FUSSDataset,AVSpeechDataset,SmsWsjDataset, orKinectWsjMixDataset - losses and metrics such as
PITLossWrapper,SinkPITLossWrapper,MetricTracker, orget_metrics
This sub-skill is the right entry point for dataset-backed training, evaluation, and recipe debugging. For a checkout-free training sanity check, use the bundled scripts/smoke_training.py entry point.
Custom model building and core APIs
Read sub-skills/custom-models/SKILL.md when the task is about:
asteroid.modelsconstructors or custom subclasses ofBaseModel- filterbanks, encoders, decoders, or model registries
- mask blocks, recurrent blocks, normalization, complex-number helpers, or DSP modules
- shape, tracing, or serialization issues
asteroid.utilsparser helpers and other reusable building blocks
This sub-skill is the right place for new architectures, custom blocks, or low-level API inspection.
Model sharing and publishing
Read sub-skills/model-sharing/SKILL.md when the task is about:
save_publishable(...)orupload_publishable(...)asteroid-uploadorasteroid-register-sr- Zenodo metadata, model cards, or publishable artifacts
- sample-rate fixes for legacy checkpoints
This sub-skill covers preparing release-ready model artifacts and the safe local smoke checks around them.
Common signals
Use the following as routing hints:
infer,separate,pretrained,hub,checkpoint,model list, orlong file→ pretrained inferencetrain,evaluate,recipe,dataset,loss,metric,scheduler, oroptimizer→ training recipesfilterbank,mask network,complex,beamforming,JIT,trace, orcustom model→ custom model buildingpublish,upload,Zenodo,model card, orregister sample rate→ model sharing
Public package surfaces worth remembering
asteroid.modelsexposes the ready-to-use model families and sharing helpers.asteroid.dataexposes dataset loaders for the supported speech, music, and audio-visual corpora.asteroid.lossesexposes PIT, MixIT, SinkPIT, SDR/MSE/STOI/PMSQE, and other loss helpers.asteroid.metricsexposes separation metrics and theMetricTrackerhelper.asteroid.engineexposes the LightningSystemwrapper plus optimizer and scheduler helpers.asteroid.dsp,asteroid.masknn,asteroid.complex_nn, andasteroid.utilsprovide the reusable building blocks that custom-model tasks usually need.scripts/install_runtime.py,scripts/smoke_training.py, andscripts/inspect_versions.pyprovide self-contained runtime bootstrap and smoke-test entry points from the skill output.
Read before editing or routing
references/repo-provenance.mdfor the source snapshot.references/repo-routing-metadata.jsonfor router placement.references/troubleshooting.mdfor cross-cutting failures.