From 099f3ba4d73555577ee31ff475643f49408202ff Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Thu, 12 Feb 2026 21:14:53 +0100 Subject: [PATCH] fix(policy): xvla forced_bos_token missing --- src/lerobot/policies/xvla/configuration_florence2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lerobot/policies/xvla/configuration_florence2.py b/src/lerobot/policies/xvla/configuration_florence2.py index 35c006ee0..77f1b3a1d 100644 --- a/src/lerobot/policies/xvla/configuration_florence2.py +++ b/src/lerobot/policies/xvla/configuration_florence2.py @@ -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(