Skip to content

Commit

Permalink
launch.py: make torch_index_url an envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed May 11, 2023
1 parent a09e1e6 commit dd3ca9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def run_extensions_installers(settings_file):


def prepare_environment():
torch_command = os.environ.get('TORCH_COMMAND', "pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118")
torch_index_url = os.environ.get('TORCH_INDEX_URL', "https://download.pytorch.org/whl/cu118")
torch_command = os.environ.get('TORCH_COMMAND', f"pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url {torch_index_url}")
requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")

xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.17')
Expand Down

0 comments on commit dd3ca9a

Please sign in to comment.