3CBench: A Unified Benchmarking Framework for the Computing Capacity of Heterogeneous AI Clusters

W Zhang, Xizhi Wang, Jun Yan, Jianhua Feng, Yiying Liu, Haiyan Li, Qun Chen, Zhe Tang, Xin Cui, Fei YangResearch Square 2025

Abstract

The rapid evolution of Artificial Intelligence has driven the demand for extensive computational resources and the deployment of AI tasks across heterogeneous computing platforms. However, existing benchmarking systems face several challenges, including limited compatibility with diverse hardware, insufficient support for varied deep learning frameworks and tasks, and a lack of comprehensive evaluation metrics for the computing capacities. To address these issues, we propose 3CBench, a unified benchmarking framework designed for heterogeneous AI clusters. Featuring a modular architecture encompassing environment management, task execution, and metrics analysis, 3CBench provides automated workflows and ensures seamless compatibility with diverse GPU architectures and deep learning frameworks. It provides a comprehensive evaluation metrics system to rigorously assess computational performance and stability across both transformer-based large language models and convolutional neural networks, thereby covering dominant deep learning architectures. Extensive experiments demonstrate 3CBench’s scalability on heterogeneous AI clusters, compatibility with various deep learning frameworks and tasks, and the support for a wide range of applications. Additionally, 3CBench aids in problem diagnosis during the development process of GPU vendors. These features establish 3CBench as a robust tool for benchmarking, optimization, and system-level evaluation in heterogeneous AI clusters.

Introduction

As AI models like Llama 3 and Qwen grow to hundreds of billions of parameters, the demand for massive compute has outpaced the dominance of a single hardware provider. While NVIDIA remains the industry standard, a "heterogeneous" ecosystem of alternative chips—including Huawei Ascend, Cambricon, and Moore Threads—is rapidly emerging.

However, benchmarking these diverse clusters is currently a fragmented process. Existing tools are often vendor-locked (e.g., NVIDIA Nsight), framework-dependent (e.g., tightly integrated into PyTorch), or inconsistent in their metrics, leading to "apples-to-oranges" comparisons between different chip architectures. 3CBench aims to solve this by providing a modular, automated, and hardware-agnostic framework that treats "computing capacity" as a multi-dimensional metric.

The 3CBench Framework

3CBench is designed with a modular architecture to ensure flexibility and scalability across various computing environments. It automates the entire workflow, from environment setup to metric calculation, providing a standardized way to compare performance across different GPU vendors.

The 3CBench workflow: from environment management to metric calculation.

Modular Architecture

The system is divided into layers that decouple benchmarking logic from the underlying hardware:

  1. Support Various Computing Environments: Handles bare metal, containerized, and heterogeneous environments including AI chips, servers, networks, and storage.
  2. Benchmark Framework & Automated Evaluation Toolkits: Includes benchmarking cases, models, and computing frameworks, alongside tools for log analysis, metric calculation, and resource monitoring.
  3. Hardware Adapter: Uses Docker-based adapters to ensure the same test can run on an A100 or an anonymous domestic GPU with minimal configuration changes.
  4. Evaluation Metrics: Standardizes the assessment of computational performance, convergence, and stability.
The modular architecture of 3CBench, illustrating the layers from hardware support to evaluation metrics.

Core Pillars

  • Environment Management: Decouples logic from hardware via adapters.
  • Task Execution: Manages resource monitoring (CPU, GPU, memory, power) and distributed training/inference tasks.
  • Metric Calculation: Categorizes performance into Computational Performance (TFLOPS, MFU), Convergence Performance (Loss, Accuracy), and Stability (Effective Training Time Ratio).

Experimental Setup

To validate the framework, the authors utilized several industry-standard models and datasets:

  • Models: Llama-2 (7B), Llama-3 (8B), BERT-large (representing Transformers), and ResNet-50 (representing CNNs).
  • Datasets: The OSCAR corpus, C4-EN, Dolma Books, and WikiText-103.
  • Hardware: Evaluations were performed on NVIDIA A100 and V100 clusters, as well as five "anonymous" AI devices from various vendors to demonstrate cross-hardware compatibility.

Key Insights and Results

Beyond Raw TFLOPS

A critical insight from 3CBench is the importance of the Effective Training Time Ratio. Raw TFLOPS do not account for initialization, failure recovery, or synchronization delays. A fast chip that crashes frequently or has poor networking may have lower real-world capacity than a slower, more stable one.

Performance and Scalability

  • Competitive Alternatives: In head-to-head tests on Llama2-7B, one anonymous device ("Device-01") achieved 227.43 TFLOPS/GPU, slightly surpassing the NVIDIA A100's 225.95 TFLOPS/GPU in that specific configuration.
  • Scalability Trends: Testing on clusters up to 512 GPUs (64 nodes) showed that while accumulated TFLOPS grow, the per-GPU efficiency gradually decreases due to communication overhead, providing a clear "scaling law" for cluster architects.
  • Diagnostic Power: 3CBench successfully identified "alignment" issues where a new GPU vendor's software stack caused loss divergence. By using the framework's convergence metrics, vendors were able to identify and fix algorithmic discrepancies.

Conclusion and Future Work

3CBench establishes a robust tool for benchmarking, optimization, and system-level evaluation in heterogeneous AI clusters. Future versions aim to provide deeper profiling for complex foundation models and integrate a more intuitive visualization interface to help practitioners perform root-cause analysis on performance bottlenecks more easily.

Summary updated

BibTeX
@inproceedings{zhang2025cbench,
  author = {W Zhang and Xizhi Wang and Jun Yan and Jianhua Feng and Yiying Liu and Haiyan Li and Qun Chen and Zhe Tang and Xin Cui and Fei Yang},
  title = {{3CBench: A Unified Benchmarking Framework for the Computing Capacity of Heterogeneous AI Clusters}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-7602328/v1},
}
Figure