Skip to content

fix: Pin timm version to avoid failed tests#4258

Merged
lvhan028 merged 1 commit intoInternLM:mainfrom
windreamer:fix_pr_test
Jan 6, 2026
Merged

fix: Pin timm version to avoid failed tests#4258
lvhan028 merged 1 commit intoInternLM:mainfrom
windreamer:fix_pr_test

Conversation

@windreamer
Copy link
Copy Markdown
Collaborator

Motivation

Version 1.0.23 of timm introduced a breaking change by removing apply_rot_embed and RotaryEmbedding exports from timm.layers.pos_embed_sincos (see upstream commit huggingface/pytorch-image-models@602634f ). However, the backward compatibility layer in timm.models.layers continues to depend on these imports, causing runtime import errors and CI test failures across all pipeline environments.

Modification

Lock the timm dependency to version 1.0.22 globally across all build and deployment configurations. This version pinning strategy ensures stability and prevents regression while maintaining compatibility with existing code that relies on the deprecated import paths.

The change consistently applies version constraints to CI workflows, Docker images, and package requirements files, guaranteeing uniform behavior from development through production environments until upstream compatibility issues are resolved.

@windreamer windreamer requested review from lvhan028 and zhulinJulia24 and removed request for lvhan028 January 6, 2026 07:12
@windreamer
Copy link
Copy Markdown
Collaborator Author

@windreamer windreamer requested a review from lvhan028 January 6, 2026 07:15
@lvhan028 lvhan028 merged commit 5a0199c into InternLM:main Jan 6, 2026
14 of 15 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