Lysandre
a75c64d80c
Black 20 release
2020-08-26 17:20:22 +02:00
Lysandre Debut
77abd1e79f
Centralize logging ( #6434 )
...
* Logging
* Style
* hf_logging > utils.logging
* Address @thomwolf's comments
* Update test
* Update src/transformers/benchmark/benchmark_utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
* Revert bad change
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
2020-08-26 11:10:36 -04:00
Patrick von Platen
fe0b85e77a
[EncoderDecoder] Add functionality to tie encoder decoder weights ( #6538 )
...
* start adding tie encoder to decoder functionality
* finish model tying
* make style
* Apply suggestions from code review
* fix t5 list including cross attention
* apply sams suggestions
* Update src/transformers/modeling_encoder_decoder.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
* add max depth break point
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
2020-08-19 14:23:45 +02:00
Patrick von Platen
3425936643
[EncoderDecoderModel] add a add_cross_attention boolean to config ( #6377 )
...
* correct encoder decoder model
* Apply suggestions from code review
* apply sylvains suggestions
2020-08-10 19:46:48 +02:00
Andrés Felipe Cruz
7ea9b2db37
Encoder decoder config docs ( #6195 )
...
* Adding docs for how to load encoder_decoder pretrained model with individual config objects
* Adding docs for loading encoder_decoder config from pretrained folder
* Fixing W293 blank line contains whitespace
* Update src/transformers/modeling_encoder_decoder.py
* Update src/transformers/modeling_encoder_decoder.py
* Update src/transformers/modeling_encoder_decoder.py
* Apply suggestions from code review
model file should only show examples for how to load save model
* Update src/transformers/configuration_encoder_decoder.py
* Update src/transformers/configuration_encoder_decoder.py
* fix space
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2020-08-04 09:23:28 +02:00
Andrés Felipe Cruz
018d61fa24
Moving transformers package import statements to relative imports in some files ( #5796 )
...
* Moving rom transformers statements to relative imports in some files under src/
* Import order
Co-authored-by: Lysandre Debut <lysandre@huggingface.co >
2020-07-28 04:19:17 -04:00
Lysandre Debut
364a5ae1f0
Refactor Code samples; Test code samples ( #5036 )
...
* Refactor code samples
* Test docstrings
* Style
* Tokenization examples
* Run rust of tests
* First step to testing source docs
* Style and BART comment
* Test the remainder of the code samples
* Style
* let to const
* Formatting fixes
* Ready for merge
* Fix fixture + Style
* Fix last tests
* Update docs/source/quicktour.rst
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
* Addressing @sgugger's comments + Fix MobileBERT in TF
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
2020-06-25 16:46:00 -04:00
Mikael Souza
3fe75c7f70
Fixing docs for Encoder Decoder Config ( #5171 )
2020-06-22 10:51:17 +02:00
Patrick von Platen
8cca875569
[EncoderDecoderConfig] automatically set decoder config to decoder ( #4809 )
...
* automatically set decoder config to decoder
* add more tests
2020-06-05 23:16:37 +02:00
Patrick von Platen
9a0a8c1c6f
add examples to doc ( #4045 )
2020-04-28 16:33:23 +02:00
Patrick von Platen
fa49b9afea
Clean Encoder-Decoder models with Bart/T5-like API and add generate possibility ( #3383 )
...
* change encoder decoder style to bart & t5 style
* make encoder decoder generation dummy work for bert
* make style
* clean init config in encoder decoder
* add tests for encoder decoder models
* refactor and add last tests
* refactor and add last tests
* fix attn masks for bert encoder decoder
* make style
* refactor prepare inputs for Bert
* refactor
* finish encoder decoder
* correct typo
* add docstring to config
* finish
* add tests
* better naming
* make style
* fix flake8
* clean docstring
* make style
* rename
2020-04-28 15:11:09 +02:00