طلب الطاقة من عقدة واحدة أثناء تدريب الذكاء الاصطناعي: قياسات على نظام NVIDIA H100 المكون من 8 وحدات معالجة رسومية Single-Node Power Demand During AI Training: Measurements on an 8-GPU NVIDIA H100 System

شارك:
المجلة: IEEE Access، المجلد: 13
DOI: https://doi.org/10.1109/access.2025.3554728
تاريخ النشر: 2025-01-01
المؤلف: Imran Latif وآخرون
الموضوع الرئيسي: كفاءة الطاقة في الحوسبة

نظرة عامة

تبحث الدراسة في استهلاك الطاقة لمعدات الذكاء الاصطناعي، مع التركيز بشكل خاص على عقدة NVIDIA H100 HGX المكونة من 8 وحدات معالجة الرسوميات أثناء تدريب نماذج مختلفة، بما في ذلك مصنف الصور ResNet ونموذج اللغة الكبير Llama2-13b. قامت الدراسة بقياس استهلاك الطاقة الفوري، حيث وجدت أن الحد الأقصى يبلغ حوالي 8.4 كيلووات، وهو أقل بنسبة 18% من الحد الأقصى المعلن من الشركة المصنعة البالغ 10.2 كيلووات، حتى في ظل ظروف الاستخدام الكامل تقريبًا لوحدات معالجة الرسوميات. ومن الجدير بالذكر أن البحث أظهر أن زيادة حجم الدفعة من 512 إلى 4096 صورة لنموذج ResNet أدت إلى تقليل استهلاك الطاقة الإجمالي أثناء التدريب بمقدار أربعة أضعاف، مما يبرز التأثير الكبير لحجم الدفعة على كفاءة الطاقة.

تؤكد النتائج على أهمية القياسات التجريبية الدقيقة لطلب الطاقة في سياق تطور معدات الذكاء الاصطناعي، حيث قد لا تعكس التقديرات التقليدية الاستخدام الفعلي للطاقة. يمكن أن تساعد النتائج مشغلي مراكز البيانات في تحسين بنيتهم التحتية واستراتيجيات توفير الطاقة. تشمل اتجاهات البحث المستقبلية دراسة تأثير تقنيات التبريد والجدولة المدركة للكربون على استهلاك الطاقة لأحمال العمل الخاصة بالذكاء الاصطناعي، مما قد يعزز الاستدامة في عمليات تدريب الذكاء الاصطناعي.

مقدمة

تسلط مقدمة هذه الورقة البحثية الضوء على تقاطع تقدم التعلم العميق والنمو المقابل في معدات الحوسبة، لا سيما في سياق تطبيقات الذكاء الاصطناعي (AI). مع زيادة حجم نماذج الذكاء الاصطناعي إلى عشرات أو مئات المليارات من المعلمات، زاد الطلب على المعدات القوية، مثل وحدات معالجة الرسوميات ووحدات معالجة الموتر. وقد دفع هذا الاتجاه إلى استثمارات كبيرة من مزودي البنية التحتية السحابية لتعزيز قدراتهم استجابةً لاهتمام المستهلكين. ومع ذلك، فإن توسيع بنية الذكاء الاصطناعي الحسابية يثير مخاوف بشأن تأثيرها الكبير على الطاقة والبيئة، مما يستلزم نماذج دقيقة لتوقع الطلبات المستقبلية على الطاقة.

لمعالجة هذه التحديات، قام المؤلفون بقياس الطلب الفوري على الطاقة لمعدات الذكاء الاصطناعي من الجيل الحالي عبر أحمال تدريب مختلفة، مع دراسة كيفية تأثير بنية النموذج وحجم الدفعة على أداء الطاقة. تم هيكلة الورقة لتقديم خلفية أولاً عن نمو بنية الذكاء الاصطناعي وأهمية القياسات الدقيقة للطاقة لنمذجة الطاقة. تتناول الأقسام اللاحقة المنهجية التجريبية، بما في ذلك تكوينات الأجهزة وأساليب قياس الطاقة، تليها عرض للطلبات المسجلة للطاقة عبر جولات تدريب مختلفة. تهدف النتائج إلى إبلاغ تخطيط سعة مراكز البيانات وتقدير الطاقة، مع تحديد القيود واقتراح اتجاهات للبحث المستقبلي.

الطرق

في هذا القسم، يوضح المؤلفون منهجيتهم لقياس استهلاك الطاقة بشكل تجريبي أثناء التدريب على معدات التعلم الآلي (ML) المتخصصة المعاصرة. قاموا بإجراء جولات تدريب على عقدة NVIDIA H100 HGX المكونة من 8 وحدات معالجة الرسوميات في مختبر بروكهافن الوطني، مع التركيز على توصيف ملفات الطاقة لأحمال العمل المختلفة للذكاء الاصطناعي. لضمان صلة وموثوقية نتائجهم، استخدموا نماذج ومجموعات بيانات مفتوحة المصدر تُستخدم عادةً في مجتمع التعلم الآلي، مثل تلك من MLPerf. شملت أحمال العمل المختارة نموذج ResNet، وهو شبكة تصنيف الصور، ونموذج Llama2-13b، وهو نموذج لغة كبير حديث، لتمثيل مجموعة من كثافات الحوسبة.

لتوضيح نتائجهم، قام المؤلفون بإجراء اختبار إجهاد للأجهزة، يُشار إليه باسم “احتراق GPU”، والذي أقصى استخدام وحدات معالجة الرسوميات ووحدات المعالجة المركزية والذاكرة. كان هذا الاختبار بمثابة تجربة تحكم، حيث قدم حداً أعلى لاستهلاك الطاقة للنظام تحت أقصى حمل. من خلال مقارنة الطلبات على الطاقة لأحمال العمل الخاصة بالتعلم الآلي مع هذا الحد النظري الأعلى، كان الهدف من المؤلفين هو تقييم قابلية تطبيق أحمال العمل الإنتاجية الخاصة بهم. ستفصل الأقسام الفرعية اللاحقة إعداد التجربة، بما في ذلك تكوين الأجهزة، وبيئة البرمجيات، وبنية النماذج، ومجموعات البيانات، ومنهجية جمع البيانات، وقيود الدراسة.

النتائج

توفر نتائج هذه الدراسة رؤى حاسمة حول استهلاك الطاقة وكفاءة الطاقة في تدريب الذكاء الاصطناعي على الأجهزة المعاصرة. تشمل النتائج الرئيسية الحد الأقصى الملحوظ لاستهلاك الطاقة البالغ 8.4 كيلووات أثناء اختبار احتراق GPU/CPU، والذي يبقى أقل من الحد الأقصى المعلن من الشركة المصنعة البالغ 10.2 كيلووات. حقق تدريب نموذج Llama متوسط حمل GPU قدره 93% مع استهلاك طاقة وسطي قدره 7.9 كيلووات، مما يبرز الحاجة إلى بيانات تجريبية في تقدير استخدام الطاقة في مراكز البيانات. ومن الجدير بالذكر أن زيادة حجم دفعة تدريب ResNet من 512 إلى 4096 صورة أدت إلى زيادة متوسطة في الطاقة قدرها 1 كيلووات ولكنها قللت من استهلاك الطاقة بمقدار أربعة أضعاف.

كشفت تحليل الطلب على الطاقة خلال سيناريوهات التدريب المختلفة أن نموذج ResNet المدرب بحجم دفعة قدره 512 صورة كان لديه طلب طاقة وسطي قدره 4.68 كيلووات على مدار 26 ساعة، بينما أدى حجم الدفعة الأكبر من 4096 صورة إلى استهلاك طاقة وسطي قدره 6.26 كيلووات على مدار 5 ساعات فقط. بالنسبة لنموذج Llama2-13b، المدرب بحجم دفعة قدره 128 زوج من الصور والأسئلة، كان استهلاك الطاقة الوسيط 7.92 كيلووات على مدار 8 ساعات. أظهرت القياسات التجريبية باستمرار أن استهلاك الطاقة لم يقترب من الحد الأقصى المعلن، حيث تجاوز الطلب الوسيط على الطاقة خلال اختبارات الإجهاد بشكل طفيف فقط ذلك الخاص بعبء عمل Llama. تؤكد هذه النتائج موثوقية البيانات التجريبية في توصيف متطلبات الطاقة للمهام الحسابية المكثفة.

