Skip to contentSkip to conversation

workflows: Add vLLM workflow for LLM inference and production deployment

PATCH Superseded Luis Chamberlain 1 participant 1 message Oct 3, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workflows: Add vLLM workflow for LLM inference and production deployment

Add support for deploying and testing vLLM inference engine and the vLLM Production Stack. The workflow enables automated testing of both vLLM as a single-node inference server and the production stack's cluster-wide orchestration capabilities including routing, scaling, and distributed caching. We start off with CPU support for both. For the production stack two replicas are requested so two engines, each one requiring 16 GiB memory. Given other requirements we ask for at least 64 GiB RAM for the production stack vllm CPU test.

To get the production stack up and running you just use:

make defconfig-vllm-production-stack-cpu KDEVOPS_HOSTS_PREFIX="demo" make
make bringup
make vllm AV=2

At this point you end up with two replicas serving through the vLLM production stack router.

vLLM is a high-performance inference engine for large language models, optimized for throughput and memory efficiency through PagedAttention and continuous batching. The vLLM Production Stack builds on top of this engine to provide cluster-wide serving with intelligent request routing, distributed KV cache sharing via LMCache, unified observability, and autoscaling across multiple model replicas.

The implementation supports three deployment methods: simple Docker containers for development, Kubernetes with the official Production Stack Helm chart for cluster deployments
(https://github.com/vllm-project/production-stack), and bare metal with systemd for direct hardware access. Each method shares common configuration through Kconfig while maintaining deployment-specific optimizations.

Testing can be performed with either CPU-only or GPU-accelerated inference. CPU testing uses openeuler/vllm-cpu images to validate the vLLM API and the production stack's orchestration layer without requiring GPU hardware, making it suitable for CI/CD pipelines and development workflows. This enables testing of the router's routing algorithms (round-robin, session affinity, prefix-aware), service discovery, load balancing, and API compatibility. GPU testing validates full production scenarios including LMCache distributed cache sharing, tensor parallelism, and autoscaling behavior.

The workflow integrates Docker registry mirror support with automatic detection via 9P mounts. When /mirror/docker is available, the system automatically configures Docker daemon registry-mirrors for transparent pull-through caching, reducing deployment time without requiring manual configuration. The detection uses the libvirt gateway IP to ensure proper routing from containers and minikube pods.

Image configuration follows Docker's native registry-mirrors pattern rather than rewriting image names. This preserves the original repository paths like 'openeuler/vllm-cpu:latest' and 'ghcr.io/vllm-project/production-stack/router:latest' while still benefiting from mirror caching when available.

Status monitoring is provided through:

make vllm-status
make vllm-status-simplified

which parse deployment state and present it with context-aware guidance about next steps. The vllm-quick-test target provides rapid smoke testing across all configured nodes with timing measurements and proper exit codes for CI integration.

To test an LLM query:

make vllm-quick-test

We provide basic documentation to help clarify the distinction between vLLM (the inference engine) and the Production Stack (the orchestration layer). For more details refer to the official release announcement at:

https://blog.lmcache.ai/2025-01-21-stack-release/

The long term plan is to scale with mocked engines, and then also real GPUs support both bare metal and on the cloud, leveraging kdevops's cloud agnostic power for any workflow.

Here's an example quick test:

mcgrof@beefy-server /xfs1/mcgrof/vllm/kdevops (git::vllm-v2)$ make vllm-quick-test
========================================
vLLM Quick Test
========================================
Prompt: "kdevops is"
Max tokens: 30
Nodes to test: 1

Testing Baseline node: lpc-vllm
----------------------------------------
Node IP: 192.168.122.170
Starting kubectl port-forward...
Sending request: "kdevops is"
✓ Success!
Duration: 15.747292458s
Full response: "kdevops iseasily a higher level doctor than your list. really it depends on as on what doc is what 15 less ifmay its just personal preferences."

Full JSON response:

{
    "id": "cmpl-2f031a35c5364d3aaf2b9f0007d46ae5",
    "object": "text_completion",
    "created": 1759424719,
    "model": "facebook/opt-125m",
    "choices": [
        {
            "index": 0,
            "text": " easily a higher level doctor than your list.\nreally it depends on as on what doc is what 15 less ifmay its just personal preferences.\n",
            "logprobs": null,
            "finish_reason": "length",
            "stop_reason": null,
            "prompt_logprobs": null
        }
    ],
    "usage": {
        "prompt_tokens": 5,
        "total_tokens": 35,
        "completion_tokens": 30,
        "prompt_tokens_details": null
    },
    "kv_transfer_params": null
}

========================================
All tests passed!
========================================

Then for a synthetic benchmark:

make vllm-benchmark

You should end up with results in workflows/vllm/results/html/

I have put demo results of a synthetic run and also a real workload on a virtual 64 vcpus 64 GiB DRAM here:

https://github.com/mcgrof/demo-vllm-benchmark

Generated-by Claude AI

---

Notes:

In retrospect:

make defconfig-vllm-production-stack-cpu

Is stupid because that's using vcpus so it should be:

make defconfig-vllm-production-stack-vcpu

And then I'll add next DECLARE_HOSTS support with:

make defconfig-vllm-production-stack-cpu DECLARE_HOSTS=foo

So that we can run the production stack on a real bare metal server. After that support is added, which should be *super simple* prompt, then its just a matter of doing the same with a real GPU:

make defconfig-vllm-production-stack-gpu DECLARE_HOSTS=foo

Then to enhance the production stack routing further we will add:

make defconfig-vllm-production-stack-fake DECLARE_HOSTS=foo

Which will just fake the engines :)

 .gitignore                                    |   1 +
 PROMPTS.md                                    |  31 +
 README.md                                     |  26 +-
 defconfigs/vllm                               |  40 +
 defconfigs/vllm-production-stack-cpu          |  45 ++
 defconfigs/vllm-quick-test                    |  42 ++
 kconfigs/Kconfig.libvirt                      |   3 +
 kconfigs/workflows/Kconfig                    |  28 +
 playbooks/roles/gen_hosts/defaults/main.yml   |   1 +
 playbooks/roles/gen_hosts/tasks/main.yml      |  15 +
 .../gen_hosts/templates/workflows/vllm.j2     |  65 ++
 playbooks/roles/gen_nodes/defaults/main.yml   |   1 +
 playbooks/roles/gen_nodes/tasks/main.yml      |  36 +
 playbooks/roles/linux-mirror/tasks/main.yml   |   1 +
 playbooks/roles/vllm/defaults/main.yml        |  17 +
 .../vllm/tasks/configure-docker-data.yml      | 187 +++++
 .../roles/vllm/tasks/deploy-bare-metal.yml    | 227 ++++++
 playbooks/roles/vllm/tasks/deploy-docker.yml  | 105 +++
 .../vllm/tasks/deploy-production-stack.yml    | 252 +++++++
 .../vllm/tasks/install-deps/debian/main.yml   |  70 ++
 .../roles/vllm/tasks/install-deps/main.yml    |  12 +
 .../vllm/tasks/install-deps/redhat/main.yml   | 108 +++
 .../vllm/tasks/install-deps/suse/main.yml     |  50 ++
 playbooks/roles/vllm/tasks/main.yml           | 582 +++++++++++++++
 playbooks/roles/vllm/tasks/setup-helm.yml     |  33 +
 .../roles/vllm/tasks/setup-kubernetes.yml     | 236 ++++++
 .../roles/vllm/templates/vllm-benchmark.py.j2 | 152 ++++
 .../vllm/templates/vllm-container.service.j2  |  80 ++
 .../vllm/templates/vllm-deployment.yaml.j2    |  94 +++
 .../vllm/templates/vllm-helm-values.yaml.j2   |  63 ++
 .../vllm-prod-stack-official-values.yaml.j2   | 154 ++++
 .../templates/vllm-upstream-values.yaml.j2    | 151 ++++
 .../roles/vllm/templates/vllm-visualize.py.j2 | 434 +++++++++++
 playbooks/vllm.yml                            |  11 +
 scripts/vllm-quick-test.sh                    | 178 +++++
 scripts/vllm-status-summary.py                | 404 ++++++++++
 workflows/Makefile                            |   4 +
 workflows/vllm/Kconfig                        | 699 ++++++++++++++++++
 workflows/vllm/Makefile                       | 118 +++
 workflows/vllm/README.md                      | 322 ++++++++
 40 files changed, 5076 insertions(+), 2 deletions(-)
 create mode 100644 defconfigs/vllm
 create mode 100644 defconfigs/vllm-production-stack-cpu
 create mode 100644 defconfigs/vllm-quick-test
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/vllm.j2
 create mode 100644 playbooks/roles/vllm/defaults/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/configure-docker-data.yml
 create mode 100644 playbooks/roles/vllm/tasks/deploy-bare-metal.yml
 create mode 100644 playbooks/roles/vllm/tasks/deploy-docker.yml
 create mode 100644 playbooks/roles/vllm/tasks/deploy-production-stack.yml
 create mode 100644 playbooks/roles/vllm/tasks/install-deps/debian/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/install-deps/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/install-deps/redhat/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/install-deps/suse/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/main.yml
 create mode 100644 playbooks/roles/vllm/tasks/setup-helm.yml
 create mode 100644 playbooks/roles/vllm/tasks/setup-kubernetes.yml
 create mode 100644 playbooks/roles/vllm/templates/vllm-benchmark.py.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-container.service.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-deployment.yaml.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-helm-values.yaml.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-prod-stack-official-values.yaml.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-upstream-values.yaml.j2
 create mode 100644 playbooks/roles/vllm/templates/vllm-visualize.py.j2
 create mode 100644 playbooks/vllm.yml
 create mode 100755 scripts/vllm-quick-test.sh
 create mode 100755 scripts/vllm-status-summary.py
 create mode 100644 workflows/vllm/Kconfig
 create mode 100644 workflows/vllm/Makefile
 create mode 100644 workflows/vllm/README.md
.gitignore +1 -0
index a1017d66..7d84f047 100644
@@ -91,6 +91,7 @@ playbooks/roles/linux-mirror/linux-mirror-systemd/mirrors.yaml
 workflows/selftests/results/
 
 workflows/minio/results/
+workflows/vllm/results/
 
 workflows/linux/refs/default/Kconfig.linus
 workflows/linux/refs/default/Kconfig.next
PROMPTS.md +31 -0
index 5a788f71..79d5b204 100644
@@ -5,6 +5,37 @@ and example commits and their outcomes, and notes by users of the AI agent
 grading. It is also instructive for humans to learn how to use generative
 AI to easily extend kdevops for their own needs.
 
+## Adding new AI/ML workflows
+
+### Adding vLLM Production Stack workflow
+
+**Prompt:**
+I have placed in ../production-stack/ the https://github.com/vllm-project/production-stack.git
+project. Familiarize yourself with it and then add support for as a new
+I workflow, other than Milvus AI on kdevops.
+
+**AI:** Claude Code
+**Commit:** TBD
+**Result:** Tough
+**Grading:** 50%
+
+**Notes:**
+
+Adding just vllm was fairly trivial. However the production stack project
+lacked any clear documentation about what docker container image could be
+used for CPU support, and all docker container images had one or another
+obscure issue.
+
+So while getting the vllm and the production stack generally supported was
+faily trivial, the lack of proper docs make it hard to figure out exactly what
+to do.
+
+Fortunately the implementation correctly identified the need for Kubernetes
+orchestration, included support for various deployment options (Minikube vs
+existing clusters), and integrated monitoring with Prometheus/Grafana. The
+workflow supports A/B testing, multiple routing algorithms, and performance
+benchmarking capabilities.
+
 ## Extending existing Linux kernel selftests
 
 Below are a set of example prompts / result commits of extending existing
