USE_CUDA118 from ENV remains null one_click.py + cuda-toolkit (#4352)
This commit is contained in:
parent
cd45635f53
commit
c18504f369
2 changed files with 10 additions and 10 deletions
|
|
@ -70,9 +70,9 @@
|
|||
"\n",
|
||||
" textgen_requirements = open('requirements.txt').read().splitlines()\n",
|
||||
" if is_cuda117:\n",
|
||||
" textgen_requirements = [req.replace('+cu121', '+cu117').replace('torch2.1', 'torch2.0') for req in textgen_requirements]\n",
|
||||
" textgen_requirements = [req.replace('+cu121', '+cu117').replace('+cu122', '+cu117').replace('torch2.1', 'torch2.0') for req in textgen_requirements]\n",
|
||||
" elif is_cuda118:\n",
|
||||
" textgen_requirements = [req.replace('+cu121', '+cu118') for req in textgen_requirements]\n",
|
||||
" textgen_requirements = [req.replace('+cu121', '+cu118').replace('+cu122', '+cu118') for req in textgen_requirements]\n",
|
||||
" with open('temp_requirements.txt', 'w') as file:\n",
|
||||
" file.write('\\n'.join(textgen_requirements))\n",
|
||||
"\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue