mymusise commited on
Commit
30f8de5
1 Parent(s): f9e5e5d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -3
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  ---
4
 
5
  - Loda LLM
6
 
7
- ```
8
  from modeling_chatglm import ChatGLMForConditionalGeneration
9
  import torch
10
 
@@ -15,9 +18,9 @@ model = ChatGLMForConditionalGeneration.from_pretrained("THUDM/chatglm-6b", trus
15
 
16
  - Load LoRA
17
 
18
- ```
19
  from peft import PeftModel
20
 
21
  model = PeftModel.from_pretrained(model, "mymusise/chatGLM-6B-alpaca-lora")
22
  torch.set_default_tensor_type(torch.cuda.FloatTensor)
23
- ```
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - tatsu-lab/alpaca
5
+ - shibing624/alpaca-zh
6
  ---
7
 
8
  - Loda LLM
9
 
10
+ ```python
11
  from modeling_chatglm import ChatGLMForConditionalGeneration
12
  import torch
13
 
 
18
 
19
  - Load LoRA
20
 
21
+ ```python
22
  from peft import PeftModel
23
 
24
  model = PeftModel.from_pretrained(model, "mymusise/chatGLM-6B-alpaca-lora")
25
  torch.set_default_tensor_type(torch.cuda.FloatTensor)
26
+ ```