Portx commited on
Commit
dbe47c9
·
verified ·
1 Parent(s): e016f98

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +16 -6
handler.py CHANGED
@@ -2,13 +2,23 @@ import sys
2
  from subprocess import run
3
 
4
 
5
- run("pip install --upgrade pip", shell=True, check=True)
6
- run("pip uninstall torch -y", shell=True, check=True)
7
- run("pip uninstall torch -y", shell=True, check=True)
8
- run("pip install torch", shell=True, check=True)
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- run("pip uninstall unsloth unsloth_zoo torch -y", shell=True, check=True)
11
- run("pip install unsloth unsloth_zoo --no-cache-dir --upgrade", shell=True, check=True)
12
 
13
  #run("pip install --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
14
  #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 torch -y", shell=True, check=True)
7
+ #run("pip uninstall torch -y", shell=True, check=True)
8
+ #run("pip install torch", shell=True, check=True)
9
+
10
+ #run("pip install unsloth unsloth_zoo --no-cache-dir --upgrade", shell=True, check=True)
11
+ #run("pip uninstall unsloth unsloth_zoo torch -y", shell=True, check=True)
12
+
13
+ run("pip install unsloth", shell=True, check=True)
14
+ run("pip uninstall unsloth -y && pip install --upgrade --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git", shell=True, check=True)
15
+ run("pip install --no-deps bitsandbytes accelerate xformers==0.0.29 peft trl triton", shell=True, check=True)
16
+ run("pip install --no-deps cut_cross_entropy unsloth_zoo", shell=True, check=True)
17
+ run("pip install sentencepiece protobuf datasets huggingface_hub hf_transfer", shell=True, check=True)
18
+ run("pip install --no-deps unsloth", shell=True, check=True)
19
+
20
+
21
 
 
 
22
 
23
  #run("pip install --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)
24
  #run("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124", shell=True, check=True)