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

`device_map='auto' support for BertForSequenceClassification for inference using large models #30103

Closed
tnnandi opened this issue Apr 7, 2024 · 1 comment

Comments

@tnnandi
Copy link

tnnandi commented Apr 7, 2024

Feature request

Currently, from_pretrained() for BertForSequenceClassification does not support device_map='auto', and is preventing inference using large models that don't fit into a single GPU. I'd also appreciate it if you could suggest the best alternative right now.

Motivation

Inference using large models that don't fit into a single GPU is a big issue.

Your contribution

N/A

@amyeroberts
Copy link
Collaborator

Closing, as this is a duplicate of #25296.

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