transformers/utils
Jeremy Fisher 0235bc57ab
Fix and improve CTRL doctests (#16573)
* Improve CTRL doctests

* Fix `CTRLForSequenceClassification` flakiness with inconsistent losses

* Remove unused

* Fixup

* Add CTRL to documentation_tests.txt

* Fix control code not being first

* Add output assertions

* Change from sshleifer/tiny-ctrl -> ctrl

* Run `make fixup`

* apply `list` to output logits shape for clarity

* Reduce output loss precision to make assertion more robust

* Add assertion of control code being first

* Fix docstyle

* upper case sentence following control code

* Weird bug fixes

* Add a better generation example

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
2022-04-13 15:44:31 +02:00
..
test_module Fix from_pretrained with default base_model_prefix (#15814) 2022-02-24 11:43:51 +01:00
tf_ops
check_copies.py Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
check_dummies.py Reorganize file utils (#16264) 2022-03-23 10:26:33 -04:00
check_inits.py Ignore empty subfolders when identifying submodules (#15204) 2022-01-18 09:48:46 -05:00
check_repo.py Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
check_table.py Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
check_tf_ops.py
custom_init_isort.py
documentation_tests.txt Fix and improve CTRL doctests (#16573) 2022-04-13 15:44:31 +02:00
download_glue_data.py
get_modified_files.py Updates the default branch from master to main (#16326) 2022-03-23 03:46:59 -04:00
notification_service.py Framework split model report (#15825) 2022-02-25 12:00:00 -05:00
notification_service_deprecated.py Fix the push run (#15807) 2022-02-24 19:30:17 +01:00
notification_service_doc_tests.py Add Slack notification support for doc tests (#16253) 2022-03-21 11:33:18 +01:00
prepare_for_doc_test.py [DocTests Speech] Add doc tests for all speech models (#15031) 2022-01-27 14:29:31 +01:00
print_env_pt.py
release.py Rename master to main for notebooks links and leftovers (#16397) 2022-03-25 09:12:23 -04:00
tests_fetcher.py Add tests for no_trainer and fix existing examples (#16656) 2022-04-08 10:03:56 -04:00
update_metadata.py