Closed-character commited on
Commit
8179efc
1 Parent(s): b166804

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -36,7 +36,7 @@ import torch
36
  from transformers import AutoModelForCausalLM, AutoTokenizer
37
 
38
  model_name_or_path = "losed-Character/Peach-9B-8k-Roleplay"
39
- tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
40
  model = AutoModelForCausalLM.from_pretrained(
41
  model_name_or_path, torch_dtype=torch.bfloat16,
42
  trust_remote_code=True, device_map="auto")
 
36
  from transformers import AutoModelForCausalLM, AutoTokenizer
37
 
38
  model_name_or_path = "losed-Character/Peach-9B-8k-Roleplay"
39
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True, return_tensors="pt")
40
  model = AutoModelForCausalLM.from_pretrained(
41
  model_name_or_path, torch_dtype=torch.bfloat16,
42
  trust_remote_code=True, device_map="auto")