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

Tensor Parallel Inside notebook #167

Open
nivibilla opened this issue Apr 29, 2024 · 3 comments
Open

Tensor Parallel Inside notebook #167

nivibilla opened this issue Apr 29, 2024 · 3 comments

Comments

@nivibilla
Copy link
Contributor

Hi,

Im trying to get an example working with Ray on Databricks. Essentially having multiple replicas of the model. Is it possible to load a model with tensor parallelism inside a notebook?

Thanks

@yanboliang
Copy link
Contributor

Yes, you can. gpt-fast uses torchrun to automatically dispatch tasks to different GPU nodes. You can use it just like regular python script.

@kwen2501
Copy link

Is notebook compatible with torchrun? Last time I heard it has limited (or none) multi-processing support.

@yanboliang
Copy link
Contributor

Right, I think you have to find a notebook which support multiprocessing.

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

3 participants