mcpField
R
ray-llm

ray-llm

github.com/pproencaCloud & DevOps21847 installsUpdated 11w ago
Repository

About ray-llm

ray-llm is a reference skill for LLM workloads on Ray, aimed at developers serving models or running batch inference. Its rules cover Ray’s LLM-specific APIs, including OpenAI-compatible serving and `ray.data.llm`, with examples checked against Ray 2.57.0.

Key features

  1. 0113 rules across five categories
  2. 02OpenAI-compatible serving with Ray
  3. 03Batch inference using `ray.data.llm`
  4. 04Model placement and accelerator guidance
  5. 05Autoscaling, routing, and LoRA patterns

Use cases

  1. 01Set up an OpenAI-compatible Ray deployment
  2. 02Run batch summarization or embedding over datasets
  3. 03Configure multi-GPU model placement
  4. 04Migrate code from archived ray-llm APIs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill ray-llm

After installing, type/ray-llmin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
api-endpoint-surface-cpu-validation.md
api-lora-dynamic-multiplexing.md
batch-build-processor-renamed.md
batch-concurrency-and-alternatives.md
batch-stage-configs-not-flags.md
place-accelerator-type-validated.md
place-engine-builds-pg.md
scale-autoscaling-deployment-config.md
scale-prefix-cache-routing.md
serve-builtin-not-handrolled.md
serve-deprecated-server-router.md
serve-model-id-vs-source.md
serve-ray-llm-extra-pins-vllm.md

Details

From the project README

Ray LLM

Library-reference skill for LLM workloads on open-source Ray — 13 rules across 5 categories covering ray.serve.llm (OpenAI-compatible, vLLM-backed serving) and ray.data.llm (batch inference). This surface churned faster than any other part of Ray — a standalone repo was absorbed and archived, entry points were renamed, and config shapes restructured — so the examples a model learned from mostly no longer run. Each rule names the wrong default it corrects; there is no rule for things a capable model already gets right.

Scope is the LLM-specific layer. Generic Serve/Data/cluster decisions (deployment lifecycle, autoscaling semantics, KubeRay) are the sibling ray skill — the two compose.

Pinned to ray 2.57.0 (ray[llm] extra, which pins its matching vLLM). API claims were verified against the unpacked 2.57.0 wheel and the installed package source, and every config example in the rules was constructed under CPU-only pydantic validation (including the traps, which fail exactly as described); engine/GPU runtime behavior is source-verified only — no model was actually served.

When to Apply

  • Standing up or reviewing an OpenAI-compatible LLM serving deployment on Ray
  • Writing batch LLM inference over datasets — summarization, embedding, scoring at scale
  • Sizing or placing multi-GPU models — tensor/pipeline parallelism, accelerator selection
  • Scaling LLM deployments — replica autoscaling, ingress sizing, request routing
  • Serving families of LoRA fine-tunes of a shared base model
  • Migrating code that uses the archived ray-llm repo, hand-rolled vLLM engines, or pre-2.5x ray.data.llm names

Rule Categories

#CategoryPrefixCovers
1Serving Setupserve-LLMConfig + build_openai_app over hand-rolled engines and the archived repo; model_id vs model_source; the ray[llm]↔vLLM version pin; relocated LLMServer/OpenAiIngress imports
2Batch Inferencebatch-build_processor (old name removed), stage configs over boolean flags, CPU-default accelerator_type and autoscaling concurrency, HTTP/Serve processor alternatives
3Placement & Acceleratorsplace-The engine's own TP×PP placement group (and when to override its strategy), validated accelerator_type names
4Autoscaling & Routingscale-deployment_config.autoscaling_config with engine-sized replicas, ingress replica sizing, prefix-cache-affinity routing
5LoRA & API Surfaceapi-Dynamic LoRA multiplexing over per-adapter deployments; the full OpenAI endpoint surface; GPU-free config validation

Quick Reference

1. Serving Setup
2. Batch Inference
3. Placement & Accelerators
4. Autoscaling & Routing
5. LoRA & API Surface

How to Use

Read a reference file when its decision comes up. Each rule names the wrong default it corrects, then shows the canonical way (with an incorrect/correct contrast only where the wrong way is a real trap).

Related Skills

  • ray — the sibling rule pack for classic-ML Ray (Train, Tune, Data, Serve, Core, KubeRay production topology); generic Serve and cluster decisions live there

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and source references

Comments

Markdown supported