vllm 0.24 RuntimeError: HYV3ReasoningParser reasoning parser could not locate think start/end tokens in the tokenizer!

#3
by AImhotep - opened

(APIServer pid=143) Traceback (most recent call last):
(APIServer pid=143) File "/root/vllm/.venv/bin/vllm", line 10, in
(APIServer pid=143) sys.exit(main())
(APIServer pid=143) ^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/cli/main.py", line 95, in main
(APIServer pid=143) args.dispatch_function(args)
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/cli/serve.py", line 148, in cmd
(APIServer pid=143) uvloop.run(run_server(args))
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/uvloop/init.py", line 96, in run
(APIServer pid=143) return __asyncio.run(
(APIServer pid=143) ^^^^^^^^^^^^^^
(APIServer pid=143) File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
(APIServer pid=143) return runner.run(main)
(APIServer pid=143) ^^^^^^^^^^^^^^^^
(APIServer pid=143) File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
(APIServer pid=143) return self._loop.run_until_complete(task)
(APIServer pid=143) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=143) File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/uvloop/init.py", line 48, in wrapper
(APIServer pid=143) return await main
(APIServer pid=143) ^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 663, in run_server
(APIServer pid=143) await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 677, in run_server_worker
(APIServer pid=143) async with build_async_engine_client(
(APIServer pid=143) File "/usr/lib/python3.12/contextlib.py", line 210, in aenter
(APIServer pid=143) return await anext(self.gen)
(APIServer pid=143) ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 99, in build_async_engine_client
(APIServer pid=143) async with build_async_engine_client_from_engine_args(
(APIServer pid=143) File "/usr/lib/python3.12/contextlib.py", line 210, in aenter
(APIServer pid=143) return await anext(self.gen)
(APIServer pid=143) ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/entrypoints/openai/api_server.py", line 123, in build_async_engine_client_from_engine_args
(APIServer pid=143) vllm_config = engine_args.create_engine_config(usage_context=usage_context)
(APIServer pid=143) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/engine/arg_utils.py", line 2316, in create_engine_config
(APIServer pid=143) config = VllmConfig(
(APIServer pid=143) ^^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/pydantic/_internal/_dataclasses.py", line 121, in init
(APIServer pid=143) s.pydantic_validator.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/config/vllm.py", line 1450, in post_init
(APIServer pid=143) self.reasoning_config.initialize_token_ids(self.model_config)
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/config/reasoning.py", line 80, in initialize_token_ids
(APIServer pid=143) reasoning_parser = parser_cls(tokenizer)
(APIServer pid=143) ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/reasoning/hy_v3_reasoning_parser.py", line 29, in init
(APIServer pid=143) super().init(tokenizer, *args, **kwargs)
(APIServer pid=143) File "/root/vllm/.venv/lib/python3.12/site-packages/vllm/reasoning/basic_parsers.py", line 65, in init
(APIServer pid=143) raise RuntimeError(
(APIServer pid=143) RuntimeError: HYV3ReasoningParser reasoning parser could not locate think start/end tokens in the tokenizer!

Tencent org

Could you try the latest code or the vllm-openai:hy3 image?

On vllm-openai:hy3 it works perfectly fine, thank you.

I wonder why it isn't on the nightly version vllm that I've compiled - but this is something to be resolved later :)

AImhotep changed discussion status to closed
Tencent org

You can check whether this fix is included: https://github.com/vllm-project/vllm/pull/47192. If so, vLLM will work properly.

Sign up or log in to comment