Inference that keeps working between requests.

The stateful, high-throughput inference engine for LLMs.

Accelerated by
API COMPATIBLE API COMPATIBLE API COMPATIBLE API COMPATIBLE API COMPATIBLE API COMPATIBLE API COMPATIBLE API COMPATIBLE

Get Started
in Seconds

  1. Get a free key

    Your name and email. The key arrives right here.

  2. Run the server

    One Docker command, pointed at your model.

  3. Query the API

    The OpenAI and Anthropic endpoints you already use.

Read the docs →

docker run --gpus all -p 8080:8080 \
  -e LAYERSCALE_LICENSE_KEY=LSK-... \
  -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

The free key covers one GPU, 1 live session and a 32K context. Pro lifts the limits.

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

Serve any open-weight transformer model, from Llama to Qwen. Run it on NVIDIA and AMD GPUs or on Apple silicon.

Open Models
Meta Llama 4
Google Gemma 4
OpenAI GPT OSS
Mistral AI Mistral 4
Qwen Qwen 4
Microsoft Phi-4
NVIDIA Nemotron 4
Z.AI GLM-5.3
Ricursive Intelligence Ripple
Hardware Platforms
NVIDIA CUDA H100, H200, GH200, B200, B300 and Vera Rubin, and other Hopper and Blackwell GPUs
AMD ROCm Coming soon Instinct MI300X, MI325X, MI350X, MI355X, MI450X and MI455X
Apple Metal Apple silicon, M5 and newer

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 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.
  • 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.