Spaces:
Runtime error
Runtime error
Update model.py (#1)
Browse files- Update model.py (0b262e151f1ccfd32d1a19ae9daa34ecbb9636c3)
Co-authored-by: Nguyen Tan Phat <[email protected]>
model.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import os
|
2 |
-
|
3 |
-
|
|
|
|
|
4 |
|
5 |
|
6 |
from unsloth import FastLanguageModel
|
|
|
1 |
import os
|
2 |
+
str_cmd1 = 'pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
|
3 |
+
str_cmd2 = 'pip install --no-deps xformers "trl<0.9.0" peft accelerate bitsandbytes'
|
4 |
+
os.system(str_cmd1)
|
5 |
+
os.system(str_cmd2)
|
6 |
|
7 |
|
8 |
from unsloth import FastLanguageModel
|