Skip to content

ValueError: '<class 'sglang.srt.configs.qwen2_5_vl_config.Qwen2_5_VLConfig'>' is already used by a Transformers model. #3

Description

@sisimbisim222
user@91dbdda9c93c:~/app/TokenSelect-main$ bash scripts/serve.sh
Traceback (most recent call last):
  File "/home/user/app/TokenSelect-main/benchmark/serve.py", line 6, in <module>
    from sglang.srt.server_args import ServerArgs
  File "/home/user/.local/lib/python3.11/site-packages/sglang/srt/server_args.py", line 25, in <module>
    from sglang.srt.hf_transformers_utils import check_gguf_file
  File "/home/user/.local/lib/python3.11/site-packages/sglang/srt/hf_transformers_utils.py", line 33, in <module>
    from sglang.srt.configs import ChatGLMConfig, DbrxConfig, ExaoneConfig, Qwen2_5_VLConfig
  File "/home/user/.local/lib/python3.11/site-packages/sglang/srt/configs/__init__.py", line 4, in <module>
    from sglang.srt.configs.qwen2_5_vl_config import (
  File "/home/user/.local/lib/python3.11/site-packages/sglang/srt/configs/qwen2_5_vl_config.py", line 1005, in <module>
    AutoImageProcessor.register(Qwen2_5_VLConfig, None, Qwen2_5_VLImageProcessor, None)
  File "/home/user/.local/lib/python3.11/site-packages/transformers/models/auto/image_processing_auto.py", line 628, in register
    IMAGE_PROCESSOR_MAPPING.register(
  File "/home/user/.local/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 833, in register
    raise ValueError(f"'{key}' is already used by a Transformers model.")
ValueError: '<class 'sglang.srt.configs.qwen2_5_vl_config.Qwen2_5_VLConfig'>' is already used by a Transformers model.

why so many error? you check before you publish code!?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions