psynote123 commited on
Commit
f83ab7d
·
verified ·
1 Parent(s): 8d4521e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -97,7 +97,7 @@ chat_prompt = tokenizer.apply_chat_template(
97
  inputs = tokenizer(chat_prompt, return_tensors="pt")
98
  inputs.to(device)
99
 
100
- with torch.inference_mode:
101
  generate_ids = model.generate(**inputs, max_length=500)
102
 
103
  input_len = inputs['input_ids'].shape[1]
 
97
  inputs = tokenizer(chat_prompt, return_tensors="pt")
98
  inputs.to(device)
99
 
100
+ with torch.inference_mode():
101
  generate_ids = model.generate(**inputs, max_length=500)
102
 
103
  input_len = inputs['input_ids'].shape[1]