Skip to content

How to avoid recomputation #6245

Closed Answered by mariosasko
aihao2000 asked this question in Q&A
Discussion options

You must be logged in to vote

The default formatting returns the built-in types as values (lists, dictionaries, etc.). To get torch tensors, use .set_format("pt") on the dataset object.

Changing num_proc in many scenarios leads to a slightly different result (e.g., tokenization with truncation in the batched mode), which is why it requires re-computation, as we cannot be sure the result will be the same.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by aihao2000
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants