Add lambdalabs instruction
Browse files
README.md
CHANGED
|
@@ -65,6 +65,60 @@ accelerate launch scripts/finetune.py examples/lora-openllama-3b/config.yml \
|
|
| 65 |
- `pip3 install -e .[gptq]` (next best if you don't need QLoRA, but want to use gptq)
|
| 66 |
- `pip3 install -e .[gptq_triton]`
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
### Dataset
|
| 69 |
|
| 70 |
Have dataset(s) in one of the following format (JSONL recommended):
|
|
|
|
| 65 |
- `pip3 install -e .[gptq]` (next best if you don't need QLoRA, but want to use gptq)
|
| 66 |
- `pip3 install -e .[gptq_triton]`
|
| 67 |
|
| 68 |
+
- LambdaLabs
|
| 69 |
+
<details>
|
| 70 |
+
|
| 71 |
+
<summary>Click to Expand</summary>
|
| 72 |
+
|
| 73 |
+
1. Install python
|
| 74 |
+
```bash
|
| 75 |
+
sudo apt install python3.9
|
| 76 |
+
|
| 77 |
+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
|
| 78 |
+
sudo update-alternatives --config python # pick 3.9 if given option
|
| 79 |
+
python -V # should be 3.9
|
| 80 |
+
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
2. Install pip
|
| 84 |
+
```bash
|
| 85 |
+
wget https://bootstrap.pypa.io/get-pip.py
|
| 86 |
+
python get-pip.py
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
3. Install torch
|
| 90 |
+
```bash
|
| 91 |
+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
4. Axolotl
|
| 95 |
+
```bash
|
| 96 |
+
git clone https://github.com/OpenAccess-AI-Collective/axolotl
|
| 97 |
+
cd axolotl
|
| 98 |
+
|
| 99 |
+
pip3 install -e . # change depend on needs
|
| 100 |
+
pip3 install protobuf==3.20.3
|
| 101 |
+
pip3 install -U requests
|
| 102 |
+
pip3 install -U --ignore-installed psutil
|
| 103 |
+
pip3 install -U scipy
|
| 104 |
+
pip3 install git+https://github.com/huggingface/peft.git # not for gptq
|
| 105 |
+
|
| 106 |
+
accelerate config
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
5. Set path
|
| 110 |
+
```bash
|
| 111 |
+
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
6. Finetune
|
| 115 |
+
```bash
|
| 116 |
+
# copy yaml to configs directory
|
| 117 |
+
accelerate launch scripts/finetune.py path/to/config.yml
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
</details>
|
| 121 |
+
|
| 122 |
### Dataset
|
| 123 |
|
| 124 |
Have dataset(s) in one of the following format (JSONL recommended):
|