Skip to content

Commit

Permalink
remove pyrsmi and nvgpu deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Rony Leppänen committed Nov 26, 2024
1 parent 61da32e commit 0a4d628
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions requirements/common_gpu.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/common_rocm.txt

This file was deleted.

10 changes: 0 additions & 10 deletions ts_scripts/install_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,6 @@ def install_python_packages(
# developer.txt also installs packages from common.txt
os.system(f"{sys.executable} -m pip install -U -r {requirements_file_path}")

# Install dependencies for NVIDIA GPU
if not isinstance(cuda_version, type(None)):
gpu_requirements_file = os.path.join("requirements", "common_gpu.txt")
os.system(f"{sys.executable} -m pip install -U -r {gpu_requirements_file}")

# Install dependencies for AMD GPU
if not isinstance(rocm_version, type(None)):
gpu_requirements_file = os.path.join("requirements", "common_rocm.txt")
os.system(f"{sys.executable} -m pip install -U -r {gpu_requirements_file}")

# Install dependencies for Inferentia2
if args.neuronx:
neuronx_requirements_file = os.path.join("requirements", "neuronx.txt")
Expand Down
2 changes: 1 addition & 1 deletion ts_scripts/print_env_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run_with_pip(pip):
elif package_name == "torch":
grep_cmd = 'grep "' + package_name + '"'
else:
grep_cmd = r'grep "numpy\|pytest\|pylint\|transformers\|psutil\|wheel\|requests\|sentencepiece\|pillow\|captum\|nvgpu\|pygit2\|torch"'
grep_cmd = r'grep "numpy\|pytest\|pylint\|transformers\|psutil\|wheel\|requests\|sentencepiece\|pillow\|captum\|pygit2\|torch"'
return run_and_read_all(pip + " list --format=freeze | " + grep_cmd)

out = run_with_pip("pip3")
Expand Down

0 comments on commit 0a4d628

Please sign in to comment.