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
dynamo
Commits
4adab52d
Unverified
Commit
4adab52d
authored
Nov 13, 2025
by
Ayush Agarwal
Committed by
GitHub
Nov 13, 2025
Browse files
chore: llama4 multimodal disagg support migration (#4213)
Signed-off-by:
ayushag
<
ayushag@nvidia.com
>
parent
54b1cf87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
examples/backends/vllm/launch/disagg_multimodal_llama.sh
examples/backends/vllm/launch/disagg_multimodal_llama.sh
+18
-6
No files found.
examples/
multimodal
/launch/disagg_llama.sh
→
examples/
backends/vllm
/launch/disagg_
multimodal_
llama.sh
View file @
4adab52d
...
...
@@ -15,9 +15,20 @@ while [[ $# -gt 0 ]]; do
;;
-h
|
--help
)
echo
"Usage:
$0
[OPTIONS]"
echo
""
echo
"Disaggregated multimodal serving with separate Prefill/Decode workers for Llama 4"
echo
""
echo
"Options:"
echo
" --head-node Run as head node. Head node will run the HTTP server, processor and prefill worker."
echo
" -h, --help Show this help message"
echo
""
echo
"Examples:"
echo
" # On head node:"
echo
"
$0
--head-node"
echo
""
echo
" # On worker node (requires NATS_SERVER and ETCD_ENDPOINTS pointing to head node):"
echo
"
$0
"
echo
""
exit
0
;;
*
)
...
...
@@ -37,14 +48,15 @@ if [[ $HEAD_NODE -eq 1 ]]; then
python
-m
dynamo.frontend
--http-port
=
8000 &
# run processor
python3 components/processor.py
--model
$MODEL_NAME
--prompt-template
"<|image|>
\n
<prompt>"
&
# LLama 4 doesn't support image embedding input, so the prefill worker will also
# handle image encoding.
# run EP/D workers
VLLM_NIXL_SIDE_CHANNEL_PORT
=
20097 python3 components/worker.py
--model
$MODEL_NAME
--worker-type
encode_prefill
--enable-disagg
--tensor-parallel-size
=
8
--max-model-len
=
208960 &
python
-m
dynamo.vllm
--multimodal-processor
--model
$MODEL_NAME
--mm-prompt-template
"<|image|>
\n
<prompt>"
&
# Llama 4 doesn't support image embedding input, so the prefill worker will also
# handle image encoding inline.
# run prefill worker
VLLM_NIXL_SIDE_CHANNEL_PORT
=
20097 python
-m
dynamo.vllm
--multimodal-encode-prefill-worker
--is-prefill-worker
--model
$MODEL_NAME
--tensor-parallel-size
=
8
--max-model-len
=
208960
--gpu-memory-utilization
0.80 &
else
# run decode worker on non-head node
VLLM_NIXL_SIDE_CHANNEL_PORT
=
20098 python
3 components/
worker
.py
--model
$MODEL_NAME
--worker-type
decode
--enable-disagg
--tensor-parallel-size
=
8
--max-model-len
=
208960 &
VLLM_NIXL_SIDE_CHANNEL_PORT
=
20098 python
-m
dynamo.vllm
--multimodal-decode-
worker
--model
$MODEL_NAME
--tensor-parallel-size
=
8
--max-model-len
=
208960
--gpu-memory-utilization
0.80
&
fi
# Wait for all background processes to complete
...
...
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