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
c5d7fb9d
Unverified
Commit
c5d7fb9d
authored
Oct 28, 2024
by
Russell Bryant
Committed by
GitHub
Oct 28, 2024
Browse files
[Doc] fix third-party model example (#9771)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
76ed5340
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
docs/source/models/adding_model.rst
docs/source/models/adding_model.rst
+4
-2
No files found.
docs/source/models/adding_model.rst
View file @
c5d7fb9d
...
@@ -133,6 +133,8 @@ If you are running api server with :code:`vllm serve <args>`, you can wrap the e
...
@@ -133,6 +133,8 @@ If you are running api server with :code:`vllm serve <args>`, you can wrap the e
from vllm import ModelRegistry
from vllm import ModelRegistry
from your_code import YourModelForCausalLM
from your_code import YourModelForCausalLM
ModelRegistry.register_model("YourModelForCausalLM", YourModelForCausalLM)
ModelRegistry.register_model("YourModelForCausalLM", YourModelForCausalLM)
if __name__ == '__main__':
import runpy
import runpy
runpy.run_module('vllm.entrypoints.openai.api_server', run_name='__main__')
runpy.run_module('vllm.entrypoints.openai.api_server', run_name='__main__')
...
...
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