[BugFix] support PP for Cohere vision model (#42819)

Signed-off-by: <conway.zhu@cohere.com>
Signed-off-by: root <conway.zhu@cohere.com>
This commit is contained in:
czhu-cohere
2026-05-18 11:12:06 -07:00
committed by GitHub
parent a2c8fc6657
commit 9758a6e5c5
@@ -358,6 +358,10 @@ class Cohere2VisionForConditionalGeneration(
architectures=config.text_config.architectures,
)
self.make_empty_intermediate_tensors = (
self.language_model.make_empty_intermediate_tensors
)
@property
def dtype(self):
return next(self.parameters()).dtype