# How to make huge LM fit to multi GPU?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-make-huge-lm-fit-to-multi-gpu%2F20612%3E%5C
**Category:** Beginners\
**Created:** [July 20, 2022, 9:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-make-huge-lm-fit-to-multi-gpu%2F20612 "2022-07-20T09:11:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gksdnrwp](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gksdnrwp](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgksdnrwp)%5C
**Post date:** [July 20, 2022, 9:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-make-huge-lm-fit-to-multi-gpu%2F20612%2F1 "2022-07-20T09:11:28Z")

</div>

I want to implement pipeline parallelism of Huge LMs(saved in huggingface hub) that do not fit into single gpu. I tried to use Deepspeed, however LM from transformers can not be piped as it is not sequential.  
So is there any API that convert transformers to sequential?

Or is there any better way to make Huge LMs to fit into multi gpu?

Thanks in advance.
