jupyterjazz commited on
Commit
f9cf2d3
·
1 Parent(s): 5aa3e96

fix: autoprocessor

Browse files

Signed-off-by: jupyterjazz <[email protected]>

modeling_colqwen_duo.py CHANGED
@@ -699,6 +699,12 @@ class JinaEmbeddingsV4Model:
699
  if hasattr(self.model, name):
700
  return getattr(self.model, name)
701
  raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
 
 
 
 
 
 
702
 
703
 
704
  class ColQwen25Duo(ColQwenDuoBase, Qwen2_5_VLForConditionalGeneration):
 
699
  if hasattr(self.model, name):
700
  return getattr(self.model, name)
701
  raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
702
+
703
+ def __call__(self, *args, **kwargs):
704
+ """
705
+ Forward the call to the underlying model's forward method.
706
+ """
707
+ return self.model(*args, **kwargs)
708
 
709
 
710
  class ColQwen25Duo(ColQwenDuoBase, Qwen2_5_VLForConditionalGeneration):
preprocessor_config.json CHANGED
@@ -25,5 +25,8 @@
25
  "longest_edge": 12845056,
26
  "shortest_edge": 3136
27
  },
28
- "temporal_patch_size": 2
 
 
 
29
  }
 
25
  "longest_edge": 12845056,
26
  "shortest_edge": 3136
27
  },
28
+ "temporal_patch_size": 2,
29
+ "auto_map": {
30
+ "AutoProcessor": "modeling_colqwen_duo.ColQwen25DuoProcessor"
31
+ }
32
  }