Commit Graph
5 Commits
Author SHA1 Message Date
Gang Wen c8b2ec0b59 fix again 2026-04-06 22:06:50 +02:00
Gang Wen e1dbbca003 added fix 2026-04-06 22:01:39 +02:00
Gang Wen d55bd6acbb Revert "Fix Florence2 config compatibility with transformers 5.x"
This reverts commit 31ab0275de.
2026-04-06 21:34:45 +02:00
Gang WenandClaude Opus 4.6 31ab0275de Fix Florence2 config compatibility with transformers 5.x
In transformers 5.x, forced_bos_token_id was moved from PretrainedConfig
to GenerationConfig. Florence2's custom config accesses this attribute
during init, causing an AttributeError that prevents model loading and
leads to a NoneType crash when the processor is later called.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 21:26:57 +02:00
chflame163 1a1928f5ae fix florence can not run with high version of TRANSFROMERS 2025-12-11 20:09:10 +08:00