المناقشة

في هذا القسم، تركز المناقشة على قياسات الطلب على الطاقة لإعداد معين من الأجهزة الحاسوبية، لا سيما عقدة NVIDIA HGX، والآثار المترتبة على كفاءة الطاقة في أحمال العمل الخاصة بالذكاء الاصطناعي. تسلط الدراسة الضوء على أن نتائج استهلاك الطاقة تعتمد على التكوين الفريد لمعدات تكنولوجيا المعلومات والتبريد، مما قد يحد من قابلية تعميم النتائج. يتم الاعتراف بتغير أداء الطاقة بسبب الاختلافات في المكونات الداعمة وعمليات التصنيع، مما يشير إلى أن البحث المستقبلي يجب أن يشمل مجموعة أوسع من تكوينات الخوادم لتعزيز موثوقية النتائج.

يكشف التحليل أن استخدام الطاقة والطلب الفوري على الطاقة حساس لاختيارات المعلمات الفائقة، لا سيما حجم الدفعة، الذي يؤثر بشكل كبير على استهلاك الطاقة وإجمالي استهلاك الطاقة. على سبيل المثال، أدى حجم دفعة أصغر إلى انخفاض ملحوظ في الطلب على الطاقة ولكنه زاد من استخدام الطاقة الإجمالي. تشير النتائج إلى أن البنية التحتية الحالية يمكن أن تستوعب وحدات معالجة الرسوميات الإضافية مع الحفاظ على التكرار، وتؤكد على الحاجة إلى قياس دقيق لاستهلاك الطاقة عبر المكونات لتحسين أداء الأجهزة. تختتم المناقشة بدعوة لمزيد من التحقيق في تأثير تقنيات التبريد واستراتيجيات التدريب الموزعة على كفاءة الطاقة، فضلاً عن إمكانية الجدولة المدركة للكربون للتخفيف من الآثار البيئية المرتبطة بالزيادة في الطلبات الحسابية في الذكاء الاصطناعي.

Journal: IEEE Access, Volume: 13
DOI: https://doi.org/10.1109/access.2025.3554728
Publication Date: 2025-01-01
Author(s): Imran Latif et al.
Primary Topic: Energy Efficiency in Computing

Overview

The research investigates the energy consumption of AI hardware, specifically focusing on an 8-GPU NVIDIA H100 HGX node during the training of various models, including the ResNet image classifier and the Llama2-13b large-language model. The study empirically measured the instantaneous power draw, finding a maximum of approximately 8.4 kW, which is 18% lower than the manufacturer’s rated maximum of 10.2 kW, even under conditions of near-full GPU utilization. Notably, the research revealed that increasing the batch size from 512 to 4096 images for the ResNet model resulted in a fourfold reduction in total training energy consumption, highlighting the significant impact of batch size on energy efficiency.

The findings underscore the importance of accurate empirical measurements of power demand in the context of evolving AI hardware, as traditional estimates may not reflect actual energy use. The results can aid data center operators in optimizing their infrastructure and energy provisioning strategies. Future research directions include examining the effects of cooling technologies and carbon-aware scheduling on the energy consumption of AI workloads, which could further enhance sustainability in AI training processes.

Introduction

The introduction of this research paper highlights the intersection of deep learning advancements and the corresponding growth in computational hardware, particularly in the context of artificial intelligence (AI) applications. As AI models have scaled to tens or hundreds of billions of parameters, the demand for powerful hardware, such as GPUs and tensor processing units, has surged. This trend has prompted significant investments from cloud infrastructure providers to enhance their capabilities in response to consumer interest. However, the expansion of AI computational infrastructure raises concerns about its substantial energy and environmental impact, necessitating accurate models to project future energy demands.

To address these challenges, the authors have empirically measured the instantaneous power demand of current-generation AI hardware across various training workloads, examining how model architecture and memory-batch size influence energy performance. The paper is structured to first provide background on the growth of AI infrastructure and the importance of precise power measurements for energy modeling. Subsequent sections detail the empirical methodology, including hardware configurations and power measurement approaches, followed by a presentation of the recorded power demands across different training runs. The findings aim to inform data center capacity planning and energy estimation, while also identifying limitations and suggesting directions for future research.

Methods

In this section, the authors outline their methodology for empirically measuring the power draw of in-workload training on contemporary machine learning (ML) specialized hardware. They conducted training runs on an 8-GPU Nvidia H100 HGX Node at the Brookhaven National Laboratory, focusing on characterizing the power profiles of various AI workloads. To ensure the relevance and replicability of their findings, they utilized open-source models and datasets commonly employed in the ML community, such as those from MLPerf. The selected workloads included ResNet, an image classification network, and Llama2-13b, a modern large language model, to represent a range of computational intensities.

To contextualize their results, the authors performed a hardware stress test, referred to as a “GPU burn,” which maximized GPU, CPU, and memory utilization. This stress test served as a control experiment, providing an upper bound on the power draw of the system under maximum load. By comparing the power demands of the ML workloads to this theoretical upper bound, the authors aimed to evaluate the applicability of their production workloads. The subsequent subsections will detail the experimental setup, including hardware configuration, software environment, model architectures, datasets, data collection methodology, and limitations of the study.

Results

The results of this study provide critical insights into the power consumption and energy efficiency of AI training on contemporary hardware. Key findings include a maximum observed power draw of 8.4 kW during GPU/CPU burn control, which remains below the manufacturer-rated maximum of 10.2 kW. The training of the Llama model achieved an average GPU load of 93% with a median power draw of 7.9 kW, further emphasizing the necessity for empirical data in estimating data center energy use. Notably, increasing the ResNet training batch size from 512 to 4096 images resulted in an average power increase of 1 kW but reduced energy consumption by a factor of four.

The analysis of power demand during various training scenarios revealed that the ResNet model trained with a batch size of 512 images had a median power demand of 4.68 kW over 26 hours, while the larger batch size of 4096 images resulted in a median power draw of 6.26 kW over just 5 hours. For the Llama2-13b model, trained with a batch size of 128 image question-answer pairs, the median power consumption was 7.92 kW over 8 hours. The empirical measurements consistently indicated that the power draw did not approach the rated maximum, with the median power demand during stress tests only marginally exceeding that of the Llama workload. These findings underscore the reliability of the empirical data in characterizing the power requirements for intensive computational tasks.

Discussion

In this section, the discussion focuses on the power demand measurements of a specific computational hardware setup, particularly an NVIDIA HGX node, and the implications for energy efficiency in AI workloads. The study highlights that the power consumption results are contingent upon the unique configuration of IT and cooling hardware, which may limit the generalizability of the findings. Variability in power performance due to differences in supporting components and manufacturing processes is acknowledged, suggesting that future research should encompass a broader range of server configurations to enhance the robustness of the results.

The analysis reveals that the energy use and instantaneous power demand are sensitive to hyperparameter choices, particularly batch size, which significantly affects power draw and total energy consumption. For instance, a smaller batch size led to a notable decrease in power demand but increased overall energy usage. The findings indicate that the existing infrastructure could accommodate additional GPU nodes while maintaining redundancy, and emphasize the need for detailed sub-metering of power draw across components to optimize hardware performance. The discussion concludes with a call for further investigation into the impact of cooling technologies and distributed training strategies on energy efficiency, as well as the potential for carbon-aware scheduling to mitigate environmental impacts associated with increased computational demands in AI.