[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user