-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for AMD MI300X GPU (#368)
* Add an image for `amd-gpu` * Add resourceProfile for AMD MI300X * Add a default values file for AMD GPU operator * Add installation guide section for using AMD GPU operator Benchmark of Llama 3.1 70B on 1 x AMD MI300X: https://substratus.ai/blog/benchmarking-llama-3.1-70b-amd-mi300x
- Loading branch information
Showing
7 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resourceProfiles: | ||
amd-gpu-mi300x: | ||
nodeSelector: | ||
# Source: https://gitlab.freedesktop.org/mesa/drm/-/blob/main/data/amdgpu.ids#L569 | ||
amd.com/gpu.device-id: 74a1 | ||
amd.com/gpu.vram: "192G" | ||
amd.com/gpu.family: "AI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Source: models/templates/models.yaml | ||
apiVersion: kubeai.org/v1 | ||
kind: Model | ||
metadata: | ||
name: llama-3.1-405b-instruct-fp8-mi300x | ||
spec: | ||
features: [TextGeneration] | ||
url: hf://amd/Llama-3.1-405B-Instruct-FP8-KV | ||
engine: VLLM | ||
args: | ||
- --max-model-len=120000 | ||
- --max-num-batched-token=120000 | ||
- --max-num-seqs=1024 | ||
- --num-scheduler-steps=15 | ||
- --tensor-parallel-size=8 | ||
- --gpu-memory-utilization=0.90 | ||
- --disable-log-requests | ||
- --kv-cache-dtype=fp8 | ||
- --enable-chunked-prefill=false | ||
- --max-seq-len-to-capture=16384 | ||
env: | ||
HIP_FORCE_DEV_KERNARG: "1" | ||
NCCL_MIN_NCHANNELS: "112" | ||
TORCH_BLAS_PREFER_HIPBLASLT: "1" | ||
VLLM_USE_TRITON_FLASH_ATTN: "0" | ||
targetRequests: 1024 | ||
resourceProfile: amd-gpu-mi300x:8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Source: models/templates/models.yaml | ||
apiVersion: kubeai.org/v1 | ||
kind: Model | ||
metadata: | ||
name: llama-3.1-70b-instruct-fp8-mi300x | ||
spec: | ||
features: [TextGeneration] | ||
url: hf://amd/Llama-3.1-70B-Instruct-FP8-KV | ||
engine: VLLM | ||
args: | ||
- --max-model-len=120000 | ||
- --max-num-batched-token=120000 | ||
- --max-num-seqs=1024 | ||
- --num-scheduler-steps=15 | ||
- --gpu-memory-utilization=0.9 | ||
- --disable-log-requests | ||
- --kv-cache-dtype=fp8 | ||
- --enable-chunked-prefill=false | ||
- --max-seq-len-to-capture=16384 | ||
env: | ||
HIP_FORCE_DEV_KERNARG: "1" | ||
NCCL_MIN_NCHANNELS: "112" | ||
TORCH_BLAS_PREFER_HIPBLASLT: "1" | ||
VLLM_USE_TRITON_FLASH_ATTN: "0" | ||
targetRequests: 1024 | ||
resourceProfile: amd-gpu-mi300x:1 |