Skip to content

Commit 0d46b0e

Browse files
authored
Merge pull request #686 from alex-liang-kh/dev/v0.7.0
update model deployment cli.
2 parents c226299 + 80d903f commit 0d46b0e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

python/fedml/cli/model_deployment/device_model_deployment.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ def start_deployment(model_storage_local_path, inference_model_name, inference_e
3838
if sys_name == "Linux":
3939
os.system(sudo_prefix + "apt-get update")
4040
os.system(sudo_prefix + "apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin")
41+
os.system("distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
42+
&& curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
43+
&& curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | \
44+
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
45+
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list")
46+
os.system(sudo_prefix + "apt-get update")
4147
os.system(sudo_prefix + "apt-get install -y nvidia-docker2")
4248
os.system(sudo_prefix + "systemctl restart docker")
4349

python/fedml/cli/model_deployment/device_server_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def run(self):
200200
self.run_id, model_id, model_name, "",
201201
str(ServerConstants.MODEL_INFERENCE_DEFAULT_PORT)),
202202
should_capture_stdout=False,
203-
should_capture_stderr=True
203+
should_capture_stderr=False
204204
)
205205
ServerConstants.save_learning_process(process.pid)
206206

@@ -220,7 +220,7 @@ def run(self):
220220
"model_inference_url"
221221
],
222222
should_capture_stdout=False,
223-
should_capture_stderr=True
223+
should_capture_stderr=False
224224
)
225225
ServerConstants.save_learning_process(self.monitor_process.pid)
226226
self.release_client_mqtt_mgr()

0 commit comments

Comments
 (0)