accelerate icon indicating copy to clipboard operation
accelerate copied to clipboard

Error with transformers 4.28.1

Open MohamedAliRashad opened this issue 2 years ago • 3 comments

System Info

This is the error

RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
/usr/local/lib/python3.8/dist-packages/transformer_engine_extensions.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE


### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] One of the scripts in the examples/ folder of Accelerate or an officially supported `no_trainer` script in the `examples` folder of the `transformers` repo (such as `run_no_trainer_glue.py`)
- [ ] My own task or dataset (give details below)

### Reproduction

1. Install transformers==4.28.1
2. Install accelerate
3. Try import accelerate

### Expected behavior

No error

MohamedAliRashad avatar Apr 30 '23 09:04 MohamedAliRashad

That error usually comes from a borked install of PyTorch. You should try to re-install it.

sgugger avatar May 01 '23 13:05 sgugger

I am using torch==2.0.0+cu11.8 and installed from wheels

MohamedAliRashad avatar May 01 '23 16:05 MohamedAliRashad

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar May 30 '23 15:05 github-actions[bot]