Spaces:
Runtime error
Runtime error
Delete setup.py
Browse files
setup.py
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
import subprocess
|
2 |
-
import sys
|
3 |
-
|
4 |
-
def install(package):
|
5 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
6 |
-
|
7 |
-
def setup_environment():
|
8 |
-
print("Installing required packages...")
|
9 |
-
install('git+https://github.com/unslothai/unsloth.git#egg=unsloth[colab-new]')
|
10 |
-
install('--no-deps xformers')
|
11 |
-
install('trl<0.9.0')
|
12 |
-
install('peft')
|
13 |
-
install('accelerate')
|
14 |
-
install('bitsandbytes')
|
15 |
-
print("Packages installed successfully.")
|
16 |
-
|
17 |
-
if __name__ == "__main__":
|
18 |
-
setup_environment()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|