Agent skill
unsloth-stt
Install this agent skill to your Project
npx add-skill https://github.com/cuba6112/skillfactory/tree/main/skills/unsloth-stt
SKILL.md
Overview
Unsloth supports fine-tuning for Speech-to-Text (STT) models like OpenAI Whisper. By applying its optimized LoRA pipeline to Whisper architecture, Unsloth achieves 1.5x faster training with 50% less memory usage compared to standard methods.
When to Use
- When you need to capture specialized terminology (medical, legal) that base Whisper misses.
- When adapting models to specific accents or dialects.
- When fine-tuning large models (like whisper-large-v3) on limited consumer hardware.
Decision Tree
- Is transcription accuracy low on zero-shot inference?
- Yes: Proceed with STT fine-tuning.
- Is audio recorded at a non-standard sample rate?
- Yes: Resample to 16kHz before training.
- Using large-v3?
- Yes: Load in 4-bit and apply LoRA to cross-attention layers.
Workflows
Whisper STT Data Preprocessing
- Load audio files using
datasets.Audiofeature to handle on-the-fly decoding. - Resample all training audio to 16kHz to avoid sample rate mismatch.
- Normalize transcripts to remove characters not present in Whisper's vocabulary.
Fine-tuning Whisper with Unsloth
- Load
whisper-large-v3usingFastLanguageModel.from_pretrainedwithload_in_4bit=True. - Apply LoRA weights to cross-attention and self-attention layers of the encoder and decoder.
- Train using
Seq2SeqTraineror standardTrainerif audio is flattened to tokens.
Non-Obvious Insights
- Whisper fine-tuning in Unsloth uses the same PEFT/LoRA pipeline as LLMs, which is why it can handle large models on consumer GPUs.
- Capturing vocal nuances like accents is significantly more effective through fine-tuning than zero-shot, as the model learns to map specific acoustic features to text tokens.
- Proper audio normalization (16kHz resampling) is the single most important preprocessing step; Whisper's architecture is hard-coded for this sample rate.
Evidence
- "Unsloth supports any transformers compatible TTS/STT model... 1.5x faster with 50% less memory." Source
- "Fine-tuning delivers far more accurate and realistic voice replication than zero-shot." Source
Scripts
scripts/unsloth-stt_tool.py: Script for resampling and preprocessing audio datasets for Whisper.scripts/unsloth-stt_tool.js: Utility for cleaning transcription strings.
Dependencies
- unsloth
- datasets
- librosa
- transformers
References
- [[references/README.md]]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
prompt-engineering
Comprehensive prompt engineering techniques for Claude models. Use this skill when crafting, optimizing, or debugging prompts for Claude API, Claude Code, or any Claude-powered application. Covers system prompts, role prompting, multishot examples, chain of thought, XML structuring, long context handling, extended thinking, prompt chaining, Claude 4.x-specific best practices, and agentic orchestration including subagents, agent loops, skills, MCP integration, and multi-agent workflows.
adk-rag-agent
Build RAG (Retrieval-Augmented Generation) agents with Google ADK and Vertex AI RAG Engine. Use when implementing document Q&A, knowledge base search, or citation-backed responses. Covers VertexAiRagRetrieval tool, corpus setup, and citation formatting.
headless-cli-agents
Build agentic systems using Claude CLI in headless mode or the Claude Agent SDK. Use when building automation pipelines, CI/CD integrations, multi-agent orchestration, or programmatic Claude interactions. Covers CLI flags (-p, --output-format), session management (--resume, --continue), Python SDK (claude-agent-sdk), custom tools, and agent loop patterns.
notion-knowledge-capture
Capture conversations and decisions into structured Notion pages; use when turning chats/notes into wiki entries, how-tos, decisions, or FAQs with proper linking.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
gh-fix-ci
Inspect GitHub PR checks with gh, pull failing GitHub Actions logs, summarize failure context, then create a fix plan and implement after user approval. Use when a user asks to debug or fix failing PR CI/CD checks on GitHub Actions and wants a plan + code changes; for external checks (e.g., Buildkite), only report the details URL and mark them out of scope.
Didn't find tool you were looking for?