Release v1.0.16
| Model | Top-1 Acc | Top-5 Acc | Params (M) | Eval Seq Len |
|---|---|---|---|---|
| naflexvit_base_patch16_par_gap.e300_s576_in1k | 83.67 | 96.45 | 86.63 | 576 |
| naflexvit_base_patch16_parfac_gap.e300_s576_in1k | 83.63 | 96.41 | 86.46 | 576 |
| naflexvit_base_patch16_gap.e300_s576_in1k | 83.50 | 96.46 | 86.63 | 576 |
forward_intermediates and fix some checkpointing bugs. Thanks https://github.com/brianhou0208vision_transformer.py can be loaded into the NaFlexVit model by adding the use_naflex=True flag to create_model
train.py and validate.py add the --naflex-loader arg, must be used with a NaFlexVitpython validate.py /imagenet --amp -j 8 --model vit_base_patch16_224 --model-kwargs use_naflex=True --naflex-loader --naflex-max-seq-len 256--naflex-train-seq-lens' argument specifies which sequence lengths to randomly pick from per batch during training--naflex-max-seq-len argument sets the target sequence length for validation--model-kwargs enable_patch_interpolator=True --naflex-patch-sizes 12 16 24 will enable random patch size selection per-batch w/ interpolation--naflex-loss-scale arg changes loss scaling mode per batch relative to the batch size, timm NaFlex loading changes the batch size for each seq lentimm weights
forward_intermediates() and some additional fixes thanks to https://github.com/brianhou0208
forward_intermediates() thanks to https://github.com/brianhou0208local-dir: pretrained schema, can use local-dir:/path/to/model/folder for model name to source model / pretrained cfg & weights Hugging Face Hub models (config.json + weights file) from a local folder.download argument from torch_kwargs for torchvision ImageNet class by @ryan-caesar-ramos in https://github.com/huggingface/pytorch-image-models/pull/2486head_dim reference in AttentionRope class of attention.py by @amorehead in https://github.com/huggingface/pytorch-image-models/pull/2519forward_intermediates() by @brianhou0208 in https://github.com/huggingface/pytorch-image-models/pull/2501Full Changelog: https://github.com/huggingface/pytorch-image-models/compare/v1.0.15...v1.0.16
Fetched April 7, 2026