Training an LLM similar to DeepSeek-V2 (236B total parameters, 21B active parameters, trained on 3.1 trillion tokens) on just two Cerebras CS-3 systems would be extremely long, likely impractical, and could span many years.
Let's break down why:
-
DeepSeek-V2's Scale:
- Parameters: 236 billion (MoE, with 21 billion active per token).
- Training Tokens: 3.1 trillion.
- Original Training: While exact details are proprietary, large models of this scale often require clusters of thousands of high-end GPUs (e.g., 8000+ A100s or H100s) and take months (e.g., 3-6 months). This represents an immense amount of compute. A common estimate for the total FLOPs consumed for DeepSeek-V2 is in the range of ExaFLOPs (10^18 FLOPs) or even ZettaFLOPs (10^21 FLOPs).
-
Cerebras CS-3 System Capabilities:
- Architecture: Each CS-3 features the Wafer-Scale Engine 3 (WSE-3), a single, massive chip.
- AI Cores: 900,000 AI cores.
- On-Chip Memory: 44 GB of ultra-fast SRAM.
- Peak Performance: Approximately 1.8 PetaFLOPs/second (FP16).
- Scaling: Cerebras systems excel at running very large models within a single system due to their massive on-chip memory and interconnect, minimizing inter-chip communication bottlenecks. When scaling beyond one system, Cerebras uses its "Swarm" technology for inter-wafer communication.
-
Two Cerebras CS-3 Systems:
- Aggregate Peak Performance: 2 systems * 1.8 PetaFLOPs/second = 3.6 PetaFLOPs/second (FP16).
-
The Comparison and Bottleneck:
- Raw Compute Discrepancy: The cluster used to train DeepSeek-V2 likely had a theoretical peak compute capacity in the ExaFLOPs range (thousands of PetaFLOPs), potentially ~700 times higher than two CS-3 systems.
- Model Size and Memory: DeepSeek-V2's 236B total parameters, even as MoE, implies a model size (in BF16) of around 472 GB. While Cerebras is excellent at managing memory and weights with its internal architecture, the total model parameters would need to be distributed across the two systems, and potentially involve off-chip DRAM, introducing additional communication.
- Data Throughput: Training on 3.1 trillion tokens requires a massive, sustained data throughput, which can be a bottleneck regardless of the compute engine.
-
Estimated Training Time (Highly Speculative):
-
Let's assume, for a very optimistic upper bound, that two CS-3 systems could sustain an average of 50% of their peak theoretical performance for this workload, which is 1.8 PetaFLOPs/second (1.8 x 10^15 FLOPs/s).
-
If we consider DeepSeek-V2 to require roughly 2 * P_active * T FLOPs (a simplified approximation for MoE training, where P_active is 21B and T is 3.1T tokens), that's 2 * 21e9 * 3.1e12 = 1.302 x 10^23 FLOPs.
-
Time = Total FLOPs / Sustained FLOPs/second
1.302 x 10^23 FLOPs / (1.8 x 10^15 FLOPs/s) = 7.23 x 10^7 seconds
7.23 x 10^7 seconds / (3600 seconds/hour * 24 hours/day * 365.25 days/year) ≈ 2.29 years
-
However, this calculation is likely an underestimate. The actual FLOPs consumed for MoE models, especially with their routing and the management of all parameters, can be much higher than 2 * P_active * T. If we consider the actual FLOPs consumed by the original DeepSeek-V2 training (which some estimates put much higher, potentially in the ExaFLOPs to ZettaFLOPs range based on the large clusters and time used), the time increases dramatically.
-
If DeepSeek-V2 consumed, for example, 1.94 x 10^25 FLOPs (a figure sometimes cited for very large models of this class on extensive clusters), then:
1.94 x 10^25 FLOPs / (1.8 x 10^15 FLOPs/s) = 1.07 x 10^10 seconds
1.07 x 10^10 seconds / (3600 * 24 * 365.25) ≈ 340 years
Conclusion:
A direct, full-scale training run of an LLM truly similar to DeepSeek-V2 (same parameter count, same token count) on only two Cerebras CS-3 systems would be highly impractical and take many, many years (potentially decades or even centuries).
While Cerebras systems offer significant advantages in memory bandwidth and simplified parallelism for large single models and achieving high utilization, their aggregate raw computational power from just two units is orders of magnitude less than the immense GPU clusters used for models like DeepSeek-V2.
What could two Cerebras CS-3 systems train effectively?
- Smaller MoE models: Perhaps an MoE model with a total of tens of billions of parameters, rather than hundreds.
- Larger dense models: Potentially dense models in the 70B-100B parameter range, but likely with fewer total training tokens than DeepSeek-V2, and still taking many months.
- Fine-tuning: Fine-tuning a pre-trained DeepSeek-V2-sized model (which requires less compute than full pre-training) would be much more feasible.
- Research into specific large model architectures: Where the unique properties of the Cerebras architecture (e.g., extremely low latency within the wafer, massive on-chip memory) offer a significant advantage over distributed GPU systems for a particular type of computation or memory access pattern.