-
Notifications
You must be signed in to change notification settings - Fork 501
[Docs] add pd-model deployment example in quickstart doc #1395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| apiVersion: orchestration.aibrix.ai/v1alpha1 | ||
| kind: StormService | ||
| metadata: | ||
| name: vllm-1p1d | ||
| spec: | ||
| replicas: 1 | ||
| updateStrategy: | ||
| type: InPlaceUpdate | ||
| stateful: true | ||
| selector: | ||
| matchLabels: | ||
| app: vllm-1p1d | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: vllm-1p1d | ||
| spec: | ||
| roles: | ||
| - name: prefill | ||
| replicas: 1 | ||
| stateful: true | ||
| template: | ||
| metadata: | ||
| labels: | ||
| model.aibrix.ai/name: deepseek-r1-distill-llama-8b | ||
| model.aibrix.ai/port: "8000" | ||
| model.aibrix.ai/engine: vllm | ||
| spec: | ||
| containers: | ||
| - name: prefill | ||
| image: vllm/vllm-openai:v0.9.1 | ||
| command: ["sh", "-c"] | ||
| args: | ||
| - | | ||
| python3 -m vllm.entrypoints.openai.api_server \ | ||
| --host "0.0.0.0" \ | ||
| --port "8000" \ | ||
| --uvicorn-log-level warning \ | ||
| --model deepseek-ai/DeepSeek-R1-Distill-Llama-8B \ | ||
| --served-model-name deepseek-r1-distill-llama-8b \ | ||
| --kv-transfer-config '{"kv_connector":"PyNcclConnector","kv_role":"kv_both"}' | ||
|
||
| env: | ||
| - name: UCX_TLS | ||
| value: cuda_ipc,cuda_copy,tcp | ||
| - name: VLLM_SERVER_DEV_MODE | ||
| value: "1" | ||
| - name: VLLM_NIXL_SIDE_CHANNEL_PORT | ||
| value: "5558" | ||
| - name: VLLM_WORKER_MULTIPROC_METHOD | ||
| value: spawn | ||
| - name: VLLM_ENABLE_V1_MULTIPROCESSING | ||
| value: "0" | ||
| - name: GLOO_SOCKET_IFNAME | ||
| value: eth0 | ||
| - name: NCCL_SOCKET_IFNAME | ||
| value: eth0 | ||
| - name: NCCL_IB_DISABLE | ||
| value: "0" | ||
| - name: NCCL_IB_GID_INDEX | ||
| value: "7" | ||
| - name: NCCL_DEBUG | ||
| value: "INFO" | ||
| resources: | ||
| limits: | ||
| nvidia.com/gpu: 1 | ||
| requests: | ||
| nvidia.com/gpu: 1 | ||
| securityContext: | ||
| capabilities: | ||
| add: | ||
| - IPC_LOCK | ||
| - name: decode | ||
| replicas: 1 | ||
| stateful: true | ||
| template: | ||
| metadata: | ||
| labels: | ||
| model.aibrix.ai/name: deepseek-r1-distill-llama-8b | ||
| model.aibrix.ai/port: "8000" | ||
| model.aibrix.ai/engine: vllm | ||
| spec: | ||
| containers: | ||
| - name: decode | ||
| image: vllm/vllm-openai:v0.9.1 | ||
| command: ["sh", "-c"] | ||
| args: | ||
| - | | ||
| python3 -m vllm.entrypoints.openai.api_server \ | ||
| --host "0.0.0.0" \ | ||
| --port "8000" \ | ||
| --uvicorn-log-level warning \ | ||
| --model deepseek-ai/DeepSeek-R1-Distill-Llama-8B \ | ||
| --served-model-name deepseek-r1-distill-llama-8b \ | ||
| --kv-transfer-config '{"kv_connector":"PyNcclConnector","kv_role":"kv_both"}' | ||
| env: | ||
| - name: UCX_TLS | ||
| value: cuda_ipc,cuda_copy,tcp | ||
| - name: VLLM_SERVER_DEV_MODE | ||
| value: "1" | ||
| - name: VLLM_NIXL_SIDE_CHANNEL_PORT | ||
| value: "5558" | ||
| - name: VLLM_WORKER_MULTIPROC_METHOD | ||
| value: spawn | ||
| - name: VLLM_ENABLE_V1_MULTIPROCESSING | ||
| value: "0" | ||
| - name: GLOO_SOCKET_IFNAME | ||
| value: eth0 | ||
| - name: NCCL_SOCKET_IFNAME | ||
| value: eth0 | ||
| - name: NCCL_IB_DISABLE | ||
| value: "0" | ||
| - name: NCCL_IB_GID_INDEX | ||
| value: "7" | ||
| - name: NCCL_DEBUG | ||
| value: "INFO" | ||
| resources: | ||
| limits: | ||
| nvidia.com/gpu: 1 | ||
| requests: | ||
| nvidia.com/gpu: 1 | ||
| securityContext: | ||
| capabilities: | ||
| add: | ||
| - IPC_LOCK | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrasing "add the
routing-strategyheader topd" is slightly ambiguous. It could be misinterpreted by users. For improved clarity, I suggest rephrasing to make it explicit thatpdis the value for therouting-strategyheader.