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

Catching poor LLM performance and accuracy before deployment

Benchmark regression detector for Red Hat AI Inference

September 17, 2026
Christopher Miyai
Related topics:
AI inferenceDeveloper tools
Related products:
Red Hat AI Inference

    vLLM is the leading open source inference and serving engine for LLMs. Averaging 64 commits a day with bi-weekly releases, the open source project goes through a significant amount of code changes rapidly. Red Hat AI Inference offers an integrated inference platform powered by vLLM, llm-d and vLLM's llm-compressor. It's the enterprise version of these open source capabilities rebuilt from source, and packaged for enterprise reliability and scale.

    Now imagine you've added support for a highly requested model on Red Hat AI Inference.

    The release day comes.

    Latency increases, throughput drops.

    And your customer is the first to notice.

    Yet the code has passed every test. Somehow between the upstream open source and the downstream production image, performance serving has drastically fallen off and there was no automated system to catch this.

    Most CI/CD pipelines tend to miss performance regressions until it's too late in production.

    Midstream: The bridge from upstream to downstream

    This is where the midstream team steps in.

    Every new upstream vLLM release goes through a multi-stage process before it becomes a production Red Hat AI Inference image.

    The team takes the upstream open source project and applies cherry-picks that didn't make it into the upstream release before packaging it all into container images for specific hardware (NVIDIA CUDA, AMD ROCm, Google TPU, and so on).

    Model performance can be dependent on different base images. Every different dependency, base OS, and hardware variant can cause silent performance degradation.

    To catch this, it's important to incorporate testing directly into the development process. During my 12 week internship with Red Hat AI Inference, I had the opportunity to build and integrate this regression testing into production automation.

    The benchmark regression detector

    The goal with my project is to compare the upstream to our midstream build through benchmarks and catch regression within CI/CD before release.

    The process is simple: Benchmark both upstream and the midstream releases of models on the list of hardware, then compare them. If there's a regression, we work to find the specific issue and then rebuild and test again (figure 1).

    The classic CI/CD lifecycle, with Testing feeding back into Coding.
    Figure 1: The classic CI/CD lifecycle, with testing feeding back into coding.

    There are 2 main areas we care about when benchmarking and evaluating LLMs: Performance and accuracy.

    • Performance: Measures how fast our customers can serve LLMs. Important metrics include time to first token, throughput, and intertoken latency.
    • Accuracy: Are LLM responses as expected? Specifically, we measure how high we can score on specific tasks, such as math tests like GSM8K or AIME (the full suite of evaluation is, of course, open source).

    For the detector specifically, we benchmarked using GuideLLM (part of the vLLM project) across various concurrency levels for performance and tasked GSM8K on models for accuracy.

    Our workflow

    First, a nightly upstream scanner checks for new upstream vLLM releases, and then benchmarks the models across different hardware. The results are stored on cloud storage, which will later be used to compare for regressions.

    After the midstream team finishes their changes for the Red Hat AI Inference release, they run their build and benchmarks for the release candidate. Following the benchmarks, the workflow compares the midstream benchmarks to the stored upstream results (figure 2).

    The comparison workflow looks at the midstream benchmarks and the stored upstream results.
    Figure 2: The comparison workflow looks at the midstream benchmarks and the stored upstream results.

    When comparing the models, we set a threshold delta (the maximum difference) that the benchmark scores must fall within. If the performance isn't within that threshold, then flag it (figure 3).

    An example regression of GPT-OSS-120B on NVIDIA H100, revealing a regression caused by an update to Triton Kernels.
    Figure 3: An example regression of GPT-OSS-120B on NVIDIA H100, revealing a regression caused by an update to Triton Kernels.

    If it's a real regression, then we identify the issue and rebuild with the fix and run this process again until ready for release.

    Tools I used

    For diagnosing issues, I created an agent skill connected to the benchmark run and JIRA tickets of prior regressions (figure 4). The goal was to suggest fixes and the likelihood of a real regression.

    A report generated from a custom Claude skill with Opus 4.6.
    Figure 4: A report generated from a custom Claude skill with Opus 4.6.

    While trying to automate this triage, I found that having a set threshold like 5% could flag a lot of false positives, especially for point statistics like the median or mean. With limited requests (because testing needs to be quick for releases), I implemented a new test (figure 5) to compare the holistic shift of a request distribution (Wasserstein distance).

    Instead of observing whether the median got worse, I check whether the entire distribution of response shifts. That's what the Wasserstein distance measures. It quantifies how much "work" it would take to reshape one distribution into another.

    Wasserstein here is a small difference, avoiding a false positive.
    Figure 5: Wasserstein in this example is a small difference, avoiding a false positive.

    A small Wasserstein distance means the overall performance profile is essentially the same, even if individual percentiles fluctuate. A large distance means something fundamentally changed in how the server is handling requests

    Note that this is not replacing point statistics, but rather acting as a secondary check to verify that a real regression actually exists.

    Conclusion

    More code changes means more reviews, forcing CI/CD to be quick, while also maintaining precision in testing. With the rise of coding agents, novel AI research, and growing consumer demands for models, we're making progress exponentially faster in development than we were just a year ago. I'm excited to see how the development process continues to evolve as we see more open source models released.

    If you have questions or want to discuss anything in further detail, connect with me at linkedin.com/in/christophermiyai.

    Related Posts

    • llm-d flow control: Priority queuing for shared GPU inference

    • Inference-time scaling on Red Hat AI: Improving model reliability

    • How speculative decoding delivers faster LLM inference

    • Bringing custom knowledge to agents with AutoRAG

    • From token consumer to token provider: Building your org's AI API

    • Optimize vLLM speculative decoding with FastMTP heads

    Recent Posts

    • From hours to minutes: Optimizing Red Hat Developer Hub performance testing with immutable LDAP images

    • Catching poor LLM performance and accuracy before deployment

    • Build a unified CI/CD control plane with Red Hat Developer Hub

    • Why your Kafka topic ignores retention.ms (and how to fix it)

    • Constraining AI agents with Red Hat AI: Containment, identity, and governance

    What’s up next?

    Learning Path Get started with vLLM feature share

    Get started with vLLM

    Learn how to compress, serve, and benchmark LLMs with vLLM.
    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
    Ask AI