Skip to content

fix: remove direct dependency on specific hf utils #244

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

stephantul
Copy link
Member

This PR removes direct dependency on specific huggingface-hub errors. These were in different submodules for different versions, so we had conditional imports. Additionally, there are other reasons a hf hub transfer can fail (e.g, internet access failing during an active python session), so just catching the hf hub errors might not be enough.

@stephantul stephantul requested a review from Pringled May 20, 2025 07:00
Copy link

codecov bot commented May 20, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
model2vec/hf_utils.py 0.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
model2vec/distill/distillation.py 94.81% <100.00%> (+1.28%) ⬆️
model2vec/hf_utils.py 75.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephantul stephantul merged commit 15207a8 into main May 21, 2025
5 of 6 checks passed
@stephantul stephantul deleted the fix-exceptions-hf-utils branch May 21, 2025 17:45
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

Successfully merging this pull request may close these issues.

2 participants