README.md +24 -2
index 9986f1cc..a59bda76 100644
@@ -285,10 +285,30 @@ For detailed documentation and demo results, see the
 
 ### AI workflow
 
-kdevops now supports AI/ML system benchmarking, starting with vector databases
-like Milvus. Similar to fstests, you can quickly set up and benchmark AI
+kdevops now supports AI/ML system benchmarking, including vector databases
+and LLM serving infrastructure. Similar to fstests, you can quickly set up and benchmark AI
 infrastructure with just a few commands:
 
+#### vLLM Production Stack
+Deploy and benchmark large language models using the vLLM Production Stack:
+
+```bash
+make defconfig-vllm
+make bringup
+make vllm
+make vllm-benchmark
+```
+
+The vLLM workflow provides:
+- **Production LLM Deployment**: Kubernetes-based vLLM serving with Helm
+- **Request Routing**: Multiple algorithms (round-robin, session affinity, prefix-aware)
+- **Observability**: Integrated Prometheus and Grafana monitoring
+- **Performance Features**: Prefix caching, chunked prefill, KV cache offloading
+- **A/B Testing**: Compare different model configurations
+
+#### Milvus Vector Database
+Benchmark vector database performance for AI applications:
+
 ```bash
 make defconfig-ai-milvus-docker
 make bringup
@@ -303,6 +323,7 @@ The AI workflow supports:
 - **Demo Results**: View actual benchmark HTML reports and performance visualizations
 
 For details and demo results, see:
+- [kdevops vLLM workflow documentation](workflows/vllm/)
 - [kdevops AI workflow documentation](docs/ai/README.md)
 - [Milvus performance demo results](docs/ai/vector-databases/milvus.md#demo-results)
 
@@ -358,6 +379,7 @@ want to just use the kernel that comes with your Linux distribution.
   * [kdevops selftests docs](docs/selftests.md)
   * [kdevops reboot-limit docs](docs/reboot-limit.md)
   * [kdevops AI workflow docs](docs/ai/README.md)
+  * [kdevops vLLM workflow docs](workflows/vllm/)
 
 # kdevops general documentation
 
defconfigs/vllm new file +40 -0
new file mode 100644
index 00000000..ba0ccfa7
@@ -0,0 +1,40 @@
+# vLLM configuration with Latest Docker deployment
+CONFIG_KDEVOPS_FIRST_RUN=n
+CONFIG_LIBVIRT=y
+CONFIG_LIBVIRT_VCPUS=8
+CONFIG_LIBVIRT_MEM_32G=y
+
+# Workflow configuration
+CONFIG_WORKFLOWS=y
+CONFIG_WORKFLOWS_TESTS=y
+CONFIG_WORKFLOWS_LINUX_TESTS=y
+CONFIG_WORKFLOWS_DEDICATED_WORKFLOW=y
+CONFIG_KDEVOPS_WORKFLOW_DEDICATE_VLLM=y
+
+# vLLM specific configuration
+CONFIG_VLLM_LATEST_DOCKER=y
+CONFIG_VLLM_K8S_MINIKUBE=y
+CONFIG_VLLM_HELM_RELEASE_NAME="vllm"
+CONFIG_VLLM_HELM_NAMESPACE="vllm-system"
+CONFIG_VLLM_MODEL_URL="facebook/opt-125m"
+CONFIG_VLLM_MODEL_NAME="opt-125m"
+CONFIG_VLLM_REPLICA_COUNT=1
+CONFIG_VLLM_USE_CPU_INFERENCE=y
+CONFIG_VLLM_REQUEST_CPU=8
+CONFIG_VLLM_REQUEST_MEMORY="32Gi"
+CONFIG_VLLM_REQUEST_GPU=0
+CONFIG_VLLM_MAX_MODEL_LEN=2048
+CONFIG_VLLM_DTYPE="float32"
+CONFIG_VLLM_TENSOR_PARALLEL_SIZE=1
+CONFIG_VLLM_ROUTER_ENABLED=y
+CONFIG_VLLM_ROUTER_ROUND_ROBIN=y
+CONFIG_VLLM_OBSERVABILITY_ENABLED=y
+CONFIG_VLLM_GRAFANA_PORT=3000
+CONFIG_VLLM_PROMETHEUS_PORT=9090
+CONFIG_VLLM_API_PORT=8000
+CONFIG_VLLM_API_KEY=""
+CONFIG_VLLM_HF_TOKEN=""
+CONFIG_VLLM_BENCHMARK_ENABLED=y
+CONFIG_VLLM_BENCHMARK_DURATION=60
+CONFIG_VLLM_BENCHMARK_CONCURRENT_USERS=10
+CONFIG_VLLM_BENCHMARK_RESULTS_DIR="/data/vllm-benchmark"
defconfigs/vllm-production-stack-cpu new file +45 -0

45 lines not on this page · raw message

defconfigs/vllm-quick-test new file +42 -0

42 lines not on this page · raw message

kconfigs/Kconfig.libvirt +3 -0
index 95204ad1..4f296309 100644
@@ -335,6 +335,7 @@ config LIBVIRT_LARGE_CPU
 
 choice
 	prompt "Guest vCPUs"
+	default LIBVIRT_VCPUS_64 if KDEVOPS_WORKFLOW_DEDICATE_VLLM
 	default LIBVIRT_VCPUS_8
 
 config LIBVIRT_VCPUS_2
@@ -408,6 +409,7 @@ config LIBVIRT_VCPUS_COUNT
 
 choice
 	prompt "How much GiB memory to use per guest"
+	default LIBVIRT_MEM_64G if KDEVOPS_WORKFLOW_DEDICATE_VLLM
 	default LIBVIRT_MEM_4G
 
 config LIBVIRT_MEM_2G
@@ -478,6 +480,7 @@ config LIBVIRT_MEM_MB
 config LIBVIRT_IMAGE_SIZE
 	string "VM image size"
 	output yaml
+	default "100G" if KDEVOPS_WORKFLOW_DEDICATE_VLLM
 	default "20G"
 	depends on GUESTFS
 	help
kconfigs/workflows/Kconfig +28 -0
index 1be04c9c..5797521f 100644
@@ -233,6 +233,14 @@ config KDEVOPS_WORKFLOW_DEDICATE_AI
 	  This will dedicate your configuration to running only the
 	  AI workflow for vector database performance testing.
 
+config KDEVOPS_WORKFLOW_DEDICATE_VLLM
+	bool "vllm"
+	select KDEVOPS_WORKFLOW_ENABLE_VLLM
+	help
+	  This will dedicate your configuration to running only the
+	  vLLM Production Stack workflow for deploying and benchmarking
+	  large language models with Kubernetes.
+
 config KDEVOPS_WORKFLOW_DEDICATE_MINIO
 	bool "minio"
 	select KDEVOPS_WORKFLOW_ENABLE_MINIO
@@ -265,6 +273,7 @@ config KDEVOPS_WORKFLOW_NAME
 	default "mmtests" if KDEVOPS_WORKFLOW_DEDICATE_MMTESTS
 	default "fio-tests" if KDEVOPS_WORKFLOW_DEDICATE_FIO_TESTS
 	default "ai" if KDEVOPS_WORKFLOW_DEDICATE_AI
+	default "vllm" if KDEVOPS_WORKFLOW_DEDICATE_VLLM
 	default "minio" if KDEVOPS_WORKFLOW_DEDICATE_MINIO
 	default "build-linux" if KDEVOPS_WORKFLOW_DEDICATE_BUILD_LINUX
 
@@ -395,6 +404,14 @@ config KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_AI
 	  Select this option if you want to provision AI benchmarks on a
 	  single target node for by-hand testing.
 
+config KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_VLLM
+	bool "vllm"
+	select KDEVOPS_WORKFLOW_ENABLE_VLLM
+	depends on LIBVIRT || TERRAFORM_PRIVATE_NET
+	help
+	  Select this option if you want to provision vLLM Production Stack
+	  on a single target node for by-hand testing and development.
+
 endif # !WORKFLOWS_DEDICATED_WORKFLOW
 
 config KDEVOPS_WORKFLOW_ENABLE_FSTESTS
@@ -530,6 +547,17 @@ source "workflows/ai/Kconfig"
 endmenu
 endif # KDEVOPS_WORKFLOW_ENABLE_AI
 
+config KDEVOPS_WORKFLOW_ENABLE_VLLM
+	bool
+	output yaml
+	default y if KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_VLLM || KDEVOPS_WORKFLOW_DEDICATE_VLLM
+
+if KDEVOPS_WORKFLOW_ENABLE_VLLM
+menu "Configure and run vLLM Production Stack"
+source "workflows/vllm/Kconfig"
+endmenu
+endif # KDEVOPS_WORKFLOW_ENABLE_VLLM
+
 config KDEVOPS_WORKFLOW_ENABLE_MINIO
 	bool
 	output yaml
playbooks/roles/gen_hosts/defaults/main.yml +1 -0
index b0b59542..63e7a02c 100644
@@ -30,6 +30,7 @@ kdevops_workflow_enable_sysbench: false
 kdevops_workflow_enable_fio_tests: false
 kdevops_workflow_enable_mmtests: false
 kdevops_workflow_enable_ai: false
+kdevops_workflow_enable_vllm: false
 workflows_reboot_limit: false
 kdevops_use_declared_hosts: false
 
playbooks/roles/gen_hosts/tasks/main.yml +15 -0
index c4599e4e..546a0038 100644
@@ -270,6 +270,21 @@
     - ansible_hosts_template.stat.exists
     - not kdevops_use_declared_hosts|default(false)|bool
 
+- name: Generate the Ansible hosts file for a dedicated vLLM setup
+  tags: ['hosts']
+  ansible.builtin.template:
+    src: "{{ kdevops_hosts_template }}"
+    dest: "{{ ansible_cfg_inventory }}"
+    force: true
+    trim_blocks: True
+    lstrip_blocks: True
+    mode: '0644'
+  when:
+    - kdevops_workflows_dedicated_workflow
+    - kdevops_workflow_enable_vllm|default(false)|bool
+    - ansible_hosts_template.stat.exists
+    - not kdevops_use_declared_hosts|default(false)|bool
+
 - name: Verify if final host file exists
   ansible.builtin.stat:
     path: "{{ ansible_cfg_inventory }}"
playbooks/roles/gen_hosts/templates/workflows/vllm.j2 new file +65 -0

65 lines not on this page · raw message

playbooks/roles/gen_nodes/defaults/main.yml +1 -0
index aa8037cd..c6275721 100644
@@ -13,6 +13,7 @@ kdevops_workflow_enable_selftests: false
 kdevops_workflow_enable_mmtests: false
 kdevops_workflow_enable_fio_tests: false
 kdevops_workflow_enable_ai: false
+kdevops_workflow_enable_vllm: false
 kdevops_nfsd_enable: false
 kdevops_smbd_enable: false
 kdevops_krb5_enable: false
playbooks/roles/gen_nodes/tasks/main.yml +36 -0
index 716c8ec0..7a98fff4 100644
@@ -790,6 +790,42 @@
     - ai_enabled_section_types is defined
     - ai_enabled_section_types | length > 0
 
+# vLLM Production Stack workflow nodes
+
+- name: Generate the vLLM kdevops nodes file using {{ kdevops_nodes_template }} as jinja2 source template
+  tags: ['hosts']
+  vars:
+    node_template: "{{ kdevops_nodes_template | basename }}"
+    nodes: "{{ [kdevops_host_prefix + '-vllm'] }}"
+    all_generic_nodes: "{{ [kdevops_host_prefix + '-vllm'] }}"
+  ansible.builtin.template:
+    src: "{{ node_template }}"
+    dest: "{{ topdir_path }}/{{ kdevops_nodes }}"
+    force: true
+    mode: "0644"
+  when:
+    - kdevops_workflows_dedicated_workflow
+    - kdevops_workflow_enable_vllm
+    - ansible_nodes_template.stat.exists
+    - not kdevops_baseline_and_dev
+
+- name: Generate the vLLM kdevops nodes file with dev hosts using {{ kdevops_nodes_template }} as jinja2 source template
+  tags: ['hosts']
+  vars:
+    node_template: "{{ kdevops_nodes_template | basename }}"
+    nodes: "{{ [kdevops_host_prefix + '-vllm', kdevops_host_prefix + '-vllm-dev'] }}"
+    all_generic_nodes: "{{ [kdevops_host_prefix + '-vllm', kdevops_host_prefix + '-vllm-dev'] }}"
+  ansible.builtin.template:
+    src: "{{ node_template }}"
+    dest: "{{ topdir_path }}/{{ kdevops_nodes }}"
+    force: true
+    mode: "0644"
+  when:
+    - kdevops_workflows_dedicated_workflow
+    - kdevops_workflow_enable_vllm
+    - ansible_nodes_template.stat.exists
+    - kdevops_baseline_and_dev
+
 # MinIO S3 Storage Testing workflow nodes
 
 # Multi-filesystem MinIO configurations
playbooks/roles/linux-mirror/tasks/main.yml +1 -0
index 007a0411..b028729f 100644
@@ -259,6 +259,7 @@
     - not install_only_git_daemon|bool
   tags: ["nfs", "mirror"]
 
+
 - name: Check if /mirror is already exported
   become: true
   ansible.builtin.command:
playbooks/roles/vllm/defaults/main.yml new file +17 -0
new file mode 100644
index 00000000..739c8136
@@ -0,0 +1,17 @@
+---
+# vLLM role default variables
+vllm_production_stack_repo: https://github.com/vllm-project/production-stack.git
+vllm_production_stack_version: main
+vllm_local_path: /data/vllm
+vllm_results_dir: "{{ vllm_benchmark_results_dir | default('/data/vllm-benchmark') }}"
+
+# Default image versions that are known to work
+# Note: vLLM v0.10.2+ is recommended for Production Stack with CPU inference
+# - v0.6.5+ required for --no-enable-prefix-caching flag support
+# - v0.6.5-v0.6.6 have CPU inference bugs (NotImplementedError in is_async_output_supported)
+# - v0.10.2 fixes all CPU inference issues and is production ready
+# For CPU inference, use openeuler/vllm-cpu instead of vllm/vllm-openai
+vllm_engine_image_repo: "{{ 'openeuler/vllm-cpu' if vllm_use_cpu_inference | default(false) else 'vllm/vllm-openai' }}"
+vllm_engine_image_tag: "{{ 'latest' if vllm_use_cpu_inference | default(false) else 'v0.10.2' }}"
+vllm_prod_stack_router_image: ghcr.io/vllm-project/production-stack/router
+vllm_prod_stack_router_tag: latest
playbooks/roles/vllm/tasks/configure-docker-data.yml new file +187 -0

187 lines not on this page · raw message

playbooks/roles/vllm/tasks/deploy-bare-metal.yml new file +227 -0

227 lines not on this page · raw message

playbooks/roles/vllm/tasks/deploy-docker.yml new file +105 -0

105 lines not on this page · raw message

playbooks/roles/vllm/tasks/deploy-production-stack.yml new file +252 -0

252 lines not on this page · raw message

playbooks/roles/vllm/tasks/install-deps/debian/main.yml new file +70 -0

70 lines not on this page · raw message

playbooks/roles/vllm/tasks/install-deps/main.yml new file +12 -0
new file mode 100644
index 00000000..6b637133
@@ -0,0 +1,12 @@
+---
+- ansible.builtin.include_role:
+    name: pkg
+
+# tasks to install dependencies for vLLM
+- name: vLLM distribution specific setup
+  ansible.builtin.import_tasks: tasks/install-deps/debian/main.yml
+  when: ansible_facts['os_family']|lower == 'debian'
+- ansible.builtin.import_tasks: tasks/install-deps/suse/main.yml
+  when: ansible_facts['os_family']|lower == 'suse'
+- ansible.builtin.import_tasks: tasks/install-deps/redhat/main.yml
+  when: ansible_facts['os_family']|lower == 'redhat'
playbooks/roles/vllm/tasks/install-deps/redhat/main.yml new file +108 -0

108 lines not on this page · raw message

playbooks/roles/vllm/tasks/install-deps/suse/main.yml new file +50 -0

50 lines not on this page · raw message

playbooks/roles/vllm/tasks/main.yml new file +582 -0

582 lines not on this page · raw message

playbooks/roles/vllm/tasks/setup-helm.yml new file +33 -0
new file mode 100644
index 00000000..d059a113
@@ -0,0 +1,33 @@
+---
+# Setup Helm for vLLM deployment
+- name: Setup Helm
+  block:
+    - name: Check if helm exists
+      ansible.builtin.stat:
+        path: /usr/local/bin/helm
+      register: helm_stat
+
+    - name: Download Helm installer script
+      when: not helm_stat.stat.exists
+      ansible.builtin.get_url:
+        url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
+        dest: /tmp/get-helm-3.sh
+        mode: '0755'
+
+    - name: Install Helm
+      when: not helm_stat.stat.exists
+      ansible.builtin.command:
+        cmd: /tmp/get-helm-3.sh
+      environment:
+        HELM_INSTALL_DIR: /usr/local/bin
+      become: yes
+
+    - name: Verify Helm installation
+      ansible.builtin.command:
+        cmd: helm version --short
+      register: helm_version
+      changed_when: false
+
+    - name: Display Helm version
+      debug:
+        msg: "Helm version: {{ helm_version.stdout }}"
playbooks/roles/vllm/tasks/setup-kubernetes.yml new file +236 -0

236 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-benchmark.py.j2 new file +152 -0

152 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-container.service.j2 new file +80 -0

80 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-deployment.yaml.j2 new file +94 -0

94 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-helm-values.yaml.j2 new file +63 -0

63 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-prod-stack-official-values.yaml.j2 new file +154 -0

154 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-upstream-values.yaml.j2 new file +151 -0

139 lines not on this page · raw message

playbooks/roles/vllm/templates/vllm-visualize.py.j2 new file +434 -0

434 lines not on this page · raw message

playbooks/vllm.yml new file +11 -0
new file mode 100644
index 00000000..2aad56a8

Lines of this file are not shown. View the raw message.

scripts/vllm-quick-test.sh new file +178 -0

178 lines not on this page · raw message

scripts/vllm-status-summary.py new file +404 -0

404 lines not on this page · raw message

workflows/Makefile +4 -0
index 05c75a2d..1c234b00 100644

Lines of this file are not shown. View the raw message.

workflows/vllm/Kconfig new file +699 -0

699 lines not on this page · raw message

workflows/vllm/Makefile new file +118 -0

118 lines not on this page · raw message

workflows/vllm/README.md new file +322 -0

322 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.51.0

Part of the diff is not shown here. View the raw message.