Преглед изворни кода

Remove max_length from tokenization (#604)

Matthias Reso пре 1 година
родитељ
комит
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",