Skip to content

GLiNER multi-task examples not working on colab #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rafmacalaba opened this issue Apr 6, 2025 · 0 comments
Open

GLiNER multi-task examples not working on colab #15

rafmacalaba opened this issue Apr 6, 2025 · 0 comments

Comments

@rafmacalaba
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant