Serve models with vLLM on Polyaxon
vLLM owns the inference engine and API behavior. Polyaxon turns the model server into an operated Kubernetes workload with explicit inputs, GPU placement, cache, secrets, access, and run history.
Outcome
A reusable vLLM component whose model, tensor parallelism, context length, and GPU request can be reviewed together.
Service responsibilities
Polyaxon schedules
The service component fixes the image, model, port, accelerator request, connections, and health boundary.
The runtime serves
The inference engine loads the model and exposes its native or OpenAI-compatible API.
Clients validate
Smoke tests and evaluation operations exercise the endpoint while Polyaxon retains the deployment context.
Prerequisites
- A vLLM image compatible with the selected model, GPU architecture, and driver.
- A persistent model cache and Hugging Face credentials when required.
- A representative request set for smoke, quality, and load validation.
Deploy and validate
- 1
Define the vLLM service
Expose vLLM's API through a Polyaxon service and keep the main memory and parallelism settings visible as component inputs.
version: 1.1kind: componentname: vllm-openaiinputs:- name: model type: str value: Qwen/Qwen3.6-27Brun: kind: service ports: [8000] rewritePath: true connections: [hf-token, model-cache] container: image: vllm/vllm-openai:latest command: ["vllm", "serve"] args: ["{{ model }}", "--host", "0.0.0.0", "--port", "8000", "--tensor-parallel-size", "4"] resources: limits: nvidia.com/gpu: "4"vLLM publishes this image for its OpenAI-compatible server. Replace the moving tag with a tested release tag or digest before production.
- 2
Submit the operation
Run the component through the target Polyaxon project, queue, preset, and approval path.
polyaxon run -f vllm.yaml - 3
Probe the vLLM API
Resolve the service URL and verify model discovery before running an evaluation or performance workload.
SERVICE_URL=$(polyaxon ops service --external --url)curl "$SERVICE_URL/v1/models"
Production checklist
Troubleshooting
The service never becomes ready
Inspect model download, credentials, disk space, GPU memory, runtime flags, port binding, and readiness behavior.
Requests fail through the URL
Verify the service port, rewrite-path setting, authentication header, ingress, network policy, and API path.
Latency degrades under load
Measure queueing, batch settings, context length, KV cache pressure, replica saturation, and storage or network contention.
Sources
Official platform, library, model, and Polyaxon references used by this guide.
Polyaxon vLLM integration
Typed component, service access, and tuning guidance.
vLLM documentation
Current serving engine, OpenAI-compatible API, and distributed deployment behavior.
vLLM Docker deployment
Official CUDA, ROCm, and other published server images.
Polyaxon service runtime
Service ports, replicas, connections, volumes, and external access.
Polyaxon model serving
Patterns for deploying APIs, loading models, and operating inference workloads.