# Data Parallelism for multi-GPUs Inference

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-parallelism-for-multi-gpus-inference%2F25003%3E%5C
**Category:** Intermediate\
**Created:** [October 26, 2022, 10:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-parallelism-for-multi-gpus-inference%2F25003 "2022-10-26T10:02:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giulietta](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/giulietta/32/12249_2.png) [@Giulietta](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FGiulietta)%5C
**Post date:** [October 26, 2022, 10:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdata-parallelism-for-multi-gpus-inference%2F25003%2F1 "2022-10-26T10:02:37Z")

</div>

Hi everyone,

I need to do inference on huge size of data and I would like to send the pre-trained HF model to multiple GPUs. Therefore my problem is a data parallel rather than a model parallel. I have seen that DP cannot support model.generate() method. Please, do you have any suggestion about Inference on multi-GPU?

Thanks a lot!
