You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Bump the upper version bound of transformers to 5.18 #17847
I use unsloth for post training of vision model with trl. Currently I can't use trl.SFTConfig(assistant_only_loss=True) because of the issue caused by bug in transformers<5.18.
Hi @danielhanchen, even though #17903 was merged, I still can't install latest unsloth with transformers 5.18 I get a resolving error. Btw I don't get any errors when installing latest unsloth-zoo with transformers 5.18
% uv pip install unsloth==2026.11.10 transformers==5.18
error: No solution found when resolving dependencies
cause: Because unsloth>=2026.11.10 depends on one of:
transformers>=4.52.4,<4.53.0
transformers>4.53.0,<4.54.0
transformers>4.54.0,<4.55.0
transformers>4.55.0,<4.55.1
transformers>4.55.1,<4.57.0
transformers>4.57.0,<4.57.4
transformers>4.57.4,<4.57.5
transformers>4.57.5,<5.0.0
transformers>5.0.0,<5.1.0
transformers>5.1.0,<=5.17.0
and you require unsloth==2026.11.10, we can conclude that you require one of:
transformers>=4.52.4,<4.53.0
transformers>4.53.0,<4.54.0
transformers>4.54.0,<4.55.0
transformers>4.55.0,<4.55.1
transformers>4.55.1,<4.57.0
transformers>4.57.0,<4.57.4
transformers>4.57.4,<4.57.5
transformers>4.57.5,<5.0.0
transformers>5.0.0,<5.1.0
transformers>5.1.0,<=5.17.0
And because you require transformers==5.18, we can conclude that your requirements are
unsatisfiable.
Activity
Vision SFT: assistant_only_loss uses Unsloth's responses-only masking (…
Allow transformers 5.18 (Gemma3 assistant masks skip image tokens) (u…
fix(deps): allow transformers 5.18 (#17903)
Tialo commentedon Nov 23, 2026
Hi @danielhanchen, even though #17903 was merged, I still can't install latest unsloth with transformers 5.18 I get a resolving error. Btw I don't get any errors when installing latest unsloth-zoo with transformers 5.18