Views
No views yet
OpenMuQ/MuQ-large-msd-iter (tuning mode: lora)ordinal_ce| Model | System SRCC | Utterance SRCC | Params | VRAM |
|---|---|---|---|---|
| A1 (Frozen+MSE) | 0.957 | 0.838 | ~1M | ~3 GB |
| A3a (+LoRA) | 0.960 | 0.835 | ~2M | ~4 GB |
src directory from the official repository.1import torch
2import torchaudio
3from omegaconf import OmegaConf
4from huggingface_hub import hf_hub_download
5from src.model import MusicQualityModel
6
7# Download files from Hugging Face
8config_path = hf_hub_download("zhudi2825/MuQ-Eval", "config.yaml")
9model_path = hf_hub_download("zhudi2825/MuQ-Eval", "best_model.pt")
10
11# Load config and model
12cfg = OmegaConf.load(config_path)
13model = MusicQualityModel(cfg)
14
15ckpt = torch.load(model_path, map_location="cpu", weights_only=False)
16model.load_state_dict(ckpt["model_state"])
17model.eval()
18
19# Process audio (example)
20waveform, sr = torchaudio.load("audio.wav")
21if sr != 24000:
22 waveform = torchaudio.transforms.Resample(sr, 24000)(waveform)
23waveform = waveform.mean(0) # mono
24waveform = waveform[:240000].unsqueeze(0) # [1, samples]
25
26# Predict quality
27with torch.no_grad():
28 preds = model(waveform)
29 scores = model._last_expected_scores
30 for name, score in scores.items():
31 print(f"{name}: {score.item():.2f}")1@article{muqeval2026,
2 title={MuQ-Eval: An Open-Source Per-Sample Quality Metric for AI Music Generation Evaluation},
3 author={Zhu, Di and Li, Zixuan},
4 journal={arXiv preprint arXiv:2603.22677},
5 year={2026}
6}