peft
peft copied to clipboard
Update `huggingface_hub` requirement version
System Info
peft 0.13.0 huggingface_hub 0.19.4 (due to other dependencies)
Who can help?
No response
Information
- [ ] The official example scripts
- [ ] My own modified scripts
Tasks
- [ ] An officially supported task in the
examplesfolder - [ ] My own task or dataset (give details below)
Reproduction
from peft import LoraConfig
The following error is raised:
File /dccstor/geofm-finetuning/francescmartiescofet/masters-thesis/.pixi/envs/default/lib/python3.12/site-packages/peft/utils/loftq_utils.py:26
[24] import torch
[25] from huggingface_hub import snapshot_download
[26] from huggingface_hub.errors import HFValidationError
[27] from huggingface_hub.utils import LocalEntryNotFoundError
[28] from safetensors import SafetensorError, safe_open
ModuleNotFoundError: No module named 'huggingface_hub.errors'
Expected behavior
Import the library correctly.
Duplicate of #2097. LMK if you would be interested in creating a PR to implement the solution posted there.