When building a Proxmox server for running Ollama (a lightweight AI inference tool), selecting the right GPU is critical. NVIDIA's Tesla series GPUs are often used in such setups due to their reliability, cost-effectiveness on the used market, and compatibility with AI workloads. Below is a detailed comparison of Tesla GPUs based on their effectiveness (performance for AI tasks) and price when used with Ollama.
Key Metrics for Comparison
VRAM: Determines the maximum model size you can run.
FP16/INT8 Performance: Crucial for AI inference speed.
TDP (Thermal Design Power): Indicates power consumption and cooling requirements.
Price: Cost on the used market (as of late 2023).
Compatibility: Support for Proxmox PCIe passthrough and CUDA/Ollama.
Comparison Table
GPU Model
VRAM
FP16 Perf
INT8 Perf
TDP
Price (Used)
Best Use Case
Tesla P4
8GB GDDR5
5.3 TFLOPS
~22 TOPS
75W
60−90
Small models (≤13B); light workloads; low power.
Tesla T4
16GB GDDR6
65 TFLOPS
~80 TOPS
70W
150−250
Medium models (13B-30B); good balance of price/performance.
Tesla P40
24GB GDDR5
12 TFLOPS
~48 TOPS
250W
150−200
Large models (30B-70B); slower FP16 but high VRAM.
Massive VRAM (40GB or 80GB) → Ideal for enterprise-grade AI.
Supports advanced features like NVLink for multi-GPU setups.
Cons:
Very expensive (~700−1500).
High power consumption (250W/400W).
Use Case:
Professional use cases requiring extreme performance and scalability.
Multi-GPU setups for massive models or distributed inference.
Recommendations Based on Use Case
1. Casual User / Light Workloads
GPU: Tesla P4
Reason: Low cost, low power, sufficient for small models.
Example Models: llama3:8b, mistral:7b, phi3:3.8b.
2. Mid-Range User / General Purpose
GPU: Tesla T4
Reason: Great balance of price, performance, and VRAM.
Example Models: llama3:13b, mixtral:8x7b.
3. Advanced User / Larger Models
GPU: Tesla P40 or V100
Reason: Higher VRAM for 30B-70B models; P40 is cheaper, V100 is faster.
Example Models: llama3:70b, mixtral:8x7b.
4. Professional / Enterprise
GPU: Tesla A100
Reason: Maximum performance and VRAM for large-scale AI workloads.
Example Models: Distributed inference for gpt-j, gpt-neo, or custom fine-tuned models.
Proxmox-Specific Considerations
PCIe Passthrough:
Ensure your motherboard supports ACS override for isolating multiple GPUs.
Bind GPUs to vfio-pci drivers for passthrough.
Cooling:
Tesla P4/T4 are passively cooled → Requires strong airflow.
P40/V100/A100 generate significant heat → Active cooling recommended.
Power Supply:
Check PSU wattage and PCIe power connectors (P4/T4 require minimal power; P40/V100/A100 need robust PSUs).
Conclusion
Budget-Friendly: Start with a Tesla P4 (~$80) for small models.
Best Value: Upgrade to a Tesla T4 (~$200) for medium-sized models.
High VRAM Needs: Use a Tesla P40 (~180)or∗∗V100∗∗(500) for large models.
Enterprise-Grade: Invest in a Tesla A100 (~$1000+) for extreme performance.
For most users running Ollama in Proxmox, the Tesla T4 strikes the best balance between performance, VRAM, and cost. If you need to run 70B+ models, consider upgrading to a V100 or A100 depending on your budget.
User
I’m planning to build local ai server with proxmox lxc and ollama, I have 3 Tesla p4 gpu should I get mad mi50 gpu?
Assistant
When building a local AI server using Proxmox LXC and Ollama, the choice of GPU(s) is critical for performance, cost-effectiveness, and compatibility. You already have 3 Tesla P4 GPUs, which provide 24GB of VRAM in total (8GB per card). Adding an AMD MI50 GPU to this setup could potentially expand your capabilities, but whether it's worth it depends on several factors. Let's break this down:
Key Considerations
Multi-GPU Compatibility in Ollama:
Ollama supports multi-GPU setups, but it works best with NVIDIA GPUs due to CUDA optimizations.
Mixing NVIDIA (Tesla P4) and AMD (MI50) GPUs can complicate things:
Ollama may not efficiently utilize both AMD and NVIDIA GPUs simultaneously.
Multi-GPU setups typically require all GPUs to be from the same vendor or architecture.
VRAM Requirements:
The Tesla P4 has 8GB VRAM each (total 24GB across 3 cards).
The AMD MI50 has 32GB HBM2 VRAM, which is significantly more than a single Tesla P4.
If you need to run large models (e.g., 70B+), the MI50 alone could handle it without requiring multi-GPU splitting.
Performance:
The Tesla P4 is optimized for inference workloads but has limited FP16/INT8 performance (~5.3 TFLOPS FP16).
The AMD MI50 offers much higher compute performance (~13.3 TFLOPS FP16, ~26.5 TOPS INT8), making it faster for AI inference tasks.
NVIDIA GPUs have better support in the AI ecosystem (CUDA, cuDNN, TensorRT).
AMD GPUs rely on ROCm, which has limited support for AI frameworks like PyTorch and TensorFlow. While Ollama may work with AMD GPUs, the experience may not be as seamless.
Pros and Cons of Adding an AMD MI50
Pros:
Higher VRAM:
A single MI50 (32GB HBM2) can handle large models like llama3:70b without needing multi-GPU setups.
Better Performance:
The MI50 outperforms Tesla P4 in raw compute power, especially for FP16/INT8 workloads.
Future-Proofing:
With 32GB VRAM, the MI50 is better suited for future AI models that require more memory.
Cons:
Compatibility Issues:
Mixing NVIDIA and AMD GPUs in Proxmox can lead to complications in PCIe passthrough and driver management.
Ollama may not efficiently utilize both types of GPUs simultaneously.
ROCm Support:
AMD GPUs use ROCm instead of CUDA. While Ollama may support ROCm, the setup process is less straightforward compared to NVIDIA's CUDA ecosystem.
Power Consumption:
The MI50 has a TDP of 300W, significantly higher than the Tesla P4 (75W per card). Ensure your PSU and cooling system can handle the additional load.
Use Case Analysis
If You Stick with 3x Tesla P4:
Total VRAM: 24GB (8GB × 3).
Performance: Moderate FP16 performance (~5.3 TFLOPS per GPU).
Best Use Case:
Running models ≤70B parameters by splitting across multiple GPUs.
Cost-effective solution if you're comfortable managing multi-GPU setups.
If You Add an AMD MI50:
Single-GPU VRAM: 32GB (no need for multi-GPU splitting).
Performance: Significantly faster than Tesla P4 for AI inference.
Best Use Case:
Running large models (70B+) on a single GPU.
Example: llama3:70b, gpt-j, or custom fine-tuned models.
Simplifies setup compared to managing 3x Tesla P4s.
Recommendation
Option 1: Stick with 3x Tesla P4
If you're already set up with 3 Tesla P4s and they meet your VRAM needs (≤24GB), there’s no urgent need to add an AMD MI50.
Use multi-GPU splitting in Ollama to handle larger models (e.g., llama3:70b).
Option 2: Replace 3x Tesla P4 with 1x AMD MI50
If you frequently run large models (70B+) and want to simplify your setup, consider replacing the 3 Tesla P4s with a single AMD MI50.
This reduces complexity (no multi-GPU splitting) and provides better performance.
Option 3: Keep Both (Not Recommended)
Keeping both NVIDIA (Tesla P4) and AMD (MI50) GPUs introduces unnecessary complexity:
Mixed GPU setups are harder to manage in Proxmox (PCIe passthrough, drivers, etc.).
Ollama may not efficiently utilize both types of GPUs.
Final Verdict
If your primary goal is to run large models (70B+) and simplify your setup, getting an AMD MI50 is a good idea. It offers more VRAM (32GB vs. 24GB total) and better performance than 3 Tesla P4s combined. However, if your current 3 Tesla P4s meet your needs and you’re comfortable managing multi-GPU setups, there’s no immediate need to invest in an MI50.
Alternative Recommendation
If you're open to other options, consider these alternatives:
Upgrade to a Single Tesla T4 (16GB GDDR6):
Better performance than Tesla P4 (65 TFLOPS FP16) at a similar price ($200 used).
Can handle most mid-sized models (≤30B) easily.
Invest in a Used RTX 3090 (24GB GDDR6X):
Offers excellent performance (~35 TFLOPS FP16) and VRAM (24GB) for ~$600 used.
Works seamlessly with Ollama and Proxmox.
Ultimately, the decision depends on your budget, workload requirements, and willingness to manage mixed GPU setups. For simplicity and future-proofing, the AMD MI50 is a strong candidate if you plan to run large models frequently.