Update README.md

pull/9/head
Aohan Zeng 2023-03-14 02:48:06 +08:00 committed by GitHub
parent 6e59c8975a
commit 21d8c78edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ ChatGLM-6B 是一个开源的、支持中英双语问答的对话语言模型,
可以通过如下代码调用 ChatGLM-6B 模型来生成对话:
```ipython
```python
>>> from transformers import AutoTokenizer, AutoModel
>>> tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
>>> model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()