Mike0307 commited on
Commit
b3d5fef
1 Parent(s): a7120a1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -6
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 development-version transformers:
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