Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
|
@@ -2,7 +2,9 @@ import sys
|
|
| 2 |
from subprocess import run
|
| 3 |
|
| 4 |
|
|
|
|
| 5 |
run("pip uninstall unsloth unsloth_zoo torch -y", shell=True, check=True)
|
|
|
|
| 6 |
run("pip install torch unsloth unsloth_zoo --no-cache-dir --upgrade", shell=True, check=True)
|
| 7 |
#run("pip install --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
|
| 8 |
#run("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
|
|
|
|
| 2 |
from subprocess import run
|
| 3 |
|
| 4 |
|
| 5 |
+
run("pip install --upgrade pip", shell=True, check=True)
|
| 6 |
run("pip uninstall unsloth unsloth_zoo torch -y", shell=True, check=True)
|
| 7 |
+
run("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
|
| 8 |
run("pip install torch unsloth unsloth_zoo --no-cache-dir --upgrade", shell=True, check=True)
|
| 9 |
#run("pip install --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
|
| 10 |
#run("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
|