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

[Model][VLM] Add LLaVA-Onevision model support #8486

Merged
merged 20 commits into from
Sep 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't remove the first token
  • Loading branch information
DarkLight1337 committed Sep 22, 2024
commit 8f8daa1c2253b7c8a04a67100b4f135d408f3e36
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def vllm_to_hf_output(vllm_output: Tuple[List[int], str,
if token_id != video_token_id or output_ids[idx - 1] != video_token_id
]

hf_output_str = output_str[1:]
hf_output_str = output_str
if hf_output_ids[-1] == eos_token_id:
hf_output_str = hf_output_str + tokenizer.decode(eos_token_id)

Expand Down
Loading