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

Torch multinode #3051

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Torch multinode #3051

wants to merge 5 commits into from

Conversation

grimoire
Copy link
Collaborator

environment should be same on each node, docker container is recommended.

torchrun \
    --nnodes=2 \     # two nodes
    --nproc-per-node=2 \    # two devices per node
    --no-python \    # run non-python application
    --master-addr ${ADDR_TO_HEAD} \
    --master-port 65123 \
lmdeploy serve api_server Meta-Llama-3-8B-Instruct --backend pytorch \
    --tp 4    # 2node x 2devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant