Removed XLMModel inheritance from FlaubertModel(torch+tf) (#19432)
* FlaubertModel inheritance from XLMModel removed
* Fix style and add FlaubertPreTrainedModel to __init__
* Fix formatting issue
* Fix Typo and repo-consistency
* Fix style
* add FlaubertPreTrainedModel to TYPE_HINT
* fix repo consistency
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_tf_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_tf_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/flaubert/modeling_flaubert.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* removed redundant Copied from comments
* added missing copied from comments
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>