Safetensors
llama
Ray2333 commited on
Commit
739ac53
·
verified ·
1 Parent(s): 768d05b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -63,7 +63,7 @@ message = [
63
  ]
64
  message_template = tokenizer.apply_chat_template(message, tokenize=False)
65
 
66
- kwargs = {"padding": 'max_length', "truncation": True, "return_tensors": "pt"}
67
  tokens = tokenizer.encode_plus(message_template, **kwargs)
68
 
69
  with torch.no_grad():
 
63
  ]
64
  message_template = tokenizer.apply_chat_template(message, tokenize=False)
65
 
66
+ kwargs = {"padding": 'longest', "truncation": True, "return_tensors": "pt"}
67
  tokens = tokenizer.encode_plus(message_template, **kwargs)
68
 
69
  with torch.no_grad():