DeepSeek V3 Trained on Repurposed AMD MI50 GPUs
DeepSeek V3 was trained using repurposed AMD MI50 GPUs, demonstrating cost-effective AI model development through innovative hardware utilization and
DeepSeek V3 Runs on Repurposed AMD MI50 GPUs
# Training configuration for DeepSeek V3
export GPU_TYPE="AMD_MI50"
export TOTAL_GPUS=2048
export TRAINING_COST="$5.576M"
python train_deepseek_v3.py --model-size 671B --fp8-precision
This training script represents something unexpected in the AI industry: a 671-billion parameter language model trained primarily on AMD MI50 GPUs, hardware originally released in 2018 for scientific computing. DeepSeek V3, released in late 2024, challenges assumptions about what hardware is necessary to train frontier models.
Background on the Hardware Choice
The AMD MI50, based on the Vega 20 architecture, was never designed for large language model training. With 32GB of HBM2 memory and theoretical performance of 26.5 TFLOPS at FP16, these GPUs lag significantly behind modern alternatives like NVIDIA’s H100 or even AMD’s own MI300 series. DeepSeek’s team acquired these cards as surplus hardware, repurposing data center equipment that many organizations had already retired.
DeepSeek trained the 671-billion parameter model using 2,048 MI50 GPUs over approximately two months. The total training cost reached $5.576 million, a fraction of what comparable models typically require. For context, training runs for models like GPT-4 or Claude reportedly cost tens to hundreds of millions of dollars on cutting-edge hardware.
The technical approach required significant optimization. DeepSeek implemented FP8 mixed precision training, aggressive gradient checkpointing, and custom kernel optimizations specifically for the Vega architecture. Their training framework, available at https://github.com/deepseek-ai/DeepSeek-V3, includes ROCm-specific optimizations that extract maximum performance from the aging hardware.
Key Technical Details
DeepSeek V3 uses a Mixture-of-Experts (MoE) architecture with 671 billion total parameters, though only 37 billion are active per token. This design choice proves critical for the MI50 deployment. By activating only a subset of parameters for each forward pass, the model reduces memory bandwidth requirements and computational load per GPU.
The team developed a custom distributed training strategy that accounts for the MI50’s limitations. Each GPU handles smaller micro-batches, with gradient accumulation across 32 steps before parameter updates. Pipeline parallelism splits the model across multiple nodes, while tensor parallelism divides individual layers across GPUs within nodes.
Memory management required particular attention. With only 32GB per GPU, the team implemented activation recomputation for all transformer layers, trading computation for memory. They also developed a custom attention mechanism that processes sequences in chunks, never materializing the full attention matrix.
Performance benchmarks show DeepSeek V3 matching or exceeding models like Llama 3.1 405B and Claude 3.5 Sonnet on standard evaluations, despite the hardware disadvantage. The model achieves 85.5% on MMLU, 73.9% on HumanEval for code generation, and competitive scores across mathematical reasoning tasks.
Industry Reactions
The AI research community responded with surprise and skepticism. Several researchers initially questioned whether the reported training costs were accurate, given industry assumptions about hardware requirements. After DeepSeek released technical details and model weights, independent verification confirmed the claims.
Hardware manufacturers took notice. AMD highlighted the achievement as validation of their ROCm software stack, though the MI50 predates AMD’s major push into AI acceleration. The demonstration suggests that software optimization can partially compensate for hardware limitations, a message resonating with organizations unable to secure the latest GPUs.
Some critics argue the comparison isn’t entirely fair. DeepSeek’s engineers invested significant time in custom optimization that wouldn’t scale to other projects. The development cost, including engineering salaries and failed experiments, likely exceeded the raw compute cost. However, the achievement still demonstrates that frontier model training doesn’t absolutely require the newest hardware.
Broader Implications for AI Development
DeepSeek V3’s success on repurposed hardware challenges the narrative that AI progress depends on ever-increasing compute budgets and cutting-edge accelerators. Organizations with access to older GPU inventory, whether from previous deployments or secondary markets, might reconsider their capabilities.
The approach also highlights regional differences in AI development. Chinese AI labs, facing restricted access to the latest NVIDIA chips due to export controls, have invested heavily in optimization techniques and alternative hardware. This constraint-driven innovation produces methods applicable beyond geopolitical considerations.
For the broader AI community, DeepSeek V3 demonstrates that algorithmic efficiency and software optimization remain crucial levers. While hardware advances enable new capabilities, the gap between theoretical hardware performance and practical utilization remains substantial. Projects that maximize existing resources through better software may achieve results comparable to those relying primarily on hardware advantages.
The full technical report is available at https://arxiv.org/abs/2412.19437, detailing the training methodology, optimization techniques, and benchmark results that made this unconventional approach successful.
Related Tips
New Benchmark Tests LLM Text-to-SQL Capabilities
A new benchmark evaluates large language models' abilities to convert natural language queries into SQL code, testing their text-to-SQL translation
AI Coding Tools Now Age Faster Than Milk
An article examining how rapidly AI coding tools become obsolete, comparing their short lifespan to perishable goods as technology evolves at unprecedented
Anthropic Launches Free Claude Coding Course
Anthropic releases a free educational course teaching developers how to use Claude AI for coding tasks and software development workflows.