jay68 commited on
Commit
448f134
1 Parent(s): 8624221

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -1
README.md CHANGED
@@ -69,6 +69,11 @@ We trained models using datasets of different sizes (200,000, 600,000, and 1,000
69
  |LR_scheduler | linear |
70
 
71
  ## Use model
 
 
 
 
 
72
  BELLE can be easily loaded with AutoModelForCausalLM.
73
  ``` python
74
  from transformers import AutoTokenizer, AutoModelForCausalLM
@@ -142,8 +147,12 @@ BELLE模型以Bloomz-7b1-mt为基础,在 0.2M 条中文数据上,结合Stanf
142
  |LR_scheduler | linear |
143
 
144
  ## 使用模型
145
- 通过AutoModelForCausalLM即可直接载入模型并使用。
 
 
 
146
 
 
147
  ``` python
148
  from transformers import AutoTokenizer, AutoModelForCausalLM
149
  import sys
 
69
  |LR_scheduler | linear |
70
 
71
  ## Use model
72
+ Please note that the input should be formatted as follows in both **training** and **inference**.
73
+ ``` python
74
+ Human: {input} \n\nAssistant:
75
+ ```
76
+
77
  BELLE can be easily loaded with AutoModelForCausalLM.
78
  ``` python
79
  from transformers import AutoTokenizer, AutoModelForCausalLM
 
147
  |LR_scheduler | linear |
148
 
149
  ## 使用模型
150
+ 请注意,在训练和推理时,模型的输入应该处理成如下形式:
151
+ ``` python
152
+ Human: {input} \n\nAssistant:
153
+ ```
154
 
155
+ 通过AutoModelForCausalLM即可直接载入模型并使用。
156
  ``` python
157
  from transformers import AutoTokenizer, AutoModelForCausalLM
158
  import sys