Skip to content

A cleaned up beit3 remap onto vision_transformer.py vit #2503

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 5 commits into from
May 30, 2025

Conversation

rwightman
Copy link
Collaborator

@rwightman rwightman commented May 29, 2025

Remap of beit3 from #2489 onto vision_transformer.py vit w/ scale norm support added

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@rwightman
Copy link
Collaborator Author

@brianhou0208 so, this is what I ended up with. #2502 started as an experiment, I basically handed things off to Claude to see how well it'd do. What was in that PR was just prompting on top of your initial PR. This is a clean diff of that plus some cleanup.

It started off easy with the architecture changes being picked up decently, but then had quite a bit of back and forth on the weight conversion. It probably would have been similar time to do it myself, but though it was a worthwhile experiment :)

@rwightman rwightman merged commit a22366e into main May 30, 2025
26 checks passed
@brianhou0208
Copy link
Contributor

Super cool experiment! Thanks for handling all the back-and-forth and sharing your thoughts.
Also, thanks again for merging BEiT3 into timm :)

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