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
I am currently trying to import peft. But I got the following error:
Traceback (most recent call last):
File "/home/paperspace/cache/ml/experiments/hhem2/hhem2/finetune/new_train.py", line 18, in <module>
import peft
File "/home/paperspace/.local/lib/python3.10/site-packages/peft/__init__.py", line 22, in <module>
from .auto import (
File "/home/paperspace/.local/lib/python3.10/site-packages/peft/auto.py", line 21, in <module>
from transformers import (
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "/home/paperspace/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1852, in __getattr__
value = getattr(module, name)
File "/home/paperspace/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1851, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/home/paperspace/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1865, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.auto.modeling_auto because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
numpy.core.multiarray failed to import
I have already upgraded transformers and numpy to the latest version.
numpy 2.2.3
transformers 4.49.0
peft 0.14.0
Who can help?
No response
Information
The official example scripts
My own modified scripts
Tasks
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
run the following command on ur Linux terminal:
python3 -c "import peft"
Expected behavior
Shouldn't see any error. Silence.
The text was updated successfully, but these errors were encountered:
System Info
I am currently trying to import
peft
. But I got the following error:I have already upgraded
transformers
andnumpy
to the latest version.Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
run the following command on ur Linux terminal:
Expected behavior
Shouldn't see any error. Silence.
The text was updated successfully, but these errors were encountered: