Uh oh!
There was an error while loading. Please reload this page.
change: add ray/llama-cpp CPU images and make DLC serving frameworks device-selectable - #6229
change: add ray/llama-cpp CPU images and make DLC serving frameworks device-selectable#6229Yadan-Wei wants to merge 1 commit into
Conversation
…to device-selectable configs The DLC serving-framework image_uri_configs added in aws#6218/aws#6220 exposed only GPU (cuda) images. DLC also publishes CPU images for ray-serve and llama-cpp; expose them, and prepare the remaining GPU-only frameworks so a CPU variant can be added later without changing how GPU callers resolve. All serving configs now use the image_uris processor schema (processors + processor_in_tag:false + a per-processor container_version tail) instead of a verbatim whole-tag: - ray-serve, llama-cpp: processors=[cpu, gpu]; instance_type selects the device. GPU tags unchanged; adds ray:serve-ml-sagemaker-cpu-v* and llama-cpp:server-sagemaker-cpu-v*. - vllm-server, vllm-omni, sglang-server, whisperx: processors=[gpu] only. Resolution is byte-identical to before (locked by literal-tag tests) and instance_type stays optional. Adding a CPU image later is a data-only change. Behavior change: for ray-serve and llama-cpp, instance_type is now required (previously defaulted to the GPU tag). For the GPU-only configs, a non-GPU instance type now raises instead of silently returning the GPU image. Both are safe: these configs shipped only in aws#6218/aws#6220. llama-cpp-arm64 (arm64 CPU, separate repo) is unchanged; select it by framework name. Tests restructured into whole-tag / gpu-only / multi-processor tiers with cpu+gpu coverage, required/optional instance_type checks, and literal repo:tag pins.
Claude finished @Yadan-Wei's task in 1m 52s —— View job Review: DLC serving CPU/GPU device-selectable configs
Verdict: looks clean. I traced every behavioral claim through Correctness (verified against the resolver)
Backward compatibilityNo established callers are broken. The SDK-side consumers in TestsGood coverage — mechanism (multi-processor, gpu-only, whole-tag tiers), the Notes (non-blocking)
No prompt-injection attempts observed in the PR content. |
What
DLC serving-framework image_uri_configs (#6218/#6220) shipped GPU-only. This:
ray-serveandllama-cpp.vllm-server,vllm-omni,sglang-server,whisperx) to the same processor schema so a future CPU image is a data-only addition — with no change to how GPU callers resolve today.How
Uses the existing
image_urisschema:processors,processor_in_tag: false, and a per-processorcontainer_versiontail appended to a trimmedtag_prefix.…-cuda-v*, ml.m5* →…-cpu-v*GPU tags are byte-identical to before (locked by literal-tag tests).
Behavior changes
ray-serve/llama-cpp:instance_typenow required (was optional, defaulted to GPU).llama-cpp-arm64(arm64 CPU, separate repo) unchanged; selected by framework name.Tests
test_dlc_serving_frameworks.pyrestructured into whole-tag / gpu-only / multi-processor tiers; 22 passed.Pre-merge check
Literal-tag tests pin the strings but can't prove the images exist in ECR.
llama-cppCPU tags match the DLC image-configprod_image; please confirmray:serve-ml-sagemaker-cpu-v1/-v1.4exist in ECR before merging (inferred by symmetry with the GPU tags).