Spaces:
Runtime error
Runtime error
Steven Chen
commited on
Create setup.sh
Browse files
setup.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Clone and install LLaMA-Factory
|
| 4 |
+
git clone https://github.com/hiyouga/LLaMA-Factory.git
|
| 5 |
+
cd LLaMA-Factory
|
| 6 |
+
pip install .[torch,bitsandbytes] --quiet
|
| 7 |
+
|
| 8 |
+
# Install unsloth
|
| 9 |
+
pip install git+https://github.com/unslothai/unsloth.git --quiet
|
| 10 |
+
|
| 11 |
+
# Return to the root directory
|
| 12 |
+
cd ..
|