fix(policy): xvla forced_bos_token missing

This commit is contained in:
Steven Palma
2026-02-12 21:14:53 +01:00
parent 3f3d08e5a8
commit 099f3ba4d7
@@ -276,6 +276,8 @@ class Florence2LanguageConfig(PretrainedConfig):
)
# ensure backward compatibility for BART CNN models
if not hasattr(self, "forced_bos_token_id"):
self.forced_bos_token_id = None
if self.forced_bos_token_id is None and kwargs.get("force_bos_token_to_be_generated", False):
self.forced_bos_token_id = self.bos_token_id
warnings.warn(