Update README.md
Browse files
README.md
CHANGED
@@ -1,23 +1,31 @@
|
|
1 |
---
|
2 |
-
language:
|
3 |
-
- zh
|
4 |
-
license: apache-2.0
|
5 |
library_name: transformers
|
6 |
tags:
|
7 |
- trl
|
8 |
- sft
|
|
|
9 |
datasets:
|
10 |
- Mike0307/alpaca-en-zhtw
|
|
|
|
|
11 |
pipeline_tag: text-generation
|
12 |
---
|
13 |
|
14 |
|
15 |
## Download the model
|
16 |
|
17 |
-
The base-model *microsoft/Phi-3-mini-4k-instruct* relies on
|
18 |
-
```bash
|
19 |
-
pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers
|
20 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
```python
|
23 |
import torch
|
|
|
1 |
---
|
|
|
|
|
|
|
2 |
library_name: transformers
|
3 |
tags:
|
4 |
- trl
|
5 |
- sft
|
6 |
+
license: apache-2.0
|
7 |
datasets:
|
8 |
- Mike0307/alpaca-en-zhtw
|
9 |
+
language:
|
10 |
+
- zh
|
11 |
pipeline_tag: text-generation
|
12 |
---
|
13 |
|
14 |
|
15 |
## Download the model
|
16 |
|
17 |
+
The base-model *microsoft/Phi-3-mini-4k-instruct* currently relies on latest dev-version transformers and torch:
|
|
|
|
|
18 |
```
|
19 |
+
pip install git+https://github.com/huggingface/transformers
|
20 |
+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
|
21 |
+
```
|
22 |
+
|
23 |
+
Additionally, LoRA model requires the peft package:
|
24 |
+
```
|
25 |
+
pip install peft
|
26 |
+
```
|
27 |
+
|
28 |
+
Now, let's start to download the model.
|
29 |
|
30 |
```python
|
31 |
import torch
|