Update README.md

pull/7/head
Shuo Zhang 2023-07-06 16:37:59 +08:00 committed by GitHub
parent ce02dcf54f
commit c4d1d96c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ python convert2hf.py --src_folder origin_ckpt/ --tgt_folder hf_ckpt/ --tokenizer
After conversion, it can be loaded as transformers by the following code
```python
>>> from transformers import AutoTokenizer, AutoModel
>>> model = AutoModel.from_pretrained("hf_ckpt/", trust_remote_code=True, device='cuda')
>>> model = AutoModel.from_pretrained("hf_ckpt/", trust_remote_code=True).cuda()
```