Skip to content

GLiNER multi-task examples not working on colab #15

@rafmacalaba

Description

@rafmacalaba

As mentioned in the extended README, the implementation of utca is not working, even the quickstart example is not working due to library conflicts.

Traceback

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py](https://localhost:8080/#) in _get_module(self, module_name)
   1777         try:
-> 1778             return importlib.import_module("." + module_name, self.__name__)
   1779         except Exception as e:

20 frames
AttributeError: module 'torch.library' has no attribute 'register_fake'

The above exception was the direct cause of the following exception:

RuntimeError                              Traceback (most recent call last)
[/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py](https://localhost:8080/#) in _get_module(self, module_name)
   1778             return importlib.import_module("." + module_name, self.__name__)
   1779         except Exception as e:
-> 1780             raise RuntimeError(
   1781                 f"Failed to import {self.__name__}.{module_name} because of the following error (look up to see its"
   1782                 f" traceback):\n{e}"

RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
module 'torch.library' has no attribute 'register_fake'

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