-
Notifications
You must be signed in to change notification settings - Fork 730
[DataProcessor]Remove ENABLE_V1_DATA_PROCESSOR #7052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,6 @@ | |
| from fastdeploy.config import ErnieArchitectures, ModelConfig | ||
| from fastdeploy.entrypoints.openai.tool_parsers import ToolParserManager | ||
| from fastdeploy.reasoning import ReasoningParserManager | ||
| from fastdeploy.utils import envs | ||
| from fastdeploy.utils import llm_logger as logger | ||
|
|
||
|
|
||
|
|
@@ -83,25 +82,15 @@ def create_processor(self): | |
| logger.info(f"Plugin input processor not available ({e}), using built-in processor") | ||
| if not self.model_config.enable_mm: | ||
| if not ErnieArchitectures.contains_ernie_arch(architecture): | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.text_processor import DataProcessor | ||
| else: | ||
| from fastdeploy.input.v1.text_processor import DataProcessor | ||
| from fastdeploy.input.text_processor import DataProcessor | ||
|
|
||
|
Comment on lines
82
to
86
|
||
| self.processor = DataProcessor( | ||
| model_name_or_path=self.model_name_or_path, | ||
| reasoning_parser_obj=reasoning_parser_obj, | ||
| tool_parser_obj=tool_parser_obj, | ||
| ) | ||
| else: | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.ernie4_5_processor import ( | ||
| Ernie4_5Processor, | ||
| ) | ||
| else: | ||
| from fastdeploy.input.v1.ernie4_5_processor import ( | ||
| Ernie4_5Processor, | ||
| ) | ||
| from fastdeploy.input.ernie4_5_processor import Ernie4_5Processor | ||
|
|
||
| self.processor = Ernie4_5Processor( | ||
| model_name_or_path=self.model_name_or_path, | ||
|
|
@@ -110,14 +99,9 @@ def create_processor(self): | |
| ) | ||
| else: | ||
| if ErnieArchitectures.contains_ernie_arch(architecture): | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.ernie4_5_vl_processor import ( | ||
| Ernie4_5_VLProcessor, | ||
| ) | ||
| else: | ||
| from fastdeploy.input.v1.ernie4_5_vl_processor import ( | ||
| Ernie4_5_VLProcessor, | ||
| ) | ||
| from fastdeploy.input.ernie4_5_vl_processor import ( | ||
| Ernie4_5_VLProcessor, | ||
| ) | ||
|
|
||
| self.processor = Ernie4_5_VLProcessor( | ||
| model_name_or_path=self.model_name_or_path, | ||
|
|
@@ -128,14 +112,9 @@ def create_processor(self): | |
| enable_processor_cache=self.enable_processor_cache, | ||
| ) | ||
| elif "PaddleOCRVL" in architecture: | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.paddleocr_vl_processor import ( | ||
| PaddleOCRVLProcessor, | ||
| ) | ||
| else: | ||
| from fastdeploy.input.v1.paddleocr_vl_processor import ( | ||
| PaddleOCRVLProcessor, | ||
| ) | ||
| from fastdeploy.input.paddleocr_vl_processor import ( | ||
| PaddleOCRVLProcessor, | ||
| ) | ||
|
|
||
| self.processor = PaddleOCRVLProcessor( | ||
| config=self.model_config, | ||
|
|
@@ -145,12 +124,7 @@ def create_processor(self): | |
| reasoning_parser_obj=reasoning_parser_obj, | ||
| ) | ||
| elif "Qwen2_5_VL" in architecture: | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.qwen_vl_processor import QwenVLProcessor | ||
| else: | ||
| from fastdeploy.input.v1.qwen_vl_processor import ( | ||
| QwenVLProcessor, | ||
| ) | ||
| from fastdeploy.input.qwen_vl_processor import QwenVLProcessor | ||
|
|
||
| self.processor = QwenVLProcessor( | ||
| config=self.model_config, | ||
|
|
@@ -161,12 +135,7 @@ def create_processor(self): | |
| enable_processor_cache=self.enable_processor_cache, | ||
| ) | ||
| elif "Qwen3VL" in architecture: | ||
| if not envs.ENABLE_V1_DATA_PROCESSOR: | ||
| from fastdeploy.input.qwen3_vl_processor import Qwen3VLProcessor | ||
| else: | ||
| from fastdeploy.input.v1.qwen3_vl_processor import ( | ||
| Qwen3VLProcessor, | ||
| ) | ||
| from fastdeploy.input.qwen3_vl_processor import Qwen3VLProcessor | ||
|
|
||
| self.processor = Qwen3VLProcessor( | ||
| config=self.model_config, | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR 标题目前不符合仓库模板要求的标签格式(需要包含至少一个形如
[BugFix]/[DataProcessor]的 tag),且 PR 描述的 Motivation/Modifications 等部分为空。建议按.github/pull_request_template.md补全:在标题加上合适标签,并在描述里说明为何移除该开关、是否存在迁移/兼容性影响以及如何验证(例如跑哪些测试/命令)。