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

[QUESTION] how to enable multi-gpu when calling the predict method #223

Open
cumtsunzhenxing opened this issue Jul 17, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@cumtsunzhenxing
Copy link

The predict method is called by setting gpus=2, but only one gpu is used.
model.predict(samples=samples,batch_size=2, gpus=2, devices=2, accelerator="gpu", strategy="ddp")

@cumtsunzhenxing cumtsunzhenxing added the question Further information is requested label Jul 17, 2024
@cumtsunzhenxing cumtsunzhenxing changed the title [QUESTION] how to enable multi-gpu when calling the predict method。 [QUESTION] how to enable multi-gpu when calling the predict method Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant