NeMo
Safetensors
GGUF
English
audio
audio-annotation
speech-recognition
speaker-diarization
emotion-recognition
sound-event-detection
vocal-burst
pipeline
mirror
imatrix
conversational
Instructions to use laion/universal-audio-annotation-pipeline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use laion/universal-audio-annotation-pipeline with NeMo:
# tag did not correspond to a valid NeMo domain.
- llama-cpp-python
How to use laion/universal-audio-annotation-pipeline with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="laion/universal-audio-annotation-pipeline", filename="models/gemma-4-12b-it-gguf/gemma-4-12b-it-Q8_0.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 laion/universal-audio-annotation-pipeline with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf laion/universal-audio-annotation-pipeline:Q8_0 # Run inference directly in the terminal: llama-cli -hf laion/universal-audio-annotation-pipeline:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf laion/universal-audio-annotation-pipeline:Q8_0 # Run inference directly in the terminal: llama-cli -hf laion/universal-audio-annotation-pipeline:Q8_0
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 laion/universal-audio-annotation-pipeline:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf laion/universal-audio-annotation-pipeline:Q8_0
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 laion/universal-audio-annotation-pipeline:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf laion/universal-audio-annotation-pipeline:Q8_0
Use Docker
docker model run hf.co/laion/universal-audio-annotation-pipeline:Q8_0
- LM Studio
- Jan
- Ollama
How to use laion/universal-audio-annotation-pipeline with Ollama:
ollama run hf.co/laion/universal-audio-annotation-pipeline:Q8_0
- Unsloth Studio
How to use laion/universal-audio-annotation-pipeline 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 laion/universal-audio-annotation-pipeline 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 laion/universal-audio-annotation-pipeline to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for laion/universal-audio-annotation-pipeline to start chatting
- Pi
How to use laion/universal-audio-annotation-pipeline with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf laion/universal-audio-annotation-pipeline:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "laion/universal-audio-annotation-pipeline:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use laion/universal-audio-annotation-pipeline with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf laion/universal-audio-annotation-pipeline:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default laion/universal-audio-annotation-pipeline:Q8_0
Run Hermes
hermes
- Docker Model Runner
How to use laion/universal-audio-annotation-pipeline with Docker Model Runner:
docker model run hf.co/laion/universal-audio-annotation-pipeline:Q8_0
- Lemonade
How to use laion/universal-audio-annotation-pipeline with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull laion/universal-audio-annotation-pipeline:Q8_0
Run and chat with the model
lemonade run user.universal-audio-annotation-pipeline-Q8_0
List all available models
lemonade list
| """Audio input mapper for vLLM multimodal pipeline. | |
| This module handles audio data loading and preprocessing for VibeVoice ASR inference. | |
| It converts various audio input formats (path, bytes, numpy array) into tensors | |
| that can be processed by the VibeVoice model. | |
| """ | |
| import os | |
| import logging | |
| import torch | |
| import numpy as np | |
| from typing import Union, List | |
| from vllm.multimodal.inputs import MultiModalInputs | |
| from vibevoice.processor.audio_utils import load_audio_use_ffmpeg, load_audio_bytes_use_ffmpeg, AudioNormalizer | |
| logger = logging.getLogger(__name__) | |
| # Maximum audio duration in seconds. Default 3660s (61 minutes) matches the | |
| # model's designed capacity. Override via environment variable to guard against | |
| # OOM on GPUs with less VRAM. See https://github.com/microsoft/VibeVoice/issues/210 | |
| _MAX_AUDIO_DURATION = float(os.environ.get("VIBEVOICE_MAX_AUDIO_DURATION", "3660")) | |
| def load_audio(audio_path: str, target_sr: int = 24000) -> np.ndarray: | |
| """Load and normalize audio from file path. | |
| Args: | |
| audio_path: Path to audio file | |
| target_sr: Target sample rate (default 24kHz for VibeVoice) | |
| Returns: | |
| Normalized audio waveform as numpy array | |
| """ | |
| # Load with FFmpeg (handles various formats) | |
| audio, sr = load_audio_use_ffmpeg(audio_path, resample=True, target_sr=target_sr) | |
| # Normalize audio | |
| normalizer = AudioNormalizer() | |
| audio = normalizer(audio) | |
| return audio | |
| def vibevoice_audio_input_mapper(ctx, data: Union[str, bytes, np.ndarray, List[str]]) -> MultiModalInputs: | |
| """Map audio input data to vLLM MultiModalInputs format. | |
| This function is registered as the input mapper for VibeVoice audio processing. | |
| It handles multiple input formats and converts them to normalized tensors. | |
| Args: | |
| ctx: vLLM context (unused) | |
| data: Audio data in one of these formats: | |
| - str: Path to audio file | |
| - bytes: Raw audio bytes (any format FFmpeg supports) | |
| - np.ndarray: Pre-loaded audio waveform | |
| - List[str]: List of audio paths (only first is used) | |
| Returns: | |
| MultiModalInputs containing: | |
| - audio: Audio tensor (float32) | |
| - audio_length: Length of audio in samples | |
| """ | |
| # Handle list input (take first item) | |
| if isinstance(data, list): | |
| data = data[0] | |
| audio_waveform = None | |
| if isinstance(data, str): | |
| # Load from file path | |
| audio_waveform = load_audio(data) | |
| elif isinstance(data, bytes): | |
| # Decode bytes directly via ffmpeg stdin pipe to avoid temp-file IO | |
| audio_waveform, _sr = load_audio_bytes_use_ffmpeg(data, resample=True, target_sr=24000) | |
| normalizer = AudioNormalizer() | |
| audio_waveform = normalizer(audio_waveform) | |
| elif isinstance(data, np.ndarray): | |
| # Already loaded numpy array | |
| audio_waveform = data | |
| else: | |
| raise ValueError(f"Unsupported audio data type: {type(data)}") | |
| # Validate audio duration before tensor conversion to catch OOM early | |
| duration_sec = len(audio_waveform) / 24000 | |
| if duration_sec > _MAX_AUDIO_DURATION: | |
| raise ValueError( | |
| f"Audio duration ({duration_sec:.1f}s) exceeds the configured " | |
| f"limit ({_MAX_AUDIO_DURATION:.0f}s). Set the " | |
| f"VIBEVOICE_MAX_AUDIO_DURATION environment variable to adjust " | |
| f"this limit, or use shorter audio." | |
| ) | |
| # Convert to tensor | |
| audio_tensor = torch.from_numpy(audio_waveform).float() | |
| audio_length = audio_tensor.shape[0] | |
| return MultiModalInputs({ | |
| "audio": audio_tensor, | |
| "audio_length": audio_length | |
| }) | |