Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0a740a11
Unverified
Commit
0a740a11
authored
Jul 24, 2024
by
Roger Wang
Committed by
GitHub
Jul 24, 2024
Browse files
[Bugfix] Fix token padding for chameleon (#6724)
parent
c882a7f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/model_executor/models/chameleon.py
vllm/model_executor/models/chameleon.py
+2
-1
No files found.
vllm/model_executor/models/chameleon.py
View file @
0a740a11
...
...
@@ -125,7 +125,8 @@ def input_processor_for_chameleon(ctx: InputContext, llm_inputs: LLMInputs):
# Appending sep token for chat mode to follow default processor
# behavior
new_prompt
+=
tokenizer
.
sep_token
if
new_prompt
is
not
None
:
new_prompt
+=
tokenizer
.
sep_token
new_token_ids
+=
[
CHAMELEON_SEP_TOKEN_ID
]
# NOTE: Create a defensive copy of the original inputs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment