pymss-core
Core model, configuration, and checkpoint package for music source separation.
pymss-core is the shared low-level package for higher-level projects such as
pymss inference and pymsst training. It contains model definitions,
configuration loading, and checkpoint compatibility helpers. It intentionally
does not include inference DSP pipelines, chunked demixing, audio file I/O,
model downloads, catalog management, CLI, HTTP server, WebUI, datasets, losses,
or training loops.
Install
pip install pymss-core
For local development:
uv sync --dev
Optional MLX backend on Apple Silicon:
pip install "pymss-core[mlx]"
Public API
from pymss_core import (
get_model_from_config,
load_config,
load_model_weights,
)
model, config = get_model_from_config("bs_roformer", "config.yaml")
load_model_weights(model, "model.ckpt", model_type="bs_roformer", strict=True)
model.eval()
- Use
get_model_from_config("auto", "config.yaml")to detect the architecture from YAML.detect_model_type(config)exposes the same detection for an already loaded configuration. Unknown or conflicting architectures raiseModelTypeDetectionError(aRuntimeErrorsubclass); an explicit model type overrides detection. bs_roformeralso loads BS PolarFormer checkpoints when the matching YAML setsmodel.use_pope: true.
Package Boundary
Included:
- YAML config loading with
AttrDict - PyTorch model definitions under
pymss_core.modules - Optional MLX backend implementations for supported model forward paths
- Model factory:
get_model_from_config(model_type, config_path) - Checkpoint helpers for common MSS checkpoint containers
- Small model-internal DSP math needed to construct model structures
- VR network structures and VR model parameter JSON files
Excluded:
- Audio file decoding/encoding
- Resampling, preprocessing, and full inference DSP pipelines
- Tensor-level chunked demixing runtime
- Model catalog, aliases, downloads, and cache management
- CLI, server, WebUI, and endpoint schemas
- Dataset, augmentation, loss, metrics, and trainer code
- Any default dependency on MLX, Librosa, tqdm, Lightning, FastAPI, Uvicorn, PyAV, WandB, or training extras
Repository Roles
pymss-core
shared model/config/checkpoint layer
pymss
user-facing inference package built on pymss-core, with audio I/O and demix
pymsst
training package built on pymss-core, with training data/loss/runtime code
Release files for pymss-core 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymss_core-0.1.9.tar.gz | 98.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymss_core-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 221.2 kB
Release files / pymss_core-0.1.9.tar.gz
| Download URL | pymss_core-0.1.9.tar.gz |
|---|---|
| Size | 98.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a202bfa9e2590e50e1e16c69b2cf8978f3d94aa6db3eaa243bc10836e781536
|
|
BLAKE2b-256 checksum How to use checksums |
34608ffbcab8cf4f8f236b804d280a99bb47ddfda282042c93c62e00805c1010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / pymss_core-0.1.9-py3-none-any.whl
| Download URL | pymss_core-0.1.9-py3-none-any.whl |
|---|---|
| Size | 122.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ad6f00bf74be2ee622cf2caaaaeb5f9e84f4abd039f7f07d413cc137b6866de
|
|
BLAKE2b-256 checksum How to use checksums |
e3f6d88ade3ad29ee0b3012494e09ad78e86dec398ddf8d2384566a180669149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency log