pypi / timm
timm
What changed in timm 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
2 breaking1 security19 new APIs and options3 performance1 behavior and defaults31 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittimm 157 changes
Breaking changes 2
Changes input-size selection and fixes test-time preprocessing defaults.
Switches the default position interpolation.
Security 1
Pickle loading is hardened to address security concerns.
New APIs and options 19
Adds DeepSeek-V4 and V4.1 vision classifiers and encoders with native timm Hub weights.
Adds EfficientViM with native timm Hub weights.
Adds iFormer with native timm Hub weights.
Adds Qwen-Drive-1.0-4B vision tower weights as a qwen3_vit pretrained tag.
Adds Qwen3.5 and Qwen3.8 vision encoders, and the Qwen-Drive-1.0-4B vision tower pretrained tag.
Adds ViT classifier and encoder variants, including classifiers with and without the native spatial merger.
Adds ViT classifier and encoder variants, including classifiers with and without the native spatial merger.
Adds ViT classifier and encoder variants, including classifiers with and without the native spatial merger.
Adds ViTs with EVA and NaFlexViT support and native timm Hub weights.
Adds LingBot-Vision models and pretrained weights.
Adds optional key-only masks for NaFlexVit self-attention.
Adds per-batch image and batch size scheduling for non-NaFlex training, including progressive small-to-large resolution schedules.
Adds PP-LCNetV2 model definitions and pretrained weights, including small, base, and large variants.
Model definitions and pretrained weights are added for EUPE ViT and ConvNeXt models.
Model definitions and pretrained weights are added for EUPE ViT and ConvNeXt models.
NaFlexViT patch-layout support is extended, including support for NaFlex-CLAP.
Adds a flag to unify channels-last patchification support across the data pipeline and NaFlex configuration and models.
TIPSv2 model definitions and pretrained weights are added for DINOv2-style ViTs.
Adds a seed option for reproducible validation.
Performance 3
Adds caching for variable-patch interpolation.
Makes position embedding sampling compile-friendly and memory-efficient.
Returns the fused RMSNorm2d result directly.
Behavior and default changes 1
Supports NaFlex dictionary inputs.
Fixes and other changes 31
Fixes RMS clipping direction.
Fixes learning-rate scaling for convolution weights.
Preserves the caller's gradient mode.
Clears the eval-mode cache on every train() or eval() call to prevent stale attention bias caches.
Fixes mixing buffer shape for non-square and single-band images.
Adds device/dtype factory support for a few models.
Fixes channel metadata for pruned models.
Corrects weight decay when loading checkpoints.
Copies the previous gradient instead of retaining a reference to p.grad.
Fixes models that cannot be created with a meta device context.
Improves parsing, including values containing '=' or non-literals.
Fixes stream reuse and synchronization.
Fixes padding for dilated max pooling.
Fixes factored row normalization for tall matrices.
The b config flag now honors the documented value 0.
Fixes an AttributeError when hparams is None.
The inc config flag now honors the documented value 0.
Classifier resets preserve the head device and dtype.
Fixes device and dtype changes for all classifier resets.
Fixes minmax border sampling and additional mixup, CutMix, and bounding-box range issues.
Fixes the NaFlexVit load_pretrained helper and clarifies its purpose.
Improves model factory path and checkpoint handling.
Fixes a crash when layer_decay is set without an explicit minimum scale.
Fixes positional embedding resampling when grid changes have an equal number of tokens.
Fixes handling of custom input channels for pruned EfficientNet models.
Fixes the foreach path so weight decay is not applied once per device and dtype group.
Fixes ZeroDivisionError when the count is 0.
Inference labels are fixed for models fine-tuned on non-ImageNet datasets.
Fixes handling so reg_token is included in no-weight-decay and stem/embed learning-rate groups.
Support for tensor learning rates is improved.
Optimizer support for torch.compile is improved by using a tensor for the step count.