utca icon indicating copy to clipboard operation
utca copied to clipboard

GLiNER multi-task examples not working on colab

Open rafmacalaba opened this issue 10 months ago • 0 comments

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'

rafmacalaba avatar Apr 06 '25 03:04 rafmacalaba