Skip to content
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

ultravox 0.4.1 doesn't work with vllm #272

Open
Madoshakalaka opened this issue Jan 15, 2025 · 2 comments
Open

ultravox 0.4.1 doesn't work with vllm #272

Madoshakalaka opened this issue Jan 15, 2025 · 2 comments

Comments

@Madoshakalaka
Copy link

with the dependency:

[tool.poetry.dependencies]
vllm = {extras = ["audio"], version = "^0.6.6.post1"}
transformers = "^4.47.0" # same as ultravox main branch

following this example here:
(but with "fixie-ai/ultravox-v0_3" changed to "fixie-ai/ultravox-v0_4_1-llama-3_1-8b")

https://github.com/vllm-project/vllm/blob/0794e7446efca1fd7b8ea1cde96777897660cdea/examples/offline_inference/audio_language.py#L27-L45

the error I got:

[rank0]: Traceback (most recent call last):
[rank0]:   File "/home/ME/Projects/my-project/./main.py", line 28, in <module>
[rank0]:     llm = LLM(model="fixie-ai/ultravox-v0_4_1-llama-3_1-8b", task="generate", trust_remote_code=True)
...
[rank0]:   File "/home/ME/.cache/pypoetry/virtualenvs/my-project-7y5QMYrF-py3.10/lib/python3.10/site-packages/vllm/inputs/registry.py", line 108, in get_hf_processor
[rank0]:     raise TypeError("Invalid type of HuggingFace processor. "
[rank0]: TypeError: Invalid type of HuggingFace processor. Expected type: <class 'transformers.processing_utils.ProcessorMixin'>, but found type: <class 'transformers.tokenization_utils_fast.PreTrainedTokenizerFast'>
@zqhuang211
Copy link
Contributor

@petersalas I am not sure if the vllm example needs to be updated to work with the latest ultravox model. Please take a look.

@petersalas
Copy link
Contributor

I think the issue is that for some reason the UltravoxProcessor isn't registered as an AutoProcessor in our recent HF models. (vLLM recently changed to depend on UltravoxProcessor)

Will take a look this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants