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

Placing a Translator on GPU N > 0 allocates memory on GPU 0 #127

Closed
guillaumekln opened this issue Feb 25, 2020 · 0 comments · Fixed by #128
Closed

Placing a Translator on GPU N > 0 allocates memory on GPU 0 #127

guillaumekln opened this issue Feb 25, 2020 · 0 comments · Fixed by #128
Labels
enhancement New feature or request

Comments

@guillaumekln
Copy link
Collaborator

The code below will allocate some memory on GPU 0 even if the Translator is placed on another device:

import ctranslate2
translator = ctranslate2.Translator("ende_transformer", device="cuda", device_index=1)

Ideally, it should only allocate on GPU 1.

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

Successfully merging a pull request may close this issue.

1 participant