NeuralRoute AMD: Smart Agentic Model Router & Token Optimizer on AMD ROCm™ & Instinct MI300X

Hi AMD Developer Community,

I’m excited to share NeuralRoute AMD, an intelligent agentic model router and token optimizer designed specifically for high-throughput inference on AMD ROCm™ v6.2 and AMD Instinct™ MI300X GPUs (developed as part of the Lablab x AMD AI Academy Challenge).

:light_bulb: The Problem

In enterprise agentic workflows, routing every simple query (e.g., greetings, small extractions, basic formatting) to expensive frontier models drains GPU budgets rapidly. Conversely, sending complex multi-step reasoning to tiny models results in hallucination and failures.

:high_voltage: The Solution: Decoupled Two-Tier Architecture

NeuralRoute AMD acts as a high-performance, cost-aware inference gateway:

  • Tier 1: Smart Router Gateway (CPU Microservice): Ultra-lightweight semantic classifier with < 1.0 ms routing latency that evaluates intent, token count, and domain complexity.
  • Tier 2: AMD ROCm Inference Backend (Instinct MI300X): Dynamically offloads targeted workloads to local ROCm 6.2 engines powered by vLLM PagedAttention v2 for maximum throughput and zero external API egress.
  • Cost Optimization: Achieves up to 70%+ reduction in inference latency and cloud API costs by intelligently directing mundane tasks to local AMD ROCm instances.

:hammer_and_wrench: Hardware & Tech Stack

  • Hardware: AMD Instinct™ MI300X (192GB HBM3, 5.3 TB/s memory bandwidth)
  • Software: AMD ROCm™ v6.2.1, PyTorch ROCm, vLLM, Docker, Next.js & TypeScript
  • Container Image: ghcr.io/sahariarhossain524-sketch/neuralroute-amd:latest

:magnifying_glass_tilted_left: Try it & Feedback

The container is open-source and built for reproducible deployment. I would love to hear feedback and insights from AMD engineers and fellow builders on scaling vLLM workloads across ROCm!

Looking forward to your thoughts!

Hey, congrats on building NeuralRoute AMD! Splitting a lightweight CPU router from the MI300X inference backend makes sense for testing different routing policies without changing the model server.

The first thing I’d like to see is a reproducible evaluation behind the 70%+ figure. The README describes the 78.2% savings as a calculation from an assumed mix of 80% routine and 20% complex queries at list prices, so a measured run would make the claim much stronger. Which baseline does it compare against: every request sent to one frontier API, or every request served by a locally hosted model? Those have very different cost and latency profiles. I’d report router overhead separately from end-to-end time to first token and total response time, then show cost per successful request and task quality across easy and difficult prompts. A router that saves tokens but sends complex tasks to a model that fails them may not save money overall.

One point also needs clarifying. This post says “zero external API egress,” but the Lablab description and the README’s architecture diagram both route high-complexity requests to frontier cloud models. Is a local-only mode available, or is cloud fallback part of the standard path? For enterprise users, I’d make that policy explicit, including whether any prompts or metadata leave their infrastructure: AI app: NeuralRoute AMD: Smart Model Router on ROCm 6.2 for Lablab x AMD AI Academy Challe

On the MI300X side, the README’s 154 tok/s figure is cited from AMD’s ROCm 6.2 vLLM performance report rather than measured on this deployment. I’d publish your own run with the exact model, precision, prompt and output lengths, concurrency, vLLM version and ROCm image, alongside throughput and p50 and p95 latency. Running the same workload with routing on and off would isolate what NeuralRoute adds beyond vLLM itself. vLLM’s official container images, including its ROCm builds, would make a reproducible baseline: Using Docker - vLLM

Finally, the public repository would be worth linking in this post, along with a pinned container tag or digest: GitHub - sahariarhossain524-sketch/neuralroute-amd: NeuralRoute AMD: Smart Agentic Model Router & Token Optimizer on AMD ROCm 6.2 for Lablab x AMD Challenge 2026 · GitHub The README and Docker commands only reference :latest, which makes it hard for reviewers to reproduce a specific build or tell which version produced the dashboard’s figures. The README also notes that standalone mode shows modeled MI300X telemetry rather than live metrics, so labeling measured and modeled values in the dashboard would help. For ideas on evaluating router quality against fixed-model baselines, LLMRouter’s benchmark pipeline is worth a look: GitHub - ulab-uiuc/LLMRouter: LLMRouter: An Open-Source Library for LLM Routing · GitHub

Hi Hakob,

Thank you so much for the review and the invaluable insight!

You are completely spot on regarding reproducibility. Relying solely on :latest can introduce silent regressions like the speculative decoding drop you referenced. I will immediately pin explicit versioned tags (e.g., :v1.0.0 along with the immutable SHA256 digest) alongside :latest.

Also, great point on the base image. I will rebase the container off the official vllm/vllm-openai-rocm image to leverage the latest ROCm optimizations and upstream runtime enhancements.

Really appreciate you taking the time to share this feedback!

1 Like