maest-infer
Inference-only package for MAEST (Music Audio Efficient Spectrogram Transformer).
This is a lightweight, dependency-minimal repackaging of MAEST focused solely on inference. For training, fine-tuning, and the full research codebase, please visit the original MAEST repository.
Installation
# From PyPI
pip install maest-infer
# Or with uv
uv pip install maest-infer
For development:
git clone https://github.com/openmirlab/maest-infer.git
cd maest-infer
pip install -e .
Usage
import torch
from maest_infer import get_maest
# Load model (downloads pretrained weights automatically)
model = get_maest(arch="discogs-maest-30s-pw-129e-519l")
model.eval()
# Inference with raw 16kHz audio
audio = torch.randn(16000 * 30) # 30 seconds
logits, embeddings = model(audio)
# logits: (1, 519), embeddings: (1, 768)
# Predict with labels
activations, labels = model.predict_labels(audio)
Available Models
| Model | Input Length | Labels | Description |
|---|---|---|---|
discogs-maest-5s-pw-129e |
5 sec | 400 | PaSST weights |
discogs-maest-10s-fs-129e |
10 sec | 400 | From scratch |
discogs-maest-10s-pw-129e |
10 sec | 400 | PaSST weights |
discogs-maest-10s-dw-75e |
10 sec | 400 | DeiT weights |
discogs-maest-20s-pw-129e |
20 sec | 400 | PaSST weights |
discogs-maest-30s-pw-129e |
30 sec | 400 | PaSST weights |
discogs-maest-30s-pw-73e-ts |
30 sec | 400 | Teacher-student |
discogs-maest-30s-pw-129e-519l |
30 sec | 519 | Extended labels |
All model checkpoints are hosted on GitHub Releases and downloaded automatically on first use (cached in ~/.cache/torch/hub/checkpoints/).
License
This package is licensed under AGPL-3.0-only, following the original MAEST license.
Credits & Acknowledgments
This package is a repackaging of MAEST (Music Audio Efficient Spectrogram Transformer) created by Pablo Alonso-Jimenez and colleagues at the Music Technology Group (MTG), Universitat Pompeu Fabra.
- Original Repository: https://github.com/palonso/maest
- Hugging Face Models: https://huggingface.co/mtg-upf
- Paper: arXiv:2309.16418
We are grateful to the original authors for making their research and pretrained models publicly available.
Citation
If you use MAEST in your research, please cite the original paper:
@inproceedings{alonso2023efficient,
title={Efficient Supervised Training of Audio Transformers for Music Representation Learning},
author={Alonso-Jim{\'e}nez, Pablo and Serra, Xavier and Bogdanov, Dmitry},
booktitle={Proceedings of the 24th International Society for Music Information Retrieval Conference (ISMIR)},
year={2023},
}
Related Projects
Metadata
Release files for maest-infer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maest_infer-0.2.0.tar.gz | 39.9 kB | With provenance | Details for maest_infer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maest_infer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for maest_infer-0.2.0-py3-none-any.whl |
Total release size: 84.4 kB
Release files / maest_infer-0.2.0.tar.gz
| Download URL | maest_infer-0.2.0.tar.gz |
|---|---|
| Size | 39.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b500ec8c7bd9627f4e298b40e9cb3be4cb3975435cfc5f10a85f45504af9d53a
|
|
BLAKE2b-256 checksum How to use checksums |
200ad28989ed1acdde8d746b4b202ee86e4ae1a7701d3274ed84bcaf6342b95e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 11, 2026.
Transparency logRelease files / maest_infer-0.2.0-py3-none-any.whl
| Download URL | maest_infer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 44.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc0fb90418e88d144fa0fb258e9a0c76076ae6a21d73539efde25b4c5a1cf0a6
|
|
BLAKE2b-256 checksum How to use checksums |
c25165f6cac1b62bdf097c28496d28d8c39579cf342dd17de0d950cd7a284bfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 11, 2026.
Transparency logSecurity for maest-infer 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for maest_infer-0.2.0.tar.gz
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 Jul 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.