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

[Core] Factor out input preprocessing to a separate class #7329

Merged
merged 20 commits into from
Sep 13, 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
format
  • Loading branch information
DarkLight1337 committed Sep 12, 2024
commit b10b4b0103443fb26810a50bcbbdb04fec19b2d7
4 changes: 2 additions & 2 deletions vllm/inputs/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def preprocess(

if is_explicit_encoder_decoder_prompt(inputs):
raise ValueError("Cannot pass encoder-decoder prompt "
"to decoder-only models")
"to decoder-only models")

# Decoder-only operation
return self._process_decoder_only_prompt(
Expand Down Expand Up @@ -522,7 +522,7 @@ async def preprocess_async(

if is_explicit_encoder_decoder_prompt(inputs):
raise ValueError("Cannot pass encoder-decoder prompt "
"to decoder-only models")
"to decoder-only models")

# Decoder-only operation
return await self._process_decoder_only_prompt_async(
Expand Down
Loading