Instructions to use autotools/ai_video_studio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use autotools/ai_video_studio with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="autotools/ai_video_studio", filename="runtime/Auto Movie Reviewer/models/Phi-3.5-mini-balanced.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use autotools/ai_video_studio with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf autotools/ai_video_studio:Q4_K_M # Run inference directly in the terminal: llama cli -hf autotools/ai_video_studio:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf autotools/ai_video_studio:Q4_K_M # Run inference directly in the terminal: llama cli -hf autotools/ai_video_studio:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf autotools/ai_video_studio:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf autotools/ai_video_studio:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf autotools/ai_video_studio:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf autotools/ai_video_studio:Q4_K_M
Use Docker
docker model run hf.co/autotools/ai_video_studio:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use autotools/ai_video_studio with Ollama:
ollama run hf.co/autotools/ai_video_studio:Q4_K_M
- Unsloth Studio
How to use autotools/ai_video_studio with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for autotools/ai_video_studio to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for autotools/ai_video_studio to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for autotools/ai_video_studio to start chatting
- Atomic Chat new
- Docker Model Runner
How to use autotools/ai_video_studio with Docker Model Runner:
docker model run hf.co/autotools/ai_video_studio:Q4_K_M
- Lemonade
How to use autotools/ai_video_studio with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull autotools/ai_video_studio:Q4_K_M
Run and chat with the model
lemonade run user.ai_video_studio-Q4_K_M
List all available models
lemonade list
OmniVoice Examples
This directory contains scripts and configs for training, fine-tuning, and evaluating OmniVoice.
| Use Case | Script | Description |
|---|---|---|
| Training from scratch | run_emilia.sh | Full pipeline on the Emilia dataset (data check, tokenization, training) |
| Fine-tuning | run_finetune.sh | Fine-tune from a pretrained checkpoint using your own JSONL data |
| Evaluation | run_eval.sh | Evaluate WER, speaker similarity, and UTMOS on standard test sets |
Training from Scratch (Emilia)
run_emilia.sh runs the full pipeline in 3 stages:
| Stage | What it does |
|---|---|
| 0 | Verify the Emilia dataset and JSONL manifests are in place |
| 1 | Tokenize audio into WebDataset shards |
| 2 | Launch multi-GPU training with accelerate |
Prerequisites:
Download the Emilia dataset from OpenXLab and place it under
download/:download/Amphion___Emilia └── raw ├── EN └── ZHObtain JSONL manifests and place them in
data/emilia/manifests/:emilia_en_train.jsonl,emilia_en_dev.jsonlemilia_zh_train.jsonl,emilia_zh_dev.jsonl
You can generate them from the raw data, or download pre-processed manifests from HuggingFace.
Run the full pipeline:
bash examples/run_emilia.sh
Or run individual stages by setting stage and stop_stage at the top of the script (e.g. stage=1, stop_stage=1 to only tokenize).
See docs/training.md for config details, checkpoint resuming, and TensorBoard monitoring.
Fine-tuning
run_finetune.sh fine-tunes from a pretrained checkpoint on your own data.
Step 1: Prepare Your Data
Create a JSONL manifest where each line describes one audio sample:
{"id": "sample_001", "audio_path": "/data/audio/001.wav", "text": "Hello world", "language_id": "en"}
{"id": "sample_002", "audio_path": "/data/audio/002.wav", "text": "ä½ å¥½ä¸–ç•Œ", "language_id": "zh"}
id, audio_path, and text are mandatory. language_id is optional.
See docs/data_preparation.md for the full data format specification.
Step 2: Configure the Script
Edit the variables at the top of run_finetune.sh:
TRAIN_JSONL="data/my_data_train.jsonl" # path to training JSONL
DEV_JSONL="data/my_data_dev.jsonl" # path to dev JSONL
GPU_IDS="0,1" # GPUs to use
NUM_GPUS=2
OUTPUT_DIR="exp/omnivoice_finetune" # output directory
Step 3: Run
bash examples/run_finetune.sh
The script will:
- Tokenize your audio into WebDataset shards
- Launch fine-tuning with
accelerate
Main difference between fine-tuning config (config/train_config_finetune.json) and the Emilia training config (config/train_config_emilia.json) are:
| Parameter | Emilia (from scratch) | Fine-tune | Why |
|---|---|---|---|
init_from_checkpoint |
null |
"k2-fsa/OmniVoice" |
Load pretrained weights |
steps |
300,000 | 5,000 | Fewer steps for fine-tuning, can be tuned according to your data/task. |
learning_rate |
1e-4 | 5e-5 | Lower LR for fine-tuning, can be tuned according to your data/task |
To use a different pretrained checkpoint, modify init_from_checkpoint in the config file.
If you encounter issues with flex_attention on your GPU, use config/train_config_finetune_sdpa.json instead, which uses SDPA attention for broader compatibility. See docs/training.md for details.
Evaluation
Install evaluation dependencies first:
pip install omnivoice[eval]
# or
uv sync --extra eval
Supported test sets: librispeech_pc, seedtts_en, seedtts_zh, fleurs, minimax.
bash examples/run_eval.sh
See docs/evaluation.md for metrics details, test set preparation, and running individual metrics.