Inference that keeps working between requests.
The stateful, high-throughput inference engine for LLMs.
Get Started
in Seconds
Run the server
One Docker command, pointed at your model.
Query the API
The OpenAI and Anthropic endpoints you already use.
Scale up with Pro
More GPUs, more machines and the NVIDIA Dynamo worker, with a Pro license key. See pricing.
docker run --gpus all -p 8080:8080 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ layerscale/layerscale:latest \ serve 0.0.0.0:8080 --model nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4
curl http://127.0.0.1:8080/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"messages": [{"role": "user", "content": "What is a KV cache?"}], "max_tokens": 128}'
Every feature runs on one GPU, with any number of sessions.
Built for Agents,
Turn After Turn
LayerScale Sessions aren't prefix caching. vLLM and SGLang only check their cache when a request shows up, and do nothing in between.
LayerScale keeps the context on the GPU and keeps working on it between requests, so each turn only pays for what's new. With Flash Queries, new answers are pushed to you as soon as your data changes them. No other engine does that.
On every turn
The context is read once and kept on the GPU. A turn picks up where the last one ended and only reads the new tokens.
vLLM and SGLangEach turn is a new request. It gets matched against a cache, and whatever the cache dropped is read again.
When the GPU is busy
A live session never gets pushed out to make room. Three hours in, a coding session still starts where it left off.
vLLM and SGLangTheir cache is shared and best effort. Under load, a long context gets pushed out and read again in full.
Between turns
While you type in your coding agent or editor, the engine is already reading your prompt. It checks whether the agent is looping or stuck and keeps a summary up to date.
vLLM and SGLangNothing happens until the next request.
On the way to the GPU
We wrote the server and scheduler from scratch, along with our GPU kernels. It all compiles into one program, with no framework in between.
vLLM and SGLangPython and PyTorch sit between the request and the GPU, along with several other libraries.
Works with the agent you already use
Claude Code, Codex, opencode and the rest speak the OpenAI or Anthropic API. Point their base URL at your server and they run on LayerScale. See how it works →
- opencode
- Cursor
- GitHub Copilot
- OpenAI Agents SDK
- Vercel AI SDK
- Codex
- Claude Code
- Gemini CLI
Bring Your Own Model
and Your Own GPUs
LayerScale is built for the latest generation of open-weight models: today's leading language, multimodal and video models, and the ones that come next. It is engineered for NVIDIA's newest architectures, Blackwell and Vera Rubin.
Made for Blackwell
and Vera Rubin
We wrote our kernels for NVIDIA Blackwell and Vera Rubin, the GPUs that run AI in production. Hopper cards like the H100 and H200 run them too. The same image takes you from one server to a rack, and on to a fleet.
- Kernels for each generation. Hopper and Blackwell each get kernels of our own. They handle FP8 on H100 and H200, and NVFP4 weights and KV cache on B200, B300, GB200 and GB300.
- One model across a server. Tensor parallelism splits a model over every GPU in the box. The GPUs talk to each other over NVLink.
- One model across machines. Tensor parallelism reaches past one machine: the trays of a GB200 or GB300 NVL72 rack, or servers joined by InfiniBand, RoCE or Ethernet. Each machine runs one server process, they exchange through NCCL, and the first one serves the API.
- Prefill and decode apart. Disaggregated serving reads prompts on one set of workers and generates tokens on another. Each set scales on its own, so a long prompt never stalls anyone else's reply.
- A fleet behind one endpoint. Add workers behind NVIDIA Dynamo's KV-aware router and deploy them on Kubernetes with the Dynamo operator. The router sends each request to the worker most likely to have its prompt cached already.