text: 
  
  TITLE
  BertEmbeddings import missing for Torch in __init__ file
  
  COMMENTS
  4
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  ### System Info
  
  ```shell
  - `transformers` version: 4.18.0
  - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
  - Python version: 3.7.13
  - Huggingface_hub version: 0.5.1
  - PyTorch version (GPU?): 1.11.0+cu113 (True)
  - Tensorflow version (GPU?): 2.8.0 (True)
  - Flax version (CPU?/GPU?/TPU?): not installed (NA)
  - Jax version: not installed
  - JaxLib version: not installed
  - Using GPU in script?: Yes
  - Using distributed or parallel set-up in script?: No
  ```
  
  
  ### Who can help?
  
  @LysandreJik 
  
  ### Information
  
  - [ ] The official example scripts
  - [X] My own modified scripts
  
  ### Tasks
  
  - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
  - [ ] My own task or dataset (give details below)
  
  ### Reproduction
  
  `from transformers import BertEmbeddings`
  
  raises
  
  ```
  ----> 1 from transformers import BertEmbeddings
  
  ImportError: cannot import name 'BertEmbeddings' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/__init__.py)
  ```
  
  ### Expected behavior
  
  
  [BertEmbeddings](https://github.com/huggingface/transformers/blob/e6f00a11d7fa34215184e3c797e19e6c7debe0fe/src/transformers/models/bert/modeling_bert.py#L182) is a class in Bert Model file that can be used for creating BertEmbeddings, the class is not imported in[ __init__ ](https://github.com/huggingface/transformers/blob/main/src/transformers/models/bert/__init__.py)file, so the user may not be able to import it. While the TF and jax version are imported it
  ```
  
  
  It should be imported
  
  