peft icon indicating copy to clipboard operation
peft copied to clipboard

Update `huggingface_hub` requirement version

Open fmartiescofet opened this issue 2 years ago • 1 comments

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 examples folder
  • [ ] 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.

fmartiescofet avatar Sep 30 '24 12:09 fmartiescofet

Duplicate of #2097. LMK if you would be interested in creating a PR to implement the solution posted there.

BenjaminBossan avatar Sep 30 '24 15:09 BenjaminBossan