[Model] Remove Tarsier, Tarsier2 (#47143)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -123,7 +123,6 @@ _CONFIG_REGISTRY: dict[str, type[PretrainedConfig]] = LazyConfigDict(
|
||||
qwen3_5_moe="Qwen3_5MoeConfig",
|
||||
laguna="LagunaConfig",
|
||||
lfm2_moe="Lfm2MoeConfig",
|
||||
tarsier2="Tarsier2Config",
|
||||
**{"unlimited-ocr": "UnlimitedOCRConfig"},
|
||||
)
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ _CLASS_TO_MODULE: dict[str, str] = {
|
||||
"Qwen3_5TextConfig": "vllm.transformers_utils.configs.qwen3_5",
|
||||
"Qwen3_5MoeConfig": "vllm.transformers_utils.configs.qwen3_5_moe",
|
||||
"Qwen3_5MoeTextConfig": "vllm.transformers_utils.configs.qwen3_5_moe",
|
||||
"Tarsier2Config": "vllm.transformers_utils.configs.tarsier2",
|
||||
# Special case: DeepseekV3Config is from HuggingFace Transformers
|
||||
"DeepseekV3Config": "transformers",
|
||||
}
|
||||
@@ -161,7 +160,6 @@ __all__ = [
|
||||
"Qwen3_5TextConfig",
|
||||
"Qwen3_5MoeConfig",
|
||||
"Qwen3_5MoeTextConfig",
|
||||
"Tarsier2Config",
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
from transformers import Qwen2VLConfig
|
||||
|
||||
|
||||
class Tarsier2Config(Qwen2VLConfig):
|
||||
"""
|
||||
Tarsier2's config.json is written such that AutoConfig.from_pretrained will create
|
||||
a deeply nested config consisting of:
|
||||
|
||||
- LlavaConfig
|
||||
- Qwen2VLConfig
|
||||
- Qwen2VLTextConfig
|
||||
- Qwen2VLVisionConfig
|
||||
- Qwen2VLConfig
|
||||
- Qwen2VLTextConfig
|
||||
- Qwen2VLVisionConfig
|
||||
|
||||
When it should really just be a single Qwen2VLConfig.
|
||||
|
||||
This class is a hack to stop AutoConfig from creating the nested config structure.
|
||||
"""
|
||||
|
||||
model_type = "tarsier2"
|
||||
Reference in New Issue
Block a user