Estimating the tokens per second (TPS) for large language models (LLMs) like Llama 4 Scout, Llama 4 Maverick, Llama 3.1 405b, and Llama 4 Behemoth with 2 trillion parameters involves several factors, including model size, quantization levels, hardware specifications, and memory bandwidth. Given the high-end configuration you've outlined, we can provide a theoretical analysis to estimate the expected performance.
Hardware Configuration Overview:
-
Processors: 2x AMD EPYC 9755 QS
- Each with 128 cores and 256 threads
- Base clock: 2.70 GHz, Boost clock: 4.10 GHz
- Total: 256 cores and 512 threads
-
Memory: 24x 96GB DDR5 ECC 5600 CL46
- Total: 2,304 GB
- Bandwidth: 5600 MT/s
-
GPUs: 3x NVIDIA RTX 4090 D 48GB
- Each with 14,592 CUDA cores
- Base clock: 2,280 MHz, Boost clock: 2,520 MHz
- Total: 43,776 CUDA cores
-
Storage: Samsung 9100 Pro Gen5 4TB (15 GB/s) and Intel Optane P5800X 400GB
Performance Estimation Factors:
-
Model Size and Quantization:
- Llama 4 Scout and Maverick: Assuming these models are in the range of 400 billion parameters.
- Llama 3.1 405b: 405 billion parameters.
- Llama 4 Behemoth: 2 trillion parameters with a 1 million token context window.
Quantization levels (Q4, Q6_K, Q8) affect the memory footprint and computational requirements:
- Q4: 4 bits per parameter.
- Q6_K: 6 bits per parameter.
- Q8: 8 bits per parameter.
-
Memory Requirements:
- Q4: 400B params × 4 bits = 200 GB per model.
- Q6_K: 400B params × 6 bits = 300 GB per model.
- Q8: 400B params × 8 bits = 400 GB per model.
For the 2T parameter model:
- Q4: 2T params × 4 bits = 1,000 GB.
- Q6_K: 2T params × 6 bits = 1,500 GB.
- Q8: 2T params × 8 bits = 2,000 GB.
Your system's 2,304 GB of RAM can accommodate these models, especially with quantization.
-
Computational Throughput:
- CPUs: The AMD EPYC 9755 QS processors offer substantial parallel processing capabilities.
- GPUs: The RTX 4090 D GPUs provide significant computational power, with a combined theoretical performance of approximately 220 TFLOPS (73.54 TFLOPS per GPU).
-
Memory Bandwidth:
- DDR5-5600: Provides high memory bandwidth, crucial for feeding data to CPUs and GPUs efficiently.
- GPU Memory: Each RTX 4090 D has 24 GB of GDDR6X memory with a bandwidth of 1.01 TB/s.
Theoretical Tokens Per Second Estimation:
While exact TPS values depend on the specific implementation and optimization of the models, we can provide a rough estimation based on hardware capabilities:
Considerations:
- Model Optimization: Efficient model parallelism and pipeline parallelism strategies can significantly impact performance.
- I/O Bottlenecks: Ensure that data loading and preprocessing do not become bottlenecks.
- Software Stack: Utilize optimized libraries and frameworks that leverage your hardware capabilities effectively.
These estimations are theoretical and actual performance may vary based on implementation details, workload characteristics, and system optimizations.