Files
HuggingFace_transformer/docs/source
Stas Bekman 7682e97702 [models] respect dtype of the model when instantiating it (#12316)
* [models] respect dtype of the model when instantiating it

* cleanup

* cleanup

* rework to handle non-float dtype

* fix

* switch to fp32 tiny model

* improve

* use dtype.is_floating_point

* Apply suggestions from code review

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* fix the doc

* recode to use explicit torch_dtype_auto_detect, torch_dtype args

* docs and tweaks

* docs and tweaks

* docs and tweaks

* merge 2 args, add docs

* fix

* fix

* better doc

* better doc

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2021-06-28 20:11:21 -07:00
..
2021-06-24 10:15:15 -04:00
2021-06-15 09:37:15 -04:00
2021-06-16 09:43:54 +01:00
2021-06-23 13:13:32 +01:00
2021-06-09 11:51:13 -04:00
2021-06-17 17:57:42 +02:00
2021-06-23 13:13:32 +01:00
2021-04-21 11:11:20 -04:00
2020-04-06 14:32:39 -04:00
2021-06-22 15:34:19 -07:00
2021-04-01 11:58:37 -06:00
2020-12-07 18:36:34 -05:00