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

How to use LADE in single-node multi-process way? #57

Open
sjrrr13 opened this issue Apr 15, 2024 · 2 comments
Open

How to use LADE in single-node multi-process way? #57

sjrrr13 opened this issue Apr 15, 2024 · 2 comments

Comments

@sjrrr13
Copy link

sjrrr13 commented Apr 15, 2024

I've tried to load LADE distributively with

CUDA_VISIBLE_DEVICES=0,1,2,3 \
USE_LADE=1 LOAD_LADE=1 DIST_WORKERS=4 \
python -m torch.distributed.launch minimal.py

However, when I try to monitor GPU usage with watch nvidia-smi, I've found that only gpu:0 was used. I want to use Llama-2-70b-hf and it can't be loaded in only one GPU. What can I do to use all the GPUs? Is there any problem in my launch command?

@Viol2000
Copy link
Collaborator

minimal.py does not support single-node- multi-process
Please check applications/run_mtbench.sh for examples, thank you!

@Viol2000
Copy link
Collaborator

Maybe minimal.py can also support. Please set torch_device="auto" in the code and not changing DIST_WORKERS=4 and just use python minimal.py

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

No branches or pull requests

2 participants