浏览代码

Remove max_length from tokenization (#604)

Matthias Reso 8 月之前
父节点
当前提交
01a20d1e86
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      recipes/quickstart/inference/local_inference/inference.py

+ 0 - 1
recipes/quickstart/inference/local_inference/inference.py

@@ -89,7 +89,6 @@ def main(
 
         batch = tokenizer(
             user_prompt,
-            padding="max_length",
             truncation=True,
             max_length=max_padding_length,
             return_tensors="pt",