Commit Graph
6 Commits
Author SHA1 Message Date
Gang WenandClaude Opus 4.6 fd34c3d5d8 Add debug logging to Florence2 model loading path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 08:20:03 +02:00
Gang WenandClaude Opus 4.6 810e34d859 Add transformers 5.x model loading path for Florence2
Uses local Florence2 modules with accelerate-based weight loading and
a custom Florence2Processor for transformers >= 5.0.0, while keeping
the existing loading path for older versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 08:15:29 +02:00
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