# Hardware suggestions

**URL:** <https://discuss.huggingface.co/t/hardware-suggestions/158183>\
**Category:** Beginners\
**Created:** [June 6, 2025, 1:21am UTC](https://discuss.huggingface.co/t/hardware-suggestions/158183 "2025-06-06T01:21:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrewberryman10101](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@Andrewberryman10101](https://discuss.huggingface.co/u/Andrewberryman10101)\
**Post date:** [June 6, 2025, 1:21am UTC](https://discuss.huggingface.co/t/hardware-suggestions/158183/1 "2025-06-06T01:21:17Z")

</div>

Hi,

Apologies if this is a common question. I have a test rig with a 8700 + 3060 12gb running at the moment, but in order to run larger models, is it feasible to run an X99 Xeon (16 or 18 core) along with 128gb RAM, plus 3 or 4 3060 12gb cards (perhaps 3-4 5060ti 16gb cards in future)?

Obviously bigger models could run in system ram but run slower, and anything needing GPU vram would load into that when needed. Is this possible? is the power draw going to be ridiculous?

Im down an AliExpress rabbit hole right now and need some sanity lol!

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 6, 2025, 11:37am UTC](https://discuss.huggingface.co/t/hardware-suggestions/158183/2 "2025-06-06T11:37:11Z")

</div>

For hardware purchase advice, I highly recommend Hugging Face Discord.

> Obviously bigger models could run in system ram but run slower, and anything needing GPU vram would load into that when needed. Is this possible?

Multi-GPU is more difficult than single-GPU in terms of coding and environment settings, but I think many people use multi-GPU for that purpose. Just be careful with `IOMMU` settings in BIOS/UEFI… I hear it’s dangerous.

> **[Parallelism methods](https://huggingface.co/docs/transformers/main/en/perf_train_gpu_many)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> <https://github.com/pytorch/pytorch/issues/24081>
>
> \## 🐛 Bug
> 
> Running pytorch with multiple P40 gpus freeze and is not killable (e…ven kill -9 by root). Only a reboot removes this process.
> 
> Inside docker container (with nvidia-docker2) it freezes docker. https://github.com/NVIDIA/nvidia-docker/issues/1010 
> 
> 
> \## To Reproduce
> 
> Steps to reproduce the behavior:
> 
> 1. Install pytorch 1.0.2
> 2. Run the following code on multiple P40 Gpus
> 
> \`\`\`
> import os
> 
> 
> \###tutorial from https://pytorch.org/tutorials/beginner/blitz/data\_parallel\_tutorial.html
> \###no error with only 1 gpu
> \# os.environ\['CUDA\_VISIBLE\_DEVICES'\] = '0'
> 
> \#### to reproduce error allow multi gpu
> os.environ\['CUDA\_VISIBLE\_DEVICES'\] = '0,1,2,3'
> 
> import torch
> 
> 
> torch.cuda.device\_count()
> 
> import torch.nn as nn
> from torch.utils.data import Dataset, DataLoader
> 
> \# Parameters and DataLoaders
> input\_size = 5000 #increased input size (works with 500 on multi gpu)
> output\_size = 2000 #increased output size (works with 200 on multi gpu)
> 
> batch\_size = 300
> data\_size = 100
> 
> device = torch.device("cuda:0" if torch.cuda.is\_available() else "cpu")
> print(device)
> 
> class RandomDataset(Dataset):
> 
> def \_\_init\_\_(self, size, length):
> self.len = length
> self.data = torch.randn(length, size)
> 
> def \_\_getitem\_\_(self, index):
> return self.data\[index\]
> 
> def \_\_len\_\_(self):
> return self.len
> 
> rand\_loader = DataLoader(dataset=RandomDataset(input\_size, data\_size),
> batch\_size=batch\_size, shuffle=True)
> 
> class Model(nn.Module):
> # Our model
> 
> def \_\_init\_\_(self, input\_size, output\_size):
> super(Model, self).\_\_init\_\_()
> self.fc = nn.Linear(input\_size, output\_size)
> 
> def forward(self, input):
> output = self.fc(input)
> 
> 
> return output
> 
> model = Model(input\_size, output\_size)
> if torch.cuda.device\_count() \> 1:
> print("Let's use", torch.cuda.device\_count(), "GPUs!")
> # dim = 0 \[30, xxx\] -\> \[10, ...\], \[10, ...\], \[10, ...\] on 3 GPUs
> model = nn.DataParallel(model)
> 
> model.to(device)
> 
> for i in range(10000):
> for data in rand\_loader:
> input = data.to(device)
> output = model(input)
> 
> \`\`\`
> 
> 
> \## Expected behavior
> 
> The training
> 
> \## Environment
> 
> Collecting environment information...
> PyTorch version: 1.0.1.post2
> Is debug build: No
> CUDA used to build PyTorch: 10.0.130
> 
> OS: Ubuntu 18.04.2 LTS
> GCC version: (crosstool-NG fa8859cb) 7.2.0
> CMake version: Could not collect
> 
> Python version: 3.5
> Is CUDA available: Yes
> CUDA runtime version: 10.0.130
> GPU models and configuration:
> GPU 0: Tesla P40
> GPU 1: Tesla P40
> GPU 2: Tesla P40
> GPU 3: Tesla P40
> GPU 4: Tesla P40
> GPU 5: Tesla P40
> GPU 6: Tesla P40
> GPU 7: Tesla P40
> 
> Nvidia driver version: 410.79
> cuDNN version: /usr/lib/x86\_64-linux-gnu/libcudnn.so.7.4.2
> 
> Versions of relevant libraries:
> \[pip3\] numpy==1.15.2
> \[conda\] mkl 2018.0.3 1 defaults
> \[conda\] mkl\_fft 1.0.6 py35\_0 conda-forge
> \[conda\] mkl\_random 1.0.1 py35\_0 conda-forge
> \[conda\] nomkl 2.0 0 defaults
> \[conda\] numexpr 2.6.5 py35\_nomklhaa809a4\_0 \[nomkl\] defaults
> \[conda\] pytorch 1.0.1 py3.5\_cuda10.0.130\_cudnn7.4.2\_2 pytorch
> \[conda\] torch 0.4.1 \<pip\>
> \[conda\] torchvision 0.2.2 py\_3 pytorch
> 
> cc @ezyang @gchanan @zou3519 @ngimel

> is the power draw going to be ridiculous?

With that spec, a single GeForce card seems to consume about 200 watts, which is an incredible amount of power, but it seems like it would be about the same as running an air conditioner at full power…
