Skip to content

Commit 5b887e7

Browse files
committed
feature: add GPU capability to local mode
1 parent c53bbbc commit 5b887e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sagemaker/local/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ def _create_docker_host(self, host, environment, optml_subdirs, command, volumes
746746
"volumes": [v.map for v in optml_volumes],
747747
"environment": environment,
748748
"networks": {"sagemaker-local": {"aliases": [host]}},
749+
"deploy": {"resources": {"reservations": {"devices": [{"capabilities": ["gpu"]}]}}},
749750
}
750751

751752
if command != "process":

0 commit comments

Comments
 (0)