diwank commited on
Commit
2f31084
·
1 Parent(s): 8acf3fd

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +1 -1
chat.py CHANGED
@@ -52,7 +52,7 @@ tokenizer_id = "julep-ai/samantha-33b"
52
 
53
  print("Loading model...")
54
  model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
55
- tokenizer = AutoTokenizer.from_pretrained(tokenizer_id, use_fast=False)
56
 
57
  # warmup
58
  model.generate(**tokenizer("Hello", return_tensors="pt").to(0), max_new_tokens=2)
 
52
 
53
  print("Loading model...")
54
  model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
55
+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_id, use_fast=False, clean_up_tokenization_spaces=True)
56
 
57
  # warmup
58
  model.generate(**tokenizer("Hello", return_tensors="pt").to(0), max_new_tokens=2)