๐ Whisper TensorRT-LLM compiler with CUDA 12.8 & Ubuntu 22.04 for optimized speech-to-text models
986
GPU-accelerated speech recognition ecosystem for OpenAI Whisper models using TensorRT-LLM. Delivers industry-leading performance for real-time speech-to-text applications with NVIDIA GPU acceleration.
Architecture: Built on top of andspace/trt-llm:base-12.8 which provides the foundational TensorRT-LLM environment with CUDA 12.8 support.
compilerModel Compilation & Development Environment
Foundation:
Whisper-Specific Assets:
ML & Audio Libraries:
Best for: Model compilation, TensorRT engine building, performance optimization
latest โ compiler # Points to production-ready image
Compiler Image:
andspace/whisper-trt:1.2-compiler-12.8 # Full version
andspace/whisper-trt:compiler-12.8 # Dependency version
andspace/whisper-trt:compiler # Type tag
andspace/whisper-trt:latest # Latest (โ compiler)
Full version: {release}-{type}-{cuda}
Dependency version: {type}-{cuda}
โ โ โโโโโโโโโโโ CUDA version (12.8)
โ โโโโโโโโโโโโโโโโโโโ Image type (compiler)
โโโโโโโโโโโโโโโโโโโโโโโโโโโ Release version (1.2)
The compiler image includes an automated compilation script (compile-whisper-model.sh) that handles the complete model compilation pipeline:
Compilation Steps:
| Option | Default | Description |
|---|---|---|
--model | large-v3 | Whisper model to compile |
--precision | float16 | Inference precision |
--batch_size | 8 | Maximum batch size |
--beam_width | 4 | Maximum beam width |
/models/downloaded//models/
โโโ downloaded/ ๐ Shared model cache
โ โโโ {model_name}.pt
โโโ {model_name}_{precision}/ ๐ฏ Compiled model
โโโ encoder/
โ โโโ config.json
โ โโโ rank0.safetensors
โ โโโ rank0.engine โ
TensorRT engine
โโโ decoder/
โ โโโ config.json
โ โโโ rank0.safetensors
โ โโโ rank0.engine โ
TensorRT engine
โโโ model_info.json ๐ Compilation metadata
| Model | Size | Use Case |
|---|---|---|
large-v3 | ~3GB | Latest & most accurate |
large-v2 | ~3GB | High accuracy |
medium | ~1.5GB | Balanced performance |
small | ~500MB | Fast processing |
base | ~150MB | Quick transcription |
tiny | ~40MB | Ultra-fast, basic accuracy |
| Precision | Speed | Accuracy | Memory | Compilation |
|---|---|---|---|---|
float16 | โญโญโญโญ | โญโญโญโญ | Recommended | โ Stable |
float32 | โญโญโญ | โญโญโญโญโญ | Highest accuracy | โ Stable |
int8 | โญโญโญโญโญ | โญโญโญ | Balanced | โ Stable |
int4 | โญโญโญโญโญ | โญโญ | Maximum speed | โ ๏ธ Experimental |
# Model compilation & development (recommended)
docker pull andspace/whisper-trt:latest
# Version pinning with dependencies only
docker pull andspace/whisper-trt:compiler-12.8
# Full version pinning
docker pull andspace/whisper-trt:1.2-compiler-12.8
# Basic compilation (large-v3, float16)
docker run --gpus all -v $(pwd)/models:/models \
andspace/whisper-trt:latest \
compile-whisper-model.sh
# Custom model and precision
docker run --gpus all -v $(pwd)/models:/models \
andspace/whisper-trt:latest \
compile-whisper-model.sh \
--model small --precision float16 --batch_size 4
# High-throughput configuration
docker run --gpus all -v $(pwd)/models:/models \
andspace/whisper-trt:latest \
compile-whisper-model.sh \
--model medium --precision float16 \
--batch_size 16 --beam_width 8
Development Setup:
# Compile tiny model for quick testing
docker run --gpus all -v $(pwd)/models:/models \
andspace/whisper-trt:latest \
compile-whisper-model.sh \
--model tiny --precision float16
Production Setup:
# Compile large-v3 for production use
docker run --gpus all -v $(pwd)/models:/models \
andspace/whisper-trt:latest \
compile-whisper-model.sh \
--model large-v3 --precision float16 \
--batch_size 8 --beam_width 4
| Component | Requirement |
|---|---|
| GPU | NVIDIA GPU with CUDA Compute Capability 8.0+ |
| Docker | Docker with NVIDIA Container Toolkit |
| Memory | 4GB+ GPU memory (varies by model) |
| Storage | 10GB+ free space for model compilation |
| Python | 3.9+ compatible |
| License | MIT License |
| Model Size | Compilation | Inference |
|---|---|---|
tiny | 2GB | 1GB |
small | 4GB | 2GB |
medium | 6GB | 3GB |
large-v2/v3 | 8GB+ | 4GB+ |
| Feature | Benefit | Implementation |
|---|---|---|
| TensorRT Engines | Maximum GPU utilization | Automated engine building |
| Mixed Precision | Optimal speed/accuracy balance | Configurable precision modes |
| Batched Inference | Throughput optimization | Configurable batch sizes |
| Model Caching | Fast recompilation | Persistent model cache |
| Smart Testing | Validation & benchmarking | Built-in test suite |
| Async Processing | Concurrent request handling | Janus framework integration |
Content type
Image
Digest
sha256:f0a2f0617โฆ
Size
16.3 GB
Last updated
about 1 year ago
docker pull andspace/whisper-trt