Self-hosting Kimi K2 on vLLM across two nodes

Kimi K2 with FP8 weights at 128k context starts at a 16-GPU, two-node cluster on vLLM. This page covers the parallelism choice, the build sequence and what to confirm before buying hardware.

On this page

Why self-hosting Kimi K2 on vLLM starts with a 16-GPU, two-node cluster

A team that wants Kimi K2 inside its own infrastructure should plan around a 16-GPU cluster spread across two nodes, because the vLLM Kimi-K2 recipe names that as the smallest unit for FP8 weights at 128k sequence length. Treat this as the floor for the recipe's configuration, not a generous margin. A single node with fewer accelerators does not match the layout the recipe describes, so any capacity request, budget or architecture review should start from two nodes and work outward from there. Confirm the GPU model, memory per device and interconnect with your hardware vendor before you commit, because the recipe's layout assumes a specific class of accelerator.

vLLM is an open-source inference and serving engine for large language models, licensed under Apache-2.0 and associated with the PyTorch Foundation. It has no paid edition, so the cost of running it is the accelerator capacity, the surrounding infrastructure, the implementation work and the people who operate the cluster. For Kimi K2, the accelerator line is usually the dominant cost, and it recurs for as long as the cluster runs. Ask any partner or vendor to separate one-time implementation effort from ongoing capacity, networking, storage, monitoring and on-call support, so the quote maps to the components you will actually pay for.

You need a two-node layout when the weights and the 128k context window do not fit on the accelerators in one machine, which is the situation the recipe addresses. The decision is not only about memory. Multi-node serving adds an inter-node network that vLLM's security documentation says is insecure by default, so the second node brings isolation, network design and failure handling work that a single node avoids. If your workload can run on a smaller model or a shorter context, a single node may be the better first step, and that choice should be made on measured requirements rather than on the cluster size alone.

TP plus PP over Ray versus DP plus EP with headless nodes

The recipe shows two 16-GPU layouts. The first is tensor parallelism of 8 combined with pipeline parallelism of 2. Tensor parallelism slices each layer's weight matrices across the eight GPUs in a node, so every GPU holds a shard of every layer and the GPUs must communicate on every forward pass. Pipeline parallelism then places the first half of the layers on one node and the second half on the other, so only activations move between nodes. The second layout is data parallelism of 16 with expert parallelism. Each GPU runs a full copy of the non-expert layers, and the mixture-of-experts layers are distributed so that different GPUs hold different experts. Tokens are routed to the GPUs that hold their selected experts. The trade-off is memory per GPU and the communication pattern, which should be checked against the layout the recipe currently documents.

  • Tensor plus pipeline: each layer is sharded inside a node, and only the stage boundary crosses the network.
  • Data plus expert: the attention and dense parts are replicated per GPU, and expert weights are spread across all 16 GPUs.
  • Communication pattern: tensor parallelism is chatty and needs fast links within the node, while expert routing sends tokens across nodes on every MoE layer.
  • Memory headroom: the two layouts leave different amounts of KV cache per GPU, which affects the maximum concurrency at 128k context.

Confirm the layout, parallel sizes and context length against the current recipe and the vLLM parallelism docs before fixing the cluster shape.

Which configuration options change the cluster design

This table lists the vLLM settings that decide how the two-node Kimi K2 cluster is laid out and how it is exposed. Read each row for when the option fits and what it changes in hardware, networking or day-two operations. Confirm exact values in the vLLM Kimi-K2 recipe before ordering capacity.

SettingWhen it fitsWhat it changes
Tensor and pipeline parallel sizes (TP 8, PP 2)FP8 weights at 128k context across two 8-GPU nodes, with Ray managing the workersTensor parallelism stays inside each node, so each node needs eight GPUs with fast local interconnect; pipeline stages cross the network between the two nodes
Data parallel and expert parallel (DP 16 with EP)Mixture-of-experts layout across 16 GPUs where expert routing is the main loadEach GPU holds a data-parallel replica of the attention layers and shares experts across ranks, which raises all-to-all traffic between nodes; confirm the flag set in the recipe
Multi-node backend (Ray)Two-node runs that follow the recipe's TP plus PP pathAdds a Ray head and worker processes on each node that must start and recover together; the node network must be stable for the life of the cluster
Headless worker nodesSecondary nodes in a data parallel layout that do not serve HTTP trafficOnly the primary node exposes the API, so load balancing and health checks target one entry point; confirm how the recipe starts worker nodes
Tool call parser (--tool-call-parser kimi_k2)Applications that need the model to emit tool calls through the chat APIRequired for tool calling; without it, tool calls are not parsed as expected, so test each application's tool flow after deployment
Sequence length target (128k)Long-context workloads that the FP8 16-GPU layout is sized forLonger maximum context increases KV cache memory per request, which lowers concurrency; set the limit to the real workload before sizing
Chat template (--chat-template)Models served without a built-in template or with a custom prompt formatChat completions fail if no template is available; keep the template file under change control with the model revision
API key (--api-key)Any deployment where clients reach the server over a networkProtects only /v1, /v2, /inference and /cohere; a reverse proxy must allowlist user endpoints and block the rest
Metrics endpoint (/metrics)Operations teams that scrape Prometheus metrics from every nodeNot covered by --api-key, so it must be restricted at the network or proxy layer; it exposes request, throughput, latency and KV cache data

How to bring up the two-node Kimi K2 cluster

This sequence takes two GPU nodes from bare hardware to a tested vLLM server running Kimi K2 with FP8 weights, tool calling enabled and metrics exposed. Each step ends with a check so the team knows it can move on.

  1. Confirm hardware and inter-node network

    The platform or infrastructure team checks that both nodes provide the 16-GPU total the recipe requires for FP8 at 128k context, with matching GPU models, drivers and CUDA versions on each node. Confirm that the two nodes sit on a dedicated, isolated network segment, because the vLLM security docs state that traffic between nodes in a multi-node deployment is insecure by default. Done when every GPU is visible on both nodes and the nodes can reach each other on the ports your chosen cluster backend needs.

  2. Install vLLM at a pinned release

    The engineer installs vLLM on both nodes at one specific release taken from the vLLM GitHub releases list, not the latest tag, and records the exact version in your configuration management. Use the same version and the same Python environment on each node so the engine behaves identically across the cluster. Done when vllm --version returns the same pinned version on both nodes and the import check runs without errors.

  3. Establish the Ray or headless topology

    Choose one topology before loading weights. For TP 8 with PP 2, start a Ray cluster with one head node and one worker node, and confirm that Ray reports 16 GPUs. For DP 16 with expert parallelism, start the head node with its API server and run the second node in headless mode so it joins the data parallel group without serving HTTP. Done when the cluster reports the expected GPU count and every node is listed as alive, with no unresolved node addresses.

  4. Load FP8 weights on both nodes

    Download the FP8 Kimi K2 checkpoint to storage that each node can read at the same path, or replicate it locally on each node, and verify checksums against the publisher's files. Weight loading across 16 GPUs takes time that depends on storage speed and network throughput, so confirm load behavior in your environment rather than relying on a fixed figure. Done when both nodes hold identical file hashes and the startup log shows each rank finishing weight loading without out-of-memory errors.

  5. Start the server with the tool parser

    From the head node, launch vllm serve with the parallelism settings that match your chosen topology, the context length the recipe specifies, and --tool-call-parser kimi_k2 so tool calls are parsed correctly. Add --chat-template only if the checkpoint lacks one, because the chat completions API requires a template. Done when the log reports the server listening on its port with all ranks ready, and the first request returns a completion.

  6. Verify OpenAI-compatible endpoints

    Send test requests to /v1/completions, /v1/chat/completions, /v1/responses and /v1/embeddings if your deployment uses them, through the same path your applications will use. Confirm that responses return valid JSON in the OpenAI shape and that the model name matches what clients will send. Done when each endpoint your applications need returns a 200 status with a well-formed body, and endpoints you do not intend to expose are blocked at the reverse proxy.

  7. Check metrics endpoint

    Query the /metrics endpoint from your monitoring host and confirm that Prometheus-format series for request counts, token throughput, latency histograms and KV cache use are present. Because /metrics is not protected by --api-key, restrict it to your monitoring network at the proxy or host firewall. Done when your Prometheus scrape job collects these series from the head node and the values change after test traffic.

  8. Verify tool calling with a test request

    Send a chat completion request that includes a simple tool definition, and confirm the response contains a structured tool call with valid arguments rather than raw tool syntax in the message text. Run the same test with a request that should not trigger a tool call to confirm the model answers normally. Done when both requests return the expected structure, and the team records the request, response and pinned vLLM version in the deployment record.

How the two nodes, the API server and the users connect

The diagram starts with users and applications sending requests to a reverse proxy that forwards only the endpoints meant for users. The proxy hands requests to the API server on the head node, which sends work to GPU workers on both nodes. The link between the nodes sits inside an isolated network, because vLLM documents inter-node traffic as insecure by default. Prometheus scrapes /metrics directly from the API server, not through the proxy. Check that the proxy blocks /metrics, /pause and /abort_requests, and that only the inter-node network reaches the worker ports.

Users reach only allowlisted endpoints, while nodes share an isolated link.

How the inter-node network and API exposure shape security

A two-node Kimi K2 deployment has two security surfaces: the traffic between the nodes and the HTTP endpoints users reach. The cards below cover how each one is protected, which vLLM endpoints the API key does not cover, and what the operations team must patch and manage on both machines.

Isolate inter-node traffic

Communication between the two nodes is insecure by default, with no authorization or encryption, according to the vLLM security docs. In a Ray-based TP 8 with PP 2 layout, the nodes exchange pipeline activations and control traffic continuously, so anyone who can reach the cluster port on either node can interact with the workers. Place both nodes on a dedicated network segment with no route from user or general corporate subnets, and verify the rules from a host outside that segment.

vLLM security docs

Know what --api-key leaves open

The --api-key option protects endpoints under /v1, /v2, /inference and /cohere. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. A user holding a valid key still cannot reach the control endpoints, but any caller who can reach the server directly can pause generation or abort requests on those unprotected paths. Confirm this list against the release you deploy, since endpoints change between versions.

Allowlist endpoints at a reverse proxy

The security docs advise against relying on the API key alone and recommend a reverse proxy that allowlists only the endpoints meant for users. For Kimi K2, that usually means passing the chat completions and completions paths and blocking everything else, including the control endpoints. Put the proxy in front of the public entry point only, and test the blocked paths from outside the network after each change, because a proxy that routes all paths straight through defeats the control.

Restrict Prometheus metrics access

vLLM serves Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. The metrics endpoint is not covered by the API key, so it must be scraped only from the monitoring network. Decide which team owns the scrape configuration, confirm the metrics do not expose prompt content for your workload, and make sure the proxy blocks /metrics for external callers.

vLLM metrics docs

Handle API keys and model weights

Store the API key and any registry or storage credentials in a secrets manager on the infrastructure you control, not in shell history, unit files or container images committed to source control. Keep the weight files on storage both nodes can read with the same checksums, and record which weights and vLLM version each node loaded. Ask your team which location holds the authoritative copy and who can change it.

Patch both nodes together

Ray and vLLM must run compatible versions on both nodes, and a security patch applied to one node but not the other can leave the cluster in a mixed state or break the tensor layout. Schedule patches for the full cluster in one window, restart both nodes, and confirm the health check and a test completion before reopening traffic. Check the vLLM release notes for each update, since vLLM ships new minor releases about every two weeks.

vLLM releases

What teams ask before outsourcing a Kimi K2 deployment on vLLM

What drives the cost of running Kimi K2 on vLLM?

The cost comes from four places, and vLLM itself is not one of them. vLLM has no paid edition, so the license adds nothing to the bill. The main cost is the accelerator capacity: the recipe's smallest FP8 layout at 128k context is a 16-GPU cluster across two nodes, and that capacity is paid for whether it runs in your data center or in a cloud account you control. Infrastructure around it (networking between nodes, storage for weights, monitoring, backups) adds recurring cost. Implementation is a one-time fee for planning, build and verification, and operators are an ongoing cost. Ask any partner for a quote that separates these four lines, states what is one-time and what recurs, and names which costs change if you pick a different parallelism layout.

How long does a Kimi K2 vLLM deployment take?

Duration depends on the scope you agree in writing and on how ready your environment already is. The largest variables are whether the 16 GPUs and both nodes are available and networked, whether the Ray or data parallel setup must be built from scratch, how many identity, gateway and logging integrations are in scope, and how much load testing you require before go-live. Ask for a schedule that lists each phase (environment checks, model download, cluster bring-up, tool calling validation, security review and handover) and the dependencies that could stall it. Engagements are typically fixed-scope, so the timeline should be part of the same written agreement as the deliverables.

What must our team provide before a Kimi K2 deployment starts?

Your team needs to provide the infrastructure and the decisions that only you can make. The checklist usually includes:

  • Access to the 16 GPUs across two nodes, with the driver and CUDA stack your hardware requires
  • A network path between the nodes that you have isolated, because vLLM's security documentation says inter-node traffic is insecure by default
  • Identity and access decisions, including which users or services reach the API and how the --api-key option and a reverse proxy will be combined
  • A data policy covering prompts, logs, metrics retention and where model weights are stored

Confirm each item with your security and platform leads before scoping, since gaps here usually become the largest source of change requests.

Can our in-house platform team deploy Kimi K2 on vLLM themselves?

A team that already runs multi-node GPU workloads and understands distributed inference can do it, but the work is more than starting a server. The team has to get the recipe's layout right, configure the multi-node backend, set the tool call parser for kimi_k2, put a proxy in front of the API, enable metrics, and prove the cluster behaves under load. Teams without recent GPU cluster experience usually underestimate the time spent on node networking and failure handling. Assess your staff against those tasks honestly, and consider an outside review of the design even if you build it internally.

How does the parallelism choice change the effort?

The recipe offers two layouts. Tensor parallel 8 with pipeline parallel 2 runs over Ray and spreads the model across both nodes with a familiar, single-engine setup. Data parallel 16 with expert parallelism runs headless nodes and is aimed at the mixture-of-experts structure of the model. The Ray path mainly adds effort in cluster lifecycle management and debugging across nodes. The data parallel path adds effort in coordinating headless nodes, routing and load balancing, and it needs closer checks of how requests are distributed. Ask for the layout decision to be recorded with the reasons, and for the test plan to cover the layout you choose.

What does ongoing operation of a Kimi K2 vLLM cluster involve?

Operations is recurring work that continues after go-live. It includes watching the Prometheus metrics exposed at /metrics for request counts, token throughput, latency and KV cache use, keeping the reverse proxy allowlist current, rotating keys, and patching the vLLM release you run. vLLM ships new minor releases about every two weeks, so the upgrade plan matters: each change should be tested against the same tool calling and throughput checks before it reaches users. Capacity planning, node failure response and backup of configuration are also ongoing. Ask any partner whether support is a fixed-scope handover or a retainer, and what response process covers the cluster.

Does vLLM support for Kimi K2 come with a vendor guarantee?

vLLM is open-source and community-supported, so no vendor contract guarantees the behavior of a given model on a given cluster. What you can ask for is a written scope, defined deliverables, verification evidence from your environment, and a retest after changes. Ask whether the work includes acceptance tests for tool calling and latency, how issues found after handover are handled, and which items fall outside the agreement. Be cautious of any proposal that promises uptime or performance without tying it to measured conditions you have approved.

How the scope of a Kimi K2 engagement is set

DeployOpen agrees scope, deliverables and timelines in writing before any work starts, and a quote follows from that written scope. For a Kimi K2 deployment, the scope is only as precise as the hardware and network facts behind it, so the scoping conversation starts with an inventory: the GPU model and count on each of the two nodes, the memory per GPU, the interconnect between nodes, the storage holding model weights, and whether the target is a cloud account, a data center or an air-gapped network. The recipe's two-node, 16-GPU floor for FP8 weights at 128k context is a starting point to test against the client's actual hardware, not a sizing answer. Systems are deployed inside the client's own infrastructure, so the scope also has to name who provisions the nodes and who holds the admin rights.

The parallelism choice is the decision that shapes most of the remaining work. The scope needs to state whether the team will run tensor parallel 8 with pipeline parallel 2 over Ray, or data parallel 16 with expert parallelism using headless nodes, because each path brings different networking, process management, health checks and failure behavior. The exposure model is the second decision: which endpoints reach users, whether the --api-key option is used alone or behind a reverse proxy that allowlists user-facing routes, and how the inter-node traffic is isolated, since vLLM's security documentation treats that traffic as unauthenticated and unencrypted by default. Monitoring is the third: the scope should name the Prometheus metrics endpoint, the dashboards and alert thresholds the client already uses, and the log retention the security team requires.

Ask the provider to list each of these items as a deliverable with an owner, including the acceptance test for the tool calling path that depends on --tool-call-parser kimi_k2. Confirm which vLLM release will be pinned, since the project ships minor releases about every two weeks, and agree how upgrades after handover are priced and scheduled. Any figure for effort or duration should come from that written scope, not from general estimates.

How DeployOpen delivers and supports vLLM deployments

DeployOpen plans, builds, documents and supports a two-node Kimi K2 deployment on vLLM inside your own cloud accounts, data centers or isolated networks. The work starts with a written scope that fixes the parallelism layout, endpoints, access controls and acceptance tests before any hardware is configured.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • We confirm the accelerator inventory, node count and interconnect against the 16-GPU, two-node minimum for FP8 at 128k context.
  • The scope records which parallelism layout you chose, TP 8 with PP 2 over Ray or DP 16 with expert parallelism, and why.
  • We agree which API endpoints users reach, and which operational endpoints stay on the isolated network.

How we build

  • We install the vLLM release you approve on both nodes and pin the version and container image for repeatable rebuilds.
  • We place the nodes on an isolated network, since vLLM's multi-node traffic is unauthenticated and unencrypted by default.
  • We configure the kimi_k2 tool call parser and test tool calling against the OpenAI-compatible endpoints your applications use.
  • We put a reverse proxy in front of the server that allowlists only user-facing endpoints, and we test that the rest are unreachable.

How we hand over

  • You receive the node layout, launch configuration, parallelism settings and the reasoning behind each flag, written for your engineers.
  • Runbooks cover startup order, Ray cluster health, model weight location, failover steps and how to roll back a failed change.
  • We set up Prometheus scraping of the /metrics endpoint and document the request, throughput, latency and KV cache signals to watch.
  • Acceptance tests cover load-up, tool calling, context length and recovery after a node restart, with results recorded for your team.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, with terms agreed in writing.
  • Upgrade work tests each new vLLM minor release against the Kimi K2 configuration before your production cutover, since releases ship about every two weeks.
  • Security retests cover the API key boundary, the reverse proxy allowlist and network isolation between the nodes after any change.
  • Ask us to confirm the support scope, response expectations and retest cadence in your quote before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.