Downloads · 30 days
30
5% of all-time downloads
auro-rirum/audioforge-ast-fsd50k
audioforge-ast-fsd50k is a audio classification model from auro-rirum. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
LoRA-adapted Audio Spectrogram Transformer (AST) trained on FSD50K for multi-label environmental sound event classification, produced by the AudioForge training pipeline.
Downloads · 30 days
30
5% of all-time downloads
All-time downloads
596
Public
Repo size
1.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors1.8 MB · 100%
From the Hugging Face model README
LoRA-adapted Audio Spectrogram Transformer (AST) trained on FSD50K for multi-label environmental sound event classification, produced by the AudioForge training pipeline.
peft library
["q_proj", "v_proj"]| Metric | Value |
|---|---|
| mean Average Precision (mAP) | 0.5567 |
| Micro Average Precision | 0.7166 |
| Micro F1 | 0.6443 |
| Macro F1 | 0.3843 |
| Macro Precision | 0.6113 |
| Macro Recall | 0.3235 |
| Micro Precision | 0.8091 |
| Micro Recall | 0.5353 |
This repository contains only the LoRA adapter (adapter_config.json + adapter_model.safetensors, ~1.8 MB). The base model must be downloaded separately and combined with this adapter at load time.
from transformers import AutoModelForAudioClassification, AutoConfig
from peft import PeftModel
# Load base model configuration and set for FSD50K multi-label task
base_config = AutoConfig.from_pretrained("MIT/ast-finetuned-audioset-10-10-0.4593")
base_config.num_labels = 200
base_config.problem_type = "multi_label_classification"
# Load base model (87M parameters, ~340 MB)
base_model = AutoModelForAudioClassification.from_pretrained(
"MIT/ast-finetuned-audioset-10-10-0.4593",
config=base_config,
ignore_mismatched_sizes=True
)
# Apply LoRA adapter
model = PeftModel.from_pretrained(base_model, "auro-rirum/audioforge-ast-fsd50k")
model.eval()
# Input: mel-spectrogram [batch, max_length, num_mel_bins] from transformers.AutoFeatureExtractor
# Usage: logits = model(input_values=input_values).logits
# probs = torch.sigmoid(logits) # Multi-label probabilities for each class
FSD50K (Freesound Dataset 50K): Large-scale, high-quality annotated dataset of environmental audio, with 50,197 audio clips labeled across 200 sound event classes. Multi-label annotations allow clips to have multiple simultaneous events.