Skip to content

Commit

Permalink
Update 4.mdx
Browse files Browse the repository at this point in the history
You forgot to write a return for this function.
  • Loading branch information
JieShenAI authored Jun 24, 2023
1 parent 0018bb4 commit 333d7fe
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 333d7fe

Please sign in to comment.