Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update huggingface_hub requirement version #2116

Closed
4 tasks
fmartiescofet opened this issue Sep 30, 2024 · 1 comment
Closed
4 tasks

Update huggingface_hub requirement version #2116

fmartiescofet opened this issue Sep 30, 2024 · 1 comment

Comments

@fmartiescofet
Copy link

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.

@BenjaminBossan
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants