Self-hosting Llama 4 Scout on vLLM: what the setup decides
A team that has chosen Llama 4 Scout for self-hosting on vLLM has to settle three things before buying hardware: the checkpoint precision, the tensor parallel size, and the serving layout around it. The vLLM recipe for Llama 4 Scout points to a maximum-throughput setting of TP 1 for FP4 and TP 2 for FP8, using nvidia/Llama-4-Scout-17B-16E-Instruct-FP8 on Blackwell or Hopper, with the KV cache defaulting to FP8. Treat that as a starting point to validate against your own prompts, context lengths and concurrency, not as a sizing answer. vLLM is licensed under Apache-2.0 and has no paid edition, so the license does not set your cost. The cost comes from the accelerators you rent or buy, the surrounding infrastructure, and the people who install, patch and operate the stack.
The precision and TP choice moves those costs directly. An FP4 layout at TP 1 concentrates the model on one accelerator, which lowers the number of GPUs a replica occupies but depends on the Blackwell generation that the recipe names. An FP8 layout at TP 2 spreads weights and KV cache across two GPUs on Blackwell or Hopper, which uses more capacity per replica but may fit your hardware more readily. Confirm which accelerator generations you can actually procure or already operate, and ask the recipe maintainers or your own benchmarks which combination meets your throughput target. Check that the FP8 KV cache default is acceptable for your accuracy requirements, since changing it alters the memory budget that determines how many concurrent requests fit.
Context length is the setting most likely to be changed after launch, so decide it early. The maximum context you enable reserves KV cache memory and reduces the batch size the replica can hold. Ask your application owners for their real prompt and output length distribution, and plan a test at the longest context you intend to allow. The decisions are hardware generation, checkpoint precision, TP size, context ceiling and KV cache format, and each one should be recorded with the benchmark that supports it so that a later upgrade or model change can be reviewed against the same evidence.
Which checkpoint, tensor parallel size and context setting fits each goal
This table compares the Llama 4 Scout checkpoint, tensor parallel size and context options by goal. Rows marked as recipe-sourced come from the vLLM Llama 4 Scout recipe, while rows marked for confirmation need checking against the vLLM version you deploy, because the recipe and flags change across releases.
| Goal | Recommended setting | Source and what to confirm |
|---|---|---|
| Maximum throughput on FP8 | nvidia/Llama-4-Scout-17B-16E-Instruct-FP8 with TP 2 on Blackwell or Hopper | Recipe: TP 2 is the maximum-throughput setting for FP8. Confirm the checkpoint name and GPU support in your vLLM version. |
| Maximum throughput on FP4 | FP4 checkpoint with TP 1 on Blackwell | Recipe: TP 1 is the maximum-throughput setting for FP4. Confirm the FP4 checkpoint name and Blackwell kernel support for your release. |
| Smallest GPU footprint | FP4 with TP 1 where the checkpoint fits your card memory | Derived from the FP4 recipe setting. Confirm memory headroom for your target context length before buying hardware. |
| KV cache precision | FP8 KV cache, the recipe default | Recipe: the KV cache defaults to FP8. Confirm the default and any override flag in the release you run. |
| Longer context | Raise the maximum model length only after measuring KV cache memory | Not in the researched recipe facts. Confirm the context flag, supported maximum and memory cost with a load test on your hardware. |
| Blackwell-only compilation options | Enable only on Blackwell GPUs and only after confirming the option | Not in the researched recipe facts. Confirm which compilation options apply to Blackwell in your vLLM version and test them against the FP8 baseline. |
How vLLM splits Llama 4 Scout across GPUs
Tensor parallelism within a node is the layout this recipe depends on. vLLM spreads a model across GPUs with tensor parallelism inside a node and pipeline parallelism across nodes. For Llama 4 Scout, the recipe's maximum-throughput setting uses TP 1 with the FP4 checkpoint and TP 2 with the FP8 checkpoint, both on Blackwell or Hopper hardware. Choosing TP 1 or TP 2 is the main infrastructure decision in this section: it sets how many accelerators one model replica occupies and therefore how many replicas a given GPU budget can run. Confirm the per-GPU memory and interconnect of the hardware you plan to buy, because the recipe settings assume that class of accelerator.
A single-node layout avoids the multi-node security and networking work. vLLM's security documentation states that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption, so it must be protected by an isolated network. Keeping the model on one node, with TP 1 or TP 2, removes that inter-node traffic from the design. Your team then reviews one host, one private network and one set of GPU drivers instead of a Ray or multiprocessing cluster. Multi-node serving is a separate planning exercise and should only be added when a single node cannot meet the required throughput or context.
Applications will call the OpenAI-compatible endpoints. The vllm serve process exposes /v1/chat/completions, /v1/completions and /v1/responses, so existing OpenAI API clients can point at the server by changing the base URL. Chat requests need a chat template, which the model supplies or which you provide with --chat-template, so confirm this with the checkpoint's documentation before go-live. Because --api-key does not cover every operational path, place a reverse proxy in front that allowlists only the endpoints users should reach.
How requests reach the Llama 4 Scout server
A request starts at a client outside the cluster and passes a reverse proxy that allowlists only the endpoints meant for users. The proxy forwards accepted calls to the vLLM API server, which splits the work across tensor-parallel GPUs inside the serving node. Metrics take a separate path: a Prometheus scraper reads /metrics directly from the server, so that endpoint never needs to be exposed to users. Check that the allowlist excludes /metrics, /health and the other control endpoints, and that the scrape path stays on the internal network.
Client traffic passes an allowlist proxy, while metrics are scraped on a separate internal path.
Setting up Llama 4 Scout on vLLM step by step
This sequence takes a team from an unprepared GPU host to a running, access-controlled Llama 4 Scout endpoint that they have verified through the chat completions API and the metrics endpoint. Each step ends with a check so that the next step only starts once the previous one is confirmed.
Confirm the GPU generation and driver stack
The infrastructure or platform engineer records the GPU model, count, driver version and CUDA runtime on each host, then compares them with the vLLM Llama 4 Scout recipe, which names Blackwell or Hopper for the FP8 and FP4 layouts. Confirm the exact driver and CUDA combination with the vLLM installation documentation and the NVIDIA release notes for your hardware. The step is done when every target host reports the expected GPU generation and the GPUs are visible to the driver from inside the container or virtual machine that will run vLLM.
Pick the checkpoint and tensor parallel size
The team chooses between the FP8 and FP4 checkpoints and sets the tensor parallel size from the recipe. For maximum throughput, the recipe uses TP 1 for FP4 and TP 2 for FP8, with the FP8 checkpoint nvidia/Llama-4-Scout-17B-16E-Instruct-FP8 on Blackwell or Hopper. Record the chosen checkpoint, precision, TP size and the KV cache setting, which the recipe defaults to FP8. The step is done when the decision and its source recipe section are written down and the checkpoint is downloadable from the model storage location the team has approved.
Install a pinned vLLM release
The platform engineer installs one specific vLLM release rather than the latest build, so that the flags and behavior in the recipe match what runs in production. Release notes for each minor version list changes, and minor releases ship about every two weeks, so pinning avoids drift between test and production hosts. Confirm that the recipe's version assumptions still hold for the release you pin. The step is done when
vllm --versionon the target host returns the pinned version and the image or wheel hash is recorded in the change record.Start the server with the chosen flags
The engineer runs
vllm servewith the checkpoint, tensor parallel size, KV cache data type, maximum context length and any Blackwell-only compilation options the recipe specifies, and binds the server to an internal interface only. Start with the context length the workload needs rather than the model maximum, because the KV cache is sized from it. The step is done when the server log shows the model loaded on all expected GPUs, with no out-of-memory or NCCL errors, and the process is listening on the internal address.Set an API key and a chat template
The engineer sets
--api-keyso that the /v1 endpoints require a bearer token, and sets a chat template with--chat-templateif the checkpoint does not supply one that the chat completions API can use. The vLLM security documentation says the key does not protect every endpoint, so a reverse proxy must still allowlist only the user-facing paths. Confirm the template with the model card and the recipe. The step is done when a request without the key is rejected and a request with the key reaches the model.Verify the chat completions endpoint
The engineer sends a test request to /v1/chat/completions with the API key, using a short prompt and a fixed maximum token count. The platform team checks that the response is well formed, that the model name matches the checkpoint, and that the reply is coherent for the prompt. Repeat the check with a prompt near the chosen context length to confirm the server accepts it. The step is done when both requests return HTTP 200 responses with a complete message and the server log shows no errors for either request.
Verify metrics and endpoint exposure
The engineer scrapes /metrics from the API server with a Prometheus instance or a manual request and confirms that request counts, token throughput, latency histograms and KV cache usage are present after the test traffic. The security team confirms through the reverse proxy that /metrics, /health and the other administrative paths are not reachable from user networks, because the --api-key option does not cover them. The step is done when the metrics appear in the scrape, the expected series are populated, and an external request to the administrative paths is blocked.
Securing the Llama 4 Scout endpoint
The Llama 4 Scout server exposes more than user-facing inference routes, and some of its operational endpoints are not covered by the API key. The cards below cover what to close at the proxy, what to isolate at the network layer, and what to check on hosts that have no internet access.
Api-key scope is partial
The --api-key option protects the /v1, /v2, /inference and /cohere route families, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. The vLLM security docs warn against relying on the key alone. Before go-live, list every route the server answers and confirm which ones the key actually guards in the release you deploy.
Allowlist at a reverse proxy
The docs recommend a reverse proxy that forwards only the endpoints meant for users, such as /v1/chat/completions and /v1/completions. Denying everything else at the proxy keeps pause, resume, abort and metrics calls off the path that application clients use. Test the allowlist with requests to each excluded route from outside the cluster, and confirm the proxy does not rewrite paths in a way that reopens them.
Metrics and health stay internal
The /metrics endpoint publishes request counts, token throughput, latency histograms and KV cache use. That is useful to operators and sensitive to outsiders. Scrape it from the monitoring network only, and keep /health reachable for load balancers and probes without exposing it on the public listener.
Isolate multi-node traffic
If the Llama 4 Scout layout spans more than one node, the vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption. Place the nodes on an isolated network segment that only the serving hosts can reach, and confirm the Ray or multiprocessing traffic never crosses the user-facing network. A single-node FP8 or FP4 layout avoids this exposure entirely.
Parallelism and scaling docsAir-gapped host preparation
On hosts without internet access, the --enable-offline-docs option is available for air-gapped environments. Models also need a chat template for the chat completions API, so supply one with --chat-template when the checkpoint does not include it. Stage the checkpoint, tokenizer and template files inside the boundary before the first start, and check that the server runs with no outbound calls.
Verify the exposure after changes
Each change to the proxy, service mesh, ingress or container port mapping can reopen a route. Keep a short test list that requests each excluded endpoint from an untrusted network and records the response. Repeat the list after every vLLM upgrade, because the set of routes and their handling can change between releases. Ask the team that operates the platform to own this check.
Operating the server after go-live
Platform engineers own the running server. vLLM exposes Prometheus-format metrics at /metrics on its API server, so the first operational step is to scrape that endpoint into the monitoring stack your organization already runs and to define what healthy looks like before users arrive. The metrics cover request counts, token throughput, latency histograms and KV cache use, which together show whether the server is queueing work, generating tokens at the expected rate and running short of cache memory.
- Request counts: Track successful, failed and in-flight requests so you can see error spikes separately from traffic growth.
- Token throughput: Watch prompt and generation tokens per second against the baseline you measured during acceptance testing, not against a number from a benchmark run on different hardware.
- Latency histograms: Use the configurable histogram buckets to place time-to-first-token and per-token latency in the ranges your applications need, and adjust buckets before you set alert thresholds.
- KV cache use: Alert on sustained high cache utilization, because it is the usual early sign that longer contexts or larger batches will start to queue requests.
- Endpoint access for scrapers: Because
/metricsis outside the--api-keyprotection, keep it on the internal network or behind your gateway rules, as the security guidance describes.
Before you close the acceptance phase, confirm which metric names and bucket settings your installed vLLM version emits, and record the alert thresholds in your runbook.
Release owners decide when the vLLM version and the Llama 4 Scout recipe settings change. vLLM ships new minor releases about every two weeks, and the dated sequence in the project's release history includes v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026. A pinned version that worked at go-live will fall behind within weeks, so the release owner needs a standing decision about how far behind the server is allowed to run and who approves each change.
- Pin the version: Deploy a specific vLLM version and container image tag, never a floating tag, so that every restart runs the same engine.
- Review each release: Read the release notes for changes to flags, default KV cache behavior, quantization kernels and model support before scheduling an upgrade.
- Retest the recipe: Rerun your acceptance suite, including throughput, context length at the settings you use and tool or chat template behavior, on a staging server with the same GPUs as production.
- Keep a rollback path: Retain the previous image and the previous flag set so you can return to a known state within your change window.
- Schedule the cadence: Agree on a rhythm, for example evaluating each release and upgrading after testing, and record the decision for auditors.
Before each upgrade, confirm the release tag, the recipe revision you tested against and the sign-off owner in the change record.
Application owners consume the OpenAI-compatible endpoints that vLLM exposes, including /v1/chat/completions and /v1/completions, and they feel changes first when latency, output format or context limits shift. Their role after go-live is to report behavior changes to the platform team with enough detail to reproduce them, and to confirm that their prompts still work after each approved upgrade.
- Endpoint contracts: Document which endpoints each application calls, so a release that changes a path or default is caught before it reaches users.
- Context and output limits: Record the maximum prompt length and output length each application sends, since these are the settings most likely to exceed what the server accepts after a configuration change.
- Regression prompts: Keep a small set of representative prompts with expected outputs and run them after every staging retest.
- Incident reporting: Give the platform team request identifiers, timestamps and payload shapes, not screenshots of errors alone.
- Client libraries: Pin the OpenAI-compatible client library versions your applications use, so that a client change is not mistaken for a server regression.
Before go-live, confirm with the platform team which endpoints are exposed to your applications and who approves changes to them.
Limits to confirm before you buy hardware
Llama 4 Scout looks simple on paper, but the recipe's settings assume specific GPU generations, memory and software behavior. The cards below cover the checks that decide whether the layout you price will run the way you expect. Confirm each one against your own hardware and traffic before committing budget.
FP4 path on your Blackwell generation
The recipe's maximum-throughput FP4 setting targets Blackwell hardware, while the FP8 checkpoint is listed for Blackwell or Hopper. Confirm which GPU generation your purchase order names, the driver and CUDA stack that generation requires, and whether the FP4 kernels your vLLM version uses are supported on it. Do not assume an FP4 layout carries over from a Hopper plan. Ask the vendor for the exact GPU model and memory per card.
Llama 4 Scout recipeReachable context length at your memory
The context window a model advertises is not the window your GPUs can serve. Weights, activations and the KV cache share the same memory, and the recipe's FP8 KV cache default reduces cache size but does not remove the limit. Set the maximum context length you need, then check it against the memory left after weights on each card. Test the longest prompt your users send, not only a short benchmark prompt.
Chat template availability for the checkpoint
The chat completions API only works when the model provides a chat template or you supply one with the chat template option. Check that the checkpoint you pick includes a template, and confirm the template matches the instruction format your applications send. A missing or wrong template causes errors or poor answers that look like model quality problems. Record which template file your deployment uses so upgrades do not change it silently.
Serving API features your applications use
vLLM's OpenAI-compatible server exposes completions, chat completions, responses, embeddings and audio endpoints, but a model does not automatically support every feature behind those routes. List the features your applications need, such as tool calling, structured outputs, reasoning output or image input, and confirm each one for Llama 4 Scout on your vLLM version. Treat any feature you cannot confirm as a gap to test before launch.
vLLM online serving docsKubernetes deployment option choice
The vLLM documentation lists several Kubernetes options, including native manifests, Helm, the production-stack, KServe, KubeRay and others. Each one assumes a different team split for scheduling GPUs, scaling replicas and rolling out new images. Pick the option your platform team can operate and recover, then confirm it handles the multi-GPU layout you chose. Ask who owns the cluster GPU operator and node pool configuration.
vLLM Kubernetes docsBenchmarking against your own traffic
The recipe's throughput setting reflects its own benchmark method, which uses prompt and output lengths, concurrency and request mix that may not match yours. Replay a sample of your real prompts, output lengths and concurrency levels against each candidate layout, and record time to first token, token throughput and KV cache use. Use the vLLM metrics endpoint to capture these values. Choose the layout from your measurements, not from the recipe's headline setting.
vLLM metrics docsQuestions buyers ask about Llama 4 Scout on vLLM
Does vLLM itself cost money to run?
No. vLLM is open-source under the Apache-2.0 license and has no paid edition, so the software itself carries no license fee. The cost of running it comes from GPU or other accelerator capacity, the surrounding infrastructure such as storage, networking and identity, the implementation work, and the people who operate the service afterward. For Llama 4 Scout, the largest line item is usually accelerator capacity, and its size depends on whether you choose the FP8 checkpoint at TP 2 or the FP4 checkpoint at TP 1, as described in the vLLM recipe. Ask any quote to separate one-time implementation costs from recurring capacity and operations costs.
What drives GPU cost for a Llama 4 Scout deployment?
Four factors drive it most. The first is the checkpoint precision: the recipe's maximum-throughput setting uses TP 1 for FP4 and TP 2 for FP8, on Blackwell or Hopper hardware. The second is the context length you configure, because longer contexts consume more KV cache memory and can reduce how many concurrent requests a GPU serves. The third is the traffic pattern, since steady high throughput and bursty low-volume use lead to very different capacity choices. The fourth is whether you run in one region or need redundant nodes for availability. Ask your provider to show the GPU count, the precision, the context limit and the expected concurrency behind each line of the quote.
How long does a single-node Llama 4 Scout setup take?
The duration depends on your team's experience with GPU drivers, container runtimes and vLLM, on how quickly your cloud or data center provides accelerator nodes, and on how much of the identity, logging and network work already exists. A team that has run GPU workloads before will move faster than one building that foundation at the same time. Environment readiness is often the longest wait, not the vLLM install itself. Because no timeline figure is supplied for this topic, ask any provider to break the schedule into environment preparation, model deployment, integration testing and handover, and to name the dependencies that could delay each step.
What does the work need from our side?
You need to supply four things before work starts. First, the GPUs: Blackwell or Hopper accelerators in a cloud account, data center or air-gapped network that you control, with enough memory for the chosen checkpoint and context length. Second, network design: the vLLM security documentation states that communication between nodes in a multi-node deployment is insecure by default, so multi-node layouts must sit on an isolated network, and user traffic should pass through a reverse proxy. Third, identity: an owner for SSO or API key handling, since the --api-key option does not protect every endpoint. Fourth, logging and metrics owners who will receive the Prometheus metrics exposed at /metrics and decide retention.
Can our internal team deploy Llama 4 Scout on vLLM alone?
A capable internal platform or ML infrastructure team can deploy a single-node Llama 4 Scout server by following the vLLM recipe, provided it has GPU operations experience and time to test. The harder parts tend to be the surrounding work: restricting endpoints so only user-facing routes are reachable, isolating nodes if you move to multi-node serving, wiring metrics and logs into your monitoring, and documenting the configuration for your security and compliance reviewers. Decide early who owns patching when vLLM releases arrive about every two weeks, and whether your team has capacity to test each release before it reaches production.
What does a fixed-scope DeployOpen engagement cover for this model?
A DeployOpen engagement is normally fixed-scope, meaning the scope, deliverables and timeline are agreed in writing before work starts. For a Llama 4 Scout deployment, the scope would typically cover the environment review, the choice between the FP8 and FP4 checkpoints for your hardware, the vLLM server configuration including context length and parallelism settings, endpoint exposure and reverse proxy design, identity and API access, metrics and logging integration, and handover documentation. Ongoing support, upgrades and continuous testing are available as retainers. Ask for the exclusions in writing, including who provides the GPUs and who signs off the final configuration.
Which parts of the deployment should we review for security before go-live?
Start with exposure. The vLLM --api-key option protects endpoints under /v1, /v2, /inference and /cohere, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health, and the vLLM security documentation warns against relying on it alone. The documented recommendation is a reverse proxy that allowlists only the endpoints meant for users. Then review node isolation for any multi-node run, the access path to the /metrics endpoint, and how logs record prompts and responses. Confirm each control against your own security standards and your environment rather than assuming the defaults are sufficient.
How DeployOpen scopes and delivers this work
DeployOpen plans, implements, hardens and documents self-hosted vLLM inside your own infrastructure, whether that is your cloud accounts, your data centers or an isolated network. The engagement starts with a written scope that names the hardware layout you have chosen (Blackwell or Hopper GPUs for the FP4 or FP8 checkpoint), the tensor parallel size, the context length, the API surface your applications call, and who on your side owns each decision. Deliverables, acceptance checks and timelines are agreed in that document before any work begins, and a quote follows from it. Nothing in this section is a fixed price, and the effort depends on how many of these choices are already made when the work starts.
Delivery covers the parts of this topic that tend to be left to the end: the server configuration for the Scout checkpoint, the reverse proxy that allowlists only the endpoints your users need, the --api-key setting used alongside that proxy, network isolation for any multi-node traffic, Prometheus scraping of /metrics, and runbooks for the upgrade path as new vLLM releases arrive. Each item is tested against the configuration you run in production, and the findings, fixes and operating notes are documented for your security, platform and compliance teams. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work, and your scope should say which evidence they will receive.
Vendor-specific behavior changes between vLLM releases, so the scope should also say how the deployment will be kept current. DeployOpen offers retainers for upgrades, continuous security testing and ongoing support once the initial build is accepted. Ask for a retainer scope that names the release channel you follow, the test set rerun after each upgrade, and who approves a change to the checkpoint, precision or parallelism settings. Confirm these details against the current vLLM recipe for Llama 4 Scout and your own hardware before signing, because the recipe itself may be revised.

