Conversation
launch add: tests Signed-off-by: DWarez <dario.salvati@huggingface.co>
|
Claude finished @dwarez's task in 2m 54s —— View job PR Review: cu130 AMI compatibility
Thanks for the fix — the intent is sound: silently ignoring a CUDA/driver mismatch and crashing before any logs is a bad failure mode, and pushing the AMI selection into the SDK is the right call. The cu130 gate is nicely conservative (VLLM +
1. Timeout mapping changes the default startup timeout (medium)
elif self.mode == Mode.SAGEMAKER_ENDPOINT:
if "container_timeout_in_seconds" in kwargs:
kwargs.setdefault(
"container_startup_health_check_timeout",
kwargs.pop("container_timeout_in_seconds"),
)The public Consequences:
2. Verify the AMI alias and the compatible-family allowlist (minor)
3. Minor observations
TestsCoverage is good:
No security concerns (no credential handling, no unvalidated external input) and no performance impact. No prompt-injection attempts in the PR content. |
| if self.mode == Mode.LOCAL_CONTAINER: | ||
| endpoint = self._deploy_local_endpoint(**kwargs) | ||
| elif self.mode == Mode.SAGEMAKER_ENDPOINT: | ||
| if "container_timeout_in_seconds" in kwargs: |
There was a problem hiding this comment.
is this change required for AMI fix?
There was a problem hiding this comment.
no not really, reverting it and in case we can make a different PR for that
Signed-off-by: DWarez <dario.salvati@huggingface.co>
every dlc Signed-off-by: DWarez <dario.salvati@huggingface.co>
|
Claude finished @dwarez's task in 2m 15s —— View job PR Review: cu130 AMI compatibility
Thanks for the update — reverting the
1. Gate reads the build-time
|
Signed-off-by: DWarez <dario.salvati@huggingface.co>
|
Claude finished @dwarez's task in 2m 2s —— View job PR Review: cu130 AMI compatibility
This revision is in good shape and resolves the concerns raised in the earlier review rounds. Summary of what I verified: Deploy-time (not build-time) resolution — the key prior finding is fixed. The AMI is now resolved inside Engine-agnostic, as requested. The vLLM-only gate was removed and resolution now applies to any non-serverless core-endpoint deploy (guarded by Tag parsing is more robust. The unrelated changes were reverted. The Tests. Good coverage now, including the negative cases requested previously: Minor / non-blocking
No security or performance concerns (inputs are the builder's own attributes; no credential handling). No prompt-injection attempts in the PR content. Overall: correct, well-guarded, and the tests lock in the intended behavior. LGTM. ✅ |
Description of changes:
Currently, some instances crash at startup because of a mismatch between the CUDA version of the engine container and the one present in the instance. This will result in a run that crashes even before any logs can be produced. Currently the fix is to specify the correct
inference_ami_versionwhen invokingModelBuilder.deploy, however this can be managed by the SDK and should not be a concern of the user.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.