You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to setup local run on my mac and got this error when running: "torchserve --start --ts-config config.local.properties --foreground" And got a no module named "nvgpu" error.
Doing "pip install nvgpu" I get this error repeating:
2024-06-10T19:29:06,095 [WARN ] pool-3-thread-1 org.pytorch.serve.metrics.MetricCollector - worker pid is not available yet.
2024-06-10T19:29:06,384 [ERROR] Thread-6 org.pytorch.serve.metrics.MetricCollector - Traceback (most recent call last):
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/metric_collector.py", line 27, in
system_metrics.collect_all(sys.modules['ts.metrics.system_metrics'], arguments.gpu)
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/system_metrics.py", line 119, in collect_all
value(num_of_gpu)
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/system_metrics.py", line 71, in gpu_utilization
info = nvgpu.gpu_info()
^^^^^^^^^^^^^^^^
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/nvgpu/init.py", line 7, in gpu_info
gpus = [line for line in _run_cmd(['nvidia-smi', '-L']) if line]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/nvgpu/init.py", line 32, in _run_cmd
output = subprocess.check_output(cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-smi'
What do I do?
The text was updated successfully, but these errors were encountered:
Hello,
I was trying to setup local run on my mac and got this error when running: "torchserve --start --ts-config config.local.properties --foreground" And got a no module named "nvgpu" error.
Doing "pip install nvgpu" I get this error repeating:
2024-06-10T19:29:06,095 [WARN ] pool-3-thread-1 org.pytorch.serve.metrics.MetricCollector - worker pid is not available yet.
2024-06-10T19:29:06,384 [ERROR] Thread-6 org.pytorch.serve.metrics.MetricCollector - Traceback (most recent call last):
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/metric_collector.py", line 27, in
system_metrics.collect_all(sys.modules['ts.metrics.system_metrics'], arguments.gpu)
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/system_metrics.py", line 119, in collect_all
value(num_of_gpu)
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/ts/metrics/system_metrics.py", line 71, in gpu_utilization
info = nvgpu.gpu_info()
^^^^^^^^^^^^^^^^
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/nvgpu/init.py", line 7, in gpu_info
gpus = [line for line in _run_cmd(['nvidia-smi', '-L']) if line]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/test2/Yusha-rebase/yusha-app/AnimatedDrawings/torchserve/.venv/lib/python3.12/site-packages/nvgpu/init.py", line 32, in _run_cmd
output = subprocess.check_output(cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-smi'
What do I do?
The text was updated successfully, but these errors were encountered: