Skip to content

Set the default eval length for NaFlex ViT-B-16 - #1197

Merged
rwightman merged 1 commit into
mlfoundations:mainfrom
chenghuichen:naflex-eval
Jul 17, 2026
Merged

Set the default eval length for NaFlex ViT-B-16#1197
rwightman merged 1 commit into
mlfoundations:mainfrom
chenghuichen:naflex-eval

Conversation

@chenghuichen

Copy link
Copy Markdown
Contributor

Problem

naflex_ViT-B-16 did not specify image_seq_len, so evaluation fell back to the largest default training sequence length, 1024, instead of its nominal 224/P16 grid of 196 tokens.

Change

Set vision_cfg.image_seq_len to 196, consistent with the existing image and patch sizes.

Tests

Extended the existing NaFlex config coverage with the 224px image size and 196-token evaluation length.

@rwightman
rwightman merged commit a3c2605 into mlfoundations:main Jul 17, 2026
0 of 4 checks passed
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