-
Notifications
You must be signed in to change notification settings - Fork 58
Description
根据步骤拉取镜像和安装transformer-5.0.0rc1
运行 python3 -m sglang.launch_server 后会报错:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/sgl-workspace/sglang/python/sglang/launch_server.py", line 29, in
server_args = prepare_server_args(sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/server_args.py", line 4991, in prepare_server_args
return ServerArgs.from_cli_args(raw_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/server_args.py", line 4482, in from_cli_args
return cls(**{attr: getattr(args, attr) for attr in attrs})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 314, in init
File "/sgl-workspace/sglang/python/sglang/srt/server_args.py", line 671, in post_init
self._handle_gpu_memory_settings(gpu_mem)
File "/sgl-workspace/sglang/python/sglang/srt/server_args.py", line 954, in _handle_gpu_memory_settings
model_config = self.get_model_config()
^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/server_args.py", line 4496, in get_model_config
self.model_config = ModelConfig.from_server_args(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/configs/model_config.py", line 241, in from_server_args
return ModelConfig(
^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/configs/model_config.py", line 126, in init
self.hf_config = get_config(
^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/utils/common.py", line 3169, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/python/sglang/srt/utils/hf_transformers_utils.py", line 278, in get_config
raise e
File "/sgl-workspace/sglang/python/sglang/srt/utils/hf_transformers_utils.py", line 273, in get_config
config = AutoConfig.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/transformers/src/transformers/models/auto/configuration_auto.py", line 1315, in from_pretrained
trust_remote_code = resolve_trust_remote_code(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sgl-workspace/sglang/transformers/src/transformers/dynamic_module_utils.py", line 749, in resolve_trust_remote_code
raise ValueError(
ValueError: The repository zai-org/GLM-ASR-Nano-2512 contains custom code which must be executed to correctly load the model. You can inspect the repository content at /sgl-workspace/sglang/zai-org/GLM-ASR-Nano-2512 .
You can inspect the repository content at https://hf.co/zai-org/GLM-ASR-Nano-2512.
Please pass the argument trust_remote_code=True to allow custom code to be run.