shibing624 commited on
Commit
f08bc4d
1 Parent(s): b2437ca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -37,7 +37,7 @@ pip install -U textgen
37
 
38
  ```python
39
  from textgen import ChatGlmModel
40
- model = ChatGlmModel("chatglm", "THUDM/chatglm-6b", lora_name="shibing624/chatglm-6b-csc-zh-lora")
41
  r = model.predict(["对下面中文拼写纠错:\n少先队员因该为老人让坐。\n答:"])
42
  print(r) # ['少先队员应该为老人让座。\n错误字:因,坐']
43
  ```
 
37
 
38
  ```python
39
  from textgen import ChatGlmModel
40
+ model = ChatGlmModel("chatglm", "THUDM/chatglm-6b", peft_name="shibing624/chatglm-6b-csc-zh-lora")
41
  r = model.predict(["对下面中文拼写纠错:\n少先队员因该为老人让坐。\n答:"])
42
  print(r) # ['少先队员应该为老人让座。\n错误字:因,坐']
43
  ```