Skip to content

Conversation

@MagnusBuehler
Copy link
Contributor

Motivation and Context

PR 312 had merging conflicts, due to out of date main branch. I resolved these issues and merged with up-to-date main branch code.

  • moved code from src/tabpfn/model/loading.py (deprecated) to src/tabpfn/model_loading.py, and test imports accordingly. Also solved merge conflict in Readme.md

Public API Changes

  • No Public API changes
  • Yes, Public API changes (Details below)

How Has This Been Tested?

locally with Mock test and verified that download links work.

Checklist

  • The changes have been tested locally.
  • Documentation has been updated (if the public API or usage changes).
  • A entry has been added to CHANGELOG.md (if relevant for users).
  • The code follows the project's style guidelines.
  • I have considered the impact of these changes on the public API.

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 refactors the model download logic to include fallback URLs, which is a great improvement for robustness. The changes in src/tabpfn/model_loading.py correctly implement a sequence of download attempts from HuggingFace and a fallback S3 source. The new test in tests/test_download_fallbacks.py effectively verifies this fallback mechanism.

My main feedback is on improving the error handling within the config.json download logic to avoid silent failures and provide more informative log messages, which will make debugging easier.

Overall, the changes are well-implemented and the addition of tests is appreciated.

@noahho noahho merged commit c078f9d into PriorLabs:main Oct 1, 2025
10 checks passed
oscarkey pushed a commit that referenced this pull request Nov 12, 2025
…l download script and fix fallback URLs (#168)

* Record copied public PR 520

* [Resolved Merge Conflicts from PR 312] Remove shell download script and fix fallback URLs (#520)

Co-authored-by: noahho <noah@priorlabs.ai>
(cherry picked from commit c078f9d)

---------

Co-authored-by: mirror-bot <mirror-bot@users.noreply.github.com>
Co-authored-by: MagnusBuehler <111045718+MagnusBuehler@users.noreply.github.com>
Co-authored-by: noahho <noah@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.

2 participants