Skip to content

Conversation

@ethanjperez
Copy link
Contributor

convert_examples_to_fes atures sets pad_token=0 by default, which is correct for BERT but incorrect for RoBERTa (pad_token=1) and XLNet (pad_token=5). I think the other arguments to convert_examples_to_features are correct, but it might be helpful if someone checked who is more familiar with this part of the codebase.

`convert_examples_to_fes atures` sets `pad_token=0` by default, which is correct for BERT but incorrect for RoBERTa (`pad_token=1`) and XLNet (`pad_token=5`). I think the other arguments to `convert_examples_to_features` are correct, but it might be helpful if someone checked who is more familiar with this part of the codebase.
@codecov-io
Copy link

codecov-io commented Apr 4, 2020

Codecov Report

Merging #3631 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3631      +/-   ##
==========================================
- Coverage   78.30%   78.28%   -0.02%     
==========================================
  Files         104      104              
  Lines       17627    17627              
==========================================
- Hits        13802    13800       -2     
- Misses       3825     3827       +2     
Impacted Files Coverage Δ
src/transformers/modeling_tf_utils.py 93.45% <0.00%> (-0.17%) ⬇️
src/transformers/modeling_utils.py 91.97% <0.00%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 243e687...284fa1b. Read the comment docs.

@julien-c julien-c merged commit e52d125 into huggingface:master Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants