You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1535 return importlib.import_module("." + module_name, self.name)
1536 except Exception as e:
-> 1537 raise RuntimeError(
1538 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1539 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):
name 'torch' is not defined
The text was updated successfully, but these errors were encountered:
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name) 1535 return importlib.import_module("." + module_name, self.name) 1536 except Exception as e: -> 1537 raise RuntimeError( 1538 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its" 1539 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback): name 'torch' is not defined
Caused by a transformers version problem and solved now. Pull the latest code or restart the colab.
I encountered this problem when running the second cell in colab, how to solve it
NameError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1534 try:
-> 1535 return importlib.import_module("." + module_name, self.name)
1536 except Exception as e:
17 frames
NameError: name 'torch' is not defined
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1535 return importlib.import_module("." + module_name, self.name)
1536 except Exception as e:
-> 1537 raise RuntimeError(
1538 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1539 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):
name 'torch' is not defined
The text was updated successfully, but these errors were encountered: