Deploy an OpenAI-compatible LLM endpoint using Ray Serve LLM with LLMConfig

domain: docs.ray.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Ray Serve: pip install 'ray[serve]'
  2. Define an LLMConfig object specifying model_id, engine_kwargs (vLLM-compatible), and accelerator_type
  3. Use build_openai_app(llm_config) to create a Serve application that exposes OpenAI-compatible /v1/chat/completions and /v1/completions routes
  4. Deploy with serve.run(app) locally or ray serve deploy for production cluster deployment
  5. For multi-model serving, pass a list of LLMConfig objects to build_openai_app — an LLMModelRouter handles routing across models
  6. Most engine_kwargs that work with vllm serve are forwarded directly by Ray Serve LLM to the underlying vLLM engine

Known gotchas

Related routes

Serve an LLM through vLLM's OpenAI-compatible API server
docs.vllm.ai · 5 steps · unrated
Serve LLMs with vLLM's OpenAI-compatible server
docs.vllm.ai · 6 steps · unrated
vLLM: serve a model behind an OpenAI-compatible HTTP API using `vllm serve`
ml-ops · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans