liu121 commited on
Commit
587bc38
·
verified ·
1 Parent(s): 03f31bf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -3
README.md CHANGED
@@ -1,3 +1,28 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # Checkpoint for illmac (https://github.com/deeplearningplus/iLLMAC)
6
+
7
+ # 1. Use transformers
8
+
9
+ ```python
10
+ #pip install transformers
11
+ #pip install torch
12
+ #pip install tiktoken
13
+ #pip install sentencepiece
14
+ ## Install any other packages you need.
15
+
16
+ import torch
17
+ import transformers
18
+
19
+ model = transformers.AutoModelForCausalLM.from_pretrained("liu121/illmac")
20
+ tokenizer = transformers.AutoTokenizer.from_pretrained("liu121/illmac")
21
+
22
+ ```
23
+
24
+ # 2. Save to local dir
25
+ ```shell
26
+ huggingface-cli download --resume-download liu121/illmac --local-dir illmac --local-dir-use-symlinks False
27
+
28
+ ```