Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[s2s] clean up + doc #6184

Merged
merged 3 commits into from
Aug 1, 2020
Merged

[s2s] clean up + doc #6184

merged 3 commits into from
Aug 1, 2020

Conversation

stas00
Copy link
Contributor

@stas00 stas00 commented Aug 1, 2020

this is a follow up to #6149

  • there was no need to add newly added options to finetune.sh - reverted that change
  • added a hint to users how to get all the options (--help)

@sshleifer

this is a follow up to huggingface#6149
- there was no need to add newly added options to finetune.sh - reverted that change
- added a hint to users how to get all the options (--help)
@stas00 stas00 changed the title [s2s] clean up [s2s] clean up + doc Aug 1, 2020
@codecov
Copy link

codecov bot commented Aug 1, 2020

Codecov Report

Merging #6184 into master will increase coverage by 0.20%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6184      +/-   ##
==========================================
+ Coverage   78.29%   78.50%   +0.20%     
==========================================
  Files         146      146              
  Lines       26607    26607              
==========================================
+ Hits        20832    20887      +55     
+ Misses       5775     5720      -55     
Impacted Files Coverage Δ
src/transformers/modeling_tf_mobilebert.py 23.38% <0.00%> (-73.39%) ⬇️
src/transformers/modeling_tf_flaubert.py 24.22% <0.00%> (-63.98%) ⬇️
src/transformers/file_utils.py 80.30% <0.00%> (+0.25%) ⬆️
src/transformers/data/processors/utils.py 27.63% <0.00%> (+1.31%) ⬆️
src/transformers/tokenization_xlnet.py 90.09% <0.00%> (+1.80%) ⬆️
src/transformers/generation_tf_utils.py 86.71% <0.00%> (+2.50%) ⬆️
src/transformers/tokenization_roberta.py 98.63% <0.00%> (+2.73%) ⬆️
src/transformers/training_args.py 81.00% <0.00%> (+14.00%) ⬆️
src/transformers/data/processors/glue.py 49.09% <0.00%> (+17.09%) ⬆️
src/transformers/modeling_tf_gpt2.py 95.32% <0.00%> (+23.67%) ⬆️
... and 7 more

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 8edfaaa...566b357. Read the comment docs.

To see all the possible command line options, run:

```bash
./finetune.sh --help
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not python finetune.py --help? makes more sense to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way works, but README.md uses the bash script in its usage examples:
https://github.com/huggingface/transformers/blob/master/examples/seq2seq/README.md#finetuning-training-params
Whatever you choose ideally let's make it consistent?

--encoder_layerdrop 0.1 \
--decoder_layerdrop 0.1 \
--dropout 0.1 \
--attention_dropout 0.1 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I would make dropout = 0.1, and other types of dropout = 0 (but still list them here). Just a suggestion. @sshleifer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That resulted will be produced by BartConfig:

        encoder_layerdrop=0.0,
        decoder_layerdrop=0.0,
        attention_dropout=0.0,
        dropout=0.1,

@sshleifer sshleifer merged commit d8dbf3b into huggingface:master Aug 1, 2020
Mehrad0711 pushed a commit to Mehrad0711/transformers that referenced this pull request Aug 3, 2020
Co-authored-by: Sam Shleifer <sshleifer@gmail.com>
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.

None yet

3 participants