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

multiple gpus loading #21

Open
hitxujian opened this issue Oct 30, 2023 · 3 comments
Open

multiple gpus loading #21

hitxujian opened this issue Oct 30, 2023 · 3 comments

Comments

@hitxujian
Copy link

is support multiple gpus inference, why not suport load model with device_map='auto',

@HaozheZhao
Copy link
Owner

I'm sorry, but your question is a bit confusing to me : (
Could you please provide more details about your problem or the function you want to solve? It would be helpful if you could also provide some related code.

@hitxujian
Copy link
Author

model = InstructBlipForConditionalGeneration.from_pretrained(
model_ckpt,device_map='auto',
config=config,**{"torch_dtype": torch.bfloat16})

ValueError: InstructBlipForConditionalGeneration does not support device_map='auto'. To implement support, the modelclass needs to implement the _no_split_modules attribute.

@lucasmgomez
Copy link

I also need to use multiple gpu's to load the model. Is that supported?

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