Skip to content

Conversation

@stephantul
Copy link
Contributor

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
@codecov
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

3 participants