Skip to content

Mismatch transformers version for v0.0.9 #14

@LittletreeZou

Description

@LittletreeZou

I tried to install multimolecule (v0.0.9), but met the following error:

>>> import multimolecule
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/shuxian.zou/miniforge3/envs/multimolecule/lib/python3.10/site-packages/multimolecule/__init__.py", line 27, in <module>
    from .models import (
  File "/home/shuxian.zou/miniforge3/envs/multimolecule/lib/python3.10/site-packages/multimolecule/models/__init__.py", line 26, in <module>
    from .calm import (
  File "/home/shuxian.zou/miniforge3/envs/multimolecule/lib/python3.10/site-packages/multimolecule/models/calm/__init__.py", line 38, in <module>
    from .modeling_calm import (
  File "/home/shuxian.zou/miniforge3/envs/multimolecule/lib/python3.10/site-packages/multimolecule/models/calm/modeling_calm.py", line 46, in <module>
    from transformers.utils.generic import can_return_tuple, check_model_inputs
ImportError: cannot import name 'check_model_inputs' from 'transformers.utils.generic' (/home/shuxian.zou/miniforge3/envs/multimolecule/lib/python3.10/site-packages/transformers/utils/generic.py)

The transformers version is 5.2.0. I also tried other versions, but none of them worked. Could you share which transformers version you are using that can run successfully?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions