Deep-unlearning/smol-audio

Practical, Colab-friendly notebooks for fine-tuning and running audio AI models

📚 Quick Summary

Smol Audio is a collection of practical Jupyter notebooks that show how to shrink‑down, optimise & customise state‑of‑the‑art audio AI models using the Hugging Face ecosystem. The repo is geared toward developers who want hands‑on examples of:

  • Streaming speech‑recognition (run and fine‑tune Cohere’s streaming ASR, distill a tiny student model)
  • Fine‑tuning existing large audio models such as Whisper, IBM’s Granite Speech, NVIDIA Parakeet, Voxtral, and Audio Flamingo 3 (both full‑parameter and LoRA‑style lightweight adapters)
  • Multimodal inference with Meta’s Perception Encoder for Audio‑Video (zero‑shot video classification & audio‑text retrieval).

All notebooks are runnable locally or in Google Colab and rely on Hugging Face 🤗 Transformers, Datasets, and the 🤗 Hub for model loading and checkpoint saving.


🛠️ What You Can Do With It

Use‑case How the repo helps
Run a streaming ASR model Stream Cohere Transcribe notebook shows inference on 80 ms audio chunks, lets you tweak look‑ahead settings and compare latency/accuracy.
Create a tiny streaming student Distill Streaming Student walks through teacher‑labeling a small dataset with the Cohere model, training a lightweight student, and evaluating it.
Adapt a large speech model to your data Separate notebooks for Whisper, Granite Speech (Italian), NVIDIA Parakeet, and Voxtral demonstrate full‑parameter fine‑tuning as well as LoRA‑style parameter‑efficient adaptation.
Add audio captioning capability Fine‑tune Audio Flamingo 3 shows how to train the multimodal Audio Flamingo model (full or LoRA) on audio‑caption datasets.
Zero‑shot multimodal tasks Inference with PE‑AV‑Base runs Meta’s Perception Encoder for Audio‑Video, performing video classification and audio↔text retrieval without any extra training.

📦 Core Technologies

  • 🤗 Transformers & Datasets – loading, fine‑tuning, and inference of large audio models.
  • Hugging Face Hub – model checkpoints are pulled from / pushed to the hub.
  • Google Colab – ready‑made links let you run every notebook in the cloud without local setup.
  • LoRA (Low‑Rank Adaptation) – lightweight fine‑tuning option for several models, reducing GPU memory needs.
  • Streaming inference utilities – handling sub‑second audio chunks for real‑time ASR.

🎯 Who This Is For

  • ML engineers / researchers who want quick, reproducible examples of audio model compression, distillation, or domain adaptation.
  • Developers building voice‑enabled products and need to evaluate latency‑accuracy trade‑offs of streaming ASR.
  • Students or hobbyists looking for ready‑to‑run notebooks that illustrate state‑of‑the‑art audio‑AI workflows.

📖 How to Get Started

  1. Clone the repo.
  2. Open any notebook locally or click the Colab badge to launch it in the cloud.
  3. Follow the step‑by‑step cells – they install required packages, load a model from the Hugging Face hub, run inference or start a fine‑tuning run, and save checkpoints.
  4. Adapt the provided dataset paths / parameters to your own data.

✅ Strengths & Limitations

Strengths

  • Very hands‑on: each notebook is a complete, runnable pipeline.
  • Covers a wide range of audio tasks (ASR, captioning, multimodal retrieval).
  • Shows both full‑model fine‑tuning and parameter‑efficient LoRA approaches.
  • Includes a distillation workflow for creating tiny streaming models.

Limitations

  • Primarily demonstration code – not a packaged library; you’ll need to copy/modify notebooks for production use.
  • Requires a decent GPU for fine‑tuning the larger models (e.g., Audio Flamingo 3, Granite Speech).
  • The repo does not contain the actual datasets; you must obtain them separately (e.g., YODAS‑Granary, custom speech corpora).

📚 Further Reading / Related Resources

  • Hugging Face Audio tutorials: https://huggingface.co/docs/transformers/audio
  • LoRA paper & implementations for efficient fine‑tuning.
  • Cohere streaming ASR model page on the 🤗 Hub.
  • Meta Perception Encoder for Audio‑Video research blog.

All information above is taken directly from the repository’s README; no external speculation has been added.

Related