Skip to content

Conversation

@priorphil
Copy link
Contributor

No description provided.

@priorphil priorphil requested a review from a team as a code owner November 5, 2025 14:44
@priorphil
Copy link
Contributor Author

Note: this essentially just removes a try / catch block, it's just the diff looking ugly.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the model download process by forwarding specific errors from the Hugging Face Hub. Previously, detailed error messages, such as those for gated models or missing tokens, were suppressed by a generic exception. By removing the broad try-except block, these informative errors are now propagated to the user, improving the debugging experience. Additionally, the logic is updated to handle different model versions, restricting direct downloads to version 2 models and providing guidance for newer, gated versions.

Copy link
Contributor

@brendan-priorlabs brendan-priorlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@priorphil priorphil enabled auto-merge (squash) November 5, 2025 14:54
@priorphil priorphil merged commit fe51711 into main Nov 5, 2025
10 checks passed
oscarkey pushed a commit that referenced this pull request Nov 12, 2025
… tokens nicely. (#239)

* Record copied public PR 600

* Forward HF errors as they explain gating / missing tokens nicely. (#600)

(cherry picked from commit fe51711)

---------

Co-authored-by: mirror-bot <mirror-bot@users.noreply.github.com>
Co-authored-by: Phil <phil@priorlabs.ai>
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.

3 participants