Run this model with HF Jobs

Run HAizelf/ast-finetuned-gtzan on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/HAizelf/ast-finetuned-gtzan. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/HAizelf/ast-finetuned-gtzan on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

ast-finetuned-gtzan

This model is a fine-tuned version of MIT/ast-finetuned-audioset-10-10-0.4593 on the GTZAN dataset. It achieves the following results on the evaluation set:

  • Loss: 0.3598
  • Accuracy: 0.9600
  • Chunk Accuracy: 0.9167

Model description

Audio Spectrogram Transformer fine-tuned for 10-way music genre classification (HF Audio Course, Unit 4). Training used linear probing followed by full fine-tuning with layer-wise learning-rate decay, on random 10 s crops.

Evaluation: marsyas/gtzan (config all), train_test_split(test_size=0.1, seed=42, shuffle=True) test split (100 clips). Clips are resampled to 16 kHz and cut into 10 s chunks (tails under 2 s dropped). Chunk logits are averaged per clip. The reported Accuracy (0.96) is clip-level accuracy; "Chunk Accuracy" is per 10 s chunk. The uploaded weights are the best checkpoint (step 845, epoch 5), re-evaluated before upload.

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 3e-05
  • train_batch_size: 2
  • eval_batch_size: 16
  • seed: 42
  • gradient_accumulation_steps: 8
  • total_train_batch_size: 16
  • optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_steps: 135
  • training_steps: 1352
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Accuracy Chunk Accuracy Validation Loss
0.0827 1.0007 169 0.8900 0.8567 0.6314
0.0365 2.0015 338 0.8800 0.8733 0.5291
0.0202 3.0022 507 0.9200 0.8900 0.5108
0.0082 4.0030 676 0.9400 0.9067 0.4654
0.0018 5.0037 845 0.9600 0.9167 0.3598
0.0026 6.0044 1014 0.9600 0.9200 0.4235
0.0001 7.0052 1183 0.9600 0.9233 0.3668
0.0001 8.0059 1352 0.9600 0.9167 0.3638

Framework versions

  • Transformers 5.22.0
  • Pytorch 2.15.0
  • Datasets 3.6.0
  • Tokenizers 0.23.3
Downloads last month
58
Safetensors
Model size
86.2M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for HAizelf/ast-finetuned-gtzan

Finetuned
(219)
this model

Dataset used to train HAizelf/ast-finetuned-gtzan

Evaluation results