Skip to content

Commit

Permalink
Merge pull request #587 from JieShenAI/patch-2
Browse files Browse the repository at this point in the history
Update 4.mdx
  • Loading branch information
merveenoyan authored Nov 22, 2023
2 parents ce2b5e7 + 333d7fe commit e6fadfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapters/zh-CN/chapter7/4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def preprocess_function(examples):
model_inputs = tokenizer(
inputs, text_target=targets, max_length=max_length, truncation=True
)
return model_inputs
```

请注意,我们为输入和输出设置了相同的最大长度。由于我们处理的文本看起来很短,我们使用 128。
Expand Down

0 comments on commit e6fadfa

Please sign in to comment.