w8ay
/

Text Generation
Transformers
Safetensors
Chinese
qwen
custom_code
w8ay commited on
Commit
1aa73c9
·
verified ·
1 Parent(s): daf7261

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -21,8 +21,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
21
  import torch
22
  from peft import PeftModel
23
  device = 'auto'
24
- tokenizer = AutoTokenizer.from_pretrained("w8ay/secgpt1.5", trust_remote_code=True)
25
- model = AutoModelForCausalLM.from_pretrained("w8ay/secgpt1.5",
26
  trust_remote_code=True,
27
  device_map=device,
28
  torch_dtype=torch.float16)
 
21
  import torch
22
  from peft import PeftModel
23
  device = 'auto'
24
+ tokenizer = AutoTokenizer.from_pretrained("w8ay/secgpt1_5", trust_remote_code=True)
25
+ model = AutoModelForCausalLM.from_pretrained("w8ay/secgpt1_5",
26
  trust_remote_code=True,
27
  device_map=device,
28
  torch_dtype=torch.float16)