Upload configuration_dots.py with huggingface_hub
Browse files- configuration_dots.py +1 -0
configuration_dots.py
CHANGED
|
@@ -72,6 +72,7 @@ class DotsVLProcessor(Qwen2_5_VLProcessor):
|
|
| 72 |
dummy_processor = BaseVideoProcessor()
|
| 73 |
super().__init__(image_processor, tokenizer, video_processor=dummy_processor, chat_template=chat_template)
|
| 74 |
self.image_token = "<|imgpad|>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
AutoProcessor.register("dots_ocr", DotsVLProcessor)
|
|
|
|
| 72 |
dummy_processor = BaseVideoProcessor()
|
| 73 |
super().__init__(image_processor, tokenizer, video_processor=dummy_processor, chat_template=chat_template)
|
| 74 |
self.image_token = "<|imgpad|>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
|
| 75 |
+
self.image_token_id = 151665 if not hasattr(tokenizer, "image_token_id") else tokenizer.image_token_id
|
| 76 |
|
| 77 |
|
| 78 |
AutoProcessor.register("dots_ocr", DotsVLProcessor)
|