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
c0935c96
"vscode:/vscode.git/clone" did not exist on "c8ea982d9b86e145a16092017528d068a7f94630"
Unverified
Commit
c0935c96
authored
Mar 28, 2024
by
Woosuk Kwon
Committed by
GitHub
Mar 28, 2024
Browse files
[Bugfix] Set enable_prefix_caching=True in prefix caching example (#3703)
parent
cb40b3ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/offline_inference_with_prefix.py
examples/offline_inference_with_prefix.py
+1
-1
No files found.
examples/offline_inference_with_prefix.py
View file @
c0935c96
...
@@ -22,7 +22,7 @@ prompts = [
...
@@ -22,7 +22,7 @@ prompts = [
sampling_params
=
SamplingParams
(
temperature
=
0.0
)
sampling_params
=
SamplingParams
(
temperature
=
0.0
)
# Create an LLM.
# Create an LLM.
llm
=
LLM
(
model
=
"facebook/opt-125m"
)
llm
=
LLM
(
model
=
"facebook/opt-125m"
,
enable_prefix_caching
=
True
)
generating_prompts
=
[
prefix
+
prompt
for
prompt
in
prompts
]
generating_prompts
=
[
prefix
+
prompt
for
prompt
in
prompts
]
...
...
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