Add the image extra: transformers, torchvision and pillow - #399
Merged
Merged
Conversation
tabpfn-extensions[image] brings transformers, which loads the frozen DINOv3 encoder the image extension embeds pictures with, and pillow, which decodes them. The floor is transformers 4.57.1, the first release with DINOv3 that is not yanked. The extra joins the all meta-extra. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Sep 16, 2026
The DINOv3 image processor in transformers is torchvision-backed, and the extension uses that processor rather than its own resize and normalisation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
alanprior
added this pull request to stack #402
September 16, 2026 16:33
adrian-prior
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Layer 1 of 4 in stack #402: the
imageoptional-dependency group. #401 adds the encoder internals, #400 the transformer and estimator wrapper, #398 the example and docs. Onlypyproject.tomlanduv.lockchange here, so the dependency footprint can be reviewed on its own.What it installs
pip install "tabpfn-extensions[image]"addstransformers>=4.57.1, which loads the DINOv3 encoder and its image processor,torchvision>=0.20, which that processor is built on, andpillow>=10.4, which decodes the images. The extra joins theallmeta-extra. The lock gains transformers, tokenizers, regex and torchvision; nothing is removed.Design decisions
馃 Generated with Claude Code