---
title: "Open-weight models are fast on Neon AI Gateway. Here's why"
description: "Neon AI Gateway serves open-weight models through Databricks Foundation Model APIs, so it gets that stack's inference optimizations: continuous batching with PagedAttention-style KV-cache paging and overlapped prefill/decode, a TensorRT-LLM backend with fused and GroupGEMM kernels for MoE, tensor parallelism, FP8 quantization, and per-GPU tuning."
url: "https://swe.quest/articles/open-weight-models-are-fast-on-neon-ai-gateway-here-s-why-a042a513966cd27f"
canonical: "https://neon.com/blog/open-weight-models-are-fast-on-neon-ai-gateway"
source: "Neon"
published: "2026-08-20"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 7
tags: ["inference","llms","performance","caching","ai-agents"]
---

# Open-weight models are fast on Neon AI Gateway. Here's why

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-08-20, 7 min read, Deep dive. Original: [https://neon.com/blog/open-weight-models-are-fast-on-neon-ai-gateway](https://neon.com/blog/open-weight-models-are-fast-on-neon-ai-gateway)

## Summary

Neon AI Gateway serves open-weight models through Databricks Foundation Model APIs, so it gets that stack's inference optimizations: continuous batching with PagedAttention-style KV-cache paging and overlapped prefill/decode, a TensorRT-LLM backend with fused and GroupGEMM kernels for MoE, tensor parallelism, FP8 quantization, and per-GPU tuning. Prompt caching matters most for agent loops that resend a stable system prompt and tool schema. On gpt-oss in a production batch pipeline it raised per-replica input-token throughput 2.5× and cut P50 latency 3× at a ~30% hit rate. FP8 on H100 gave about 2.2× throughput over FP16. To benefit, keep prompt prefixes stable and point an OpenAI-compatible SDK at the gateway.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- LLM inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- KV cache ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- GPU memory bandwidth ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Neon AI Gateway, Databricks Foundation Model APIs, TensorRT-LLM, PagedAttention, prompt caching, gpt-oss, Mixture-of-Experts, FP8

## Related posts

- [Mubit + Neon AI Gateway: an agent that cuts its own frontier-model tokens by 73%](https://swe.quest/articles/mubit-neon-ai-gateway-an-agent-that-cuts-its-own-frontier-model-tokens-by-73-358da1147275d399.md): Neon · 2026-11-12 · Medium · 10 min read · AI agents, LLMs, Cost optimization, Inference & serving, PostgreSQL
  Mubit, a proxy placed in front of Neon AI Gateway, records an agent's model calls, groups recurring calls into tasks, and fine-tunes a small open-weight model once a task has at least 25 good replies.
- [PipelineRL](https://swe.quest/articles/pipelinerl-a0c5543b6f9a965f.md): Hugging Face · 2025-04-25 · Hard · 7 min read · Model training, Inference & serving, LLMs, Open source
  PipelineRL resolves the tradeoff between inference throughput and on-policy data in LLM reinforcement learning by doing inflight weight updates: after each optimizer step, trainers broadcast new weights via NCCL to inference servers, which pause only long enough to receive them and then keep generating with existing KV caches.
- [Make your llama generation time fly with AWS Inferentia2](https://swe.quest/articles/make-your-llama-generation-time-fly-with-aws-inferentia2-bc8b5e1981a590c0.md): Hugging Face · 2023-11-07 · Medium · 7 min read · Inference & serving, LLMs, Hardware, Cloud platforms, Performance engineering
  optimum-neuron can now compile and export Llama 2 models for text generation on AWS Inferentia2, using static input shapes (batch size, 2048 sequence length that also bounds the KV cache) and a configurable core count and fp16 precision.
- [Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models](https://swe.quest/articles/accelerating-qwen3-8b-agent-on-intel-coretm-ultra-with-depth-pruned-draft-models-ea1317a126102827.md): Hugging Face · 2025-09-29 · Medium · 6 min read · Inference & serving, LLMs, AI agents, Performance engineering
  Speculative decoding with a Qwen3-0.6B draft model speeds up 4-bit Qwen3-8B on an Intel Lunar Lake integrated GPU by about 1.3× using OpenVINO.GenAI.
- [How Shopify turns open models into task experts](https://swe.quest/articles/how-shopify-turns-open-models-into-task-experts-a2ba67e222beb92b.md): Shopify Engineering · 2026-10-21 · Hard · 5 min read · Model training, Inference & serving, Evaluation, AI agents, Cost optimization
  Shopify's Sidekick keeps a frontier model for merchant conversation and planning but offloads token-heavy subagent work, such as GraphQL query generation, to open models it post-trains and self-hosts.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
