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

Use EasyLM to pre-train llama-7B using Nvidia GPU #78

Open
zhpacer opened this issue Jul 24, 2023 · 2 comments
Open

Use EasyLM to pre-train llama-7B using Nvidia GPU #78

zhpacer opened this issue Jul 24, 2023 · 2 comments

Comments

@zhpacer
Copy link

zhpacer commented Jul 24, 2023

Do we have the training script to pre-train a llama-7B model using GPU such as A100? Current examples are based on TPU. Don't know if there are some difference. thanks.

@young-geng
Copy link
Owner

I believe the configuration would be very similar, although you might need to tune the mesh dimensions according to your cluster configuration and network topology to get the best performance. Specifically, you'll want to add these options when training on GPUs in a multihost environment:

python -m EasyLM.models.llama.llama_train \
    --jax_distributed.initialize_jax_distributed=True \
    --jax_distributed.coordinator_address=<your coordinator (process 0) address and port> \
    --jax_distributed.num_processes=<total number of processes (hosts)> \
    --jax_distributed.process_id=<current process id>

@zhpacer
Copy link
Author

zhpacer commented Jul 24, 2023

Great thanks, I will have a try

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