Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Speech-to-text with Whisper and Red Hat AI Inference Server

June 10, 2025
Philip Hayes
Related topics:
Artificial intelligence
Related products:
Red Hat AI

    This article introduces Red Hat AI Inference Server, recently announced at Red Hat Summit, and guides you through deploying a Whisper model on Red Hat AI Inference Server within a Red Hat Enterprise Linux (RHEL) environment.

    What is Red Hat AI Inference Server?

    Red Hat AI Inference Server is designed to optimize the serving and inferencing of large language models (LLMs). Red Hat AI Inference Server focuses on boosting LLM performance while reducing associated costs. It provides enterprise-grade stability and security while being built on open source software, particularly the upstream vLLM project.

    Red Hat AI Inference Server integrates innovative features like continuous batching, which processes requests as they arrive, and tensor parallelism, which distributes LLM workloads across multiple GPUs. These features work together to reduce latency and increase throughput, improving overall performance. 

    A key cost-saving feature of Red Hat AI Inference Server is PagedAttention. This technology optimizes memory allocation for LLMs, similar to virtual memory in operating systems, resulting in significant memory savings and reduced costs.

    What is a Whisper model?

    Whisper models are automatic speech recognition (ASR) systems developed by OpenAI. They are designed to convert spoken language into written text and are capable of handling multiple languages, accents, and noisy audio environments.

    Running Whisper on Red Hat AI Inference Server with RHEL 9 and Podman

    We're going to go through the steps to run OpenAI’s Whisper model using Red Hat AI Inference Server on a Red Hat Enterprise Linux 9 environment. This guide is tailored for NVIDIA GPU-enabled setups using Podman containers and is tested on an AWS EC2 instance. 

    Prerequisites

    Before we get started, ensure your environment meets these essential requirements:

    • NVIDIA drivers installed
    • NVIDIA Container Toolkit and Container Device Interface
    • Podman

    Tested environment

    This setup was tested in the following environment:

    • AWS EC2 Instance: A g6.6xlarge: 1× NVIDIA L4 GPU with 22 GB GPU memory running RHEL 9

    Pre-check

    Let's first verify the ability to access GPUs via Podman with this command:

    sudo podman run --rm --device nvidia.com/gpu=all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi

    If prompted, select the image from docker.io.

    The output should look similar to this, confirming your GPU setup is recognized:

    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 535.104.05    Driver Version: 535.104.05    CUDA Version: 12.2  |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  NVIDIA L4           On   | 00000000:00:1E.0 Off |                    0 |
    | N/A   35C    P8     9W /  72W |      0MiB / 22528MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
    
    +-----------------------------------------------------------------------------+
    | Processes:                                                                  |
    |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
    |        ID   ID                                                   Usage      |
    |=============================================================================|
    |  No running processes found                                                 |
    +-----------------------------------------------------------------------------+

    If you get an error message at this stage, you will need to check the installation of the NVIDIA drivers and the NVIDIA container toolkit.

    Running Red Hat AI Inference Server

    Now that we've validated we can access the GPUs via Podman, we can download and run the Red Hat AI Inference Server image from the Red Hat registry.

    Step 1: Login to the Red Hat registry

    First, get login credentials for the Red Hat registry by following the instructions on this page.

    Login to the Red Hat registry with your credentials:

    podman login registry.redhat.io

    Step 2: Pull the Red Hat AI Inference Server image

    Start by pulling the CUDA-enabled Red Hat AI Inference Server container image:

    podman pull registry.redhat.io/rhaiis/vllm-cuda-rhel9:3.0.0

    Step 3: Set Your Hugging Face Token

    To authenticate with Hugging Face and download the Whisper model, set your token in the environment.  Get your token from https://huggingface.co/settings/tokens.

    export HF_TOKEN=your_huggingface_token_here

    Step 4: Run the Red Hat AI Inference Server container

    Create a src folder on your local machine; this will be used to persist the model once it's downloaded from Hugging Face:

    mkdir -p src
    chmod a+rwX src

    Now, launch the Whisper inference service using the following Podman command:

    podman run --rm \
      --device nvidia.com/gpu=all \
      --ipc=host \
      -p 8000:8000 \
      --env "HUGGING_FACE_HUB_TOKEN=$HF_TOKEN" \
      --env "HF_HUB_OFFLINE=0" \
      -v ./src:/opt/app-root/src \
      --name=rhaiis \
      registry.redhat.io/rhaiis/vllm-cuda-rhel9:3.0.0 \
      --model openai/whisper-large-v3

    Once started, you should see log output confirming the API server is running.

    INFO 05-15 13:35:22 [api_server.py:1081] Starting vLLM API server on http://0.0.0.0:8000
    INFO 05-15 13:35:22 [launcher.py:26] Available routes are:
    INFO 05-15 13:35:22 [launcher.py:34] Route: /openapi.json, Methods: HEAD, GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /docs, Methods: HEAD, GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /docs/oauth2-redirect, Methods: HEAD, GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /redoc, Methods: HEAD, GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /health, Methods: GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /load, Methods: GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /ping, Methods: GET, POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /tokenize, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /detokenize, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/models, Methods: GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /version, Methods: GET
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/chat/completions, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/completions, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/embeddings, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /pooling, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /score, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/score, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/audio/transcriptions, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /rerank, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v1/rerank, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /v2/rerank, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /invocations, Methods: POST
    INFO 05-15 13:35:22 [launcher.py:34] Route: /metrics, Methods: GET
    INFO:     Started server process [1]
    INFO:     Waiting for application startup.
    INFO:     Application startup complete.

    Step 5: Set up and SSH tunnel to the RHEL VM

    To access the running API from your local machine, the simplest method is to use SSH port forwarding. From a second terminal session, run:

    ssh -i "rhaiis.pem" -L 8000:localhost:8000 username@server.hostname

    Step 6: Clone and run the sample UI application

    We've provided a sample Whisper UI application to test audio transcription. Start by cloning the repository on your local machine:

    git clone https://github.com/rh-aiservices-bu/vllm-whisper
    cd vllm-whisper

    Set up a virtual Python environment

    Ensure Python 3.8+ is installed. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate 

    Install dependencies

    Navigate to the ui directory and install packages:

    cd ui
    pip install -r requirements.txt

    Set Whisper API endpoint

    Configure the API endpoint:

    export WHISPER_URL=http://localhost:8000

    Run the Streamlit application

    Launch the UI with:

    streamlit run app.py

    Testing the transcription

    Once the application is running, you can interact with Whisper directly from your browser at http://localhost:8501/ as shown in Figure 1.

    whisper Transcription with RHAIIS demo app
    Figure 1: Whisper transcription with the Red Hat AI Inference Server demo app.

    When you click the Record Audio button, the application captures a 5-second audio clip using your microphone, sends it as a WAV file to the Whisper server, and displays the transcribed text in the UI.

    Conclusion

    Running Whisper on Red Hat AI Inference Server with RHEL 9 is extremely easy once you've set up the necessary GPU support and container environment. With Podman and the sample Streamlit UI application, you can quickly deploy and test powerful speech recognition capabilities on your own infrastructure.

    Last updated: June 11, 2025

    Related Posts

    • LLM Compressor is here: Faster inference with vLLM

    • How to integrate vLLM inference into your macOS and iOS apps

    • Distributed inference with vLLM

    • How we optimized vLLM for DeepSeek-R1

    • Llama 4 herd is here with Day 0 inference support in vLLM

    • vLLM V1: Accelerating multimodal inference for large language models

    Recent Posts

    • Protect data offloaded to GPU-accelerated environments with OpenShift sandboxed containers

    • Case study: Measuring energy efficiency on the x64 platform

    • How to prevent AI inference stack silent failures

    • Preventing GPU waste: A guide to JIT checkpointing with Kubeflow Trainer on OpenShift AI

    • How to manage TLS certificates used by OpenShift GitOps operator

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.