Skip to content

Commit

Permalink
Merge pull request #33 from ycjcl868/main
Browse files Browse the repository at this point in the history
docs: update README.md
  • Loading branch information
ZHangZHengEric authored Jul 27, 2023
2 parents c45a680 + 7a3c229 commit 3a487bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Llama2-Chat模型基于预训练模型进行了监督微调,具备更强的对
### 模型调用代码示例

```
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained('meta-llama/Llama-2-7b-chat-hf',device_map='auto',torch_dtype=torch.float16,load_in_8bit=True)
model =model.eval()
Expand Down

0 comments on commit 3a487bd

Please sign in to comment.