arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.14701cs.DCcs.LG
收藏

驯服内存巨兽:在 Kubernetes 上进行可靠机器学习训练的策略

Taming the Memory Beast: Strategies for Reliable ML Training on Kubernetes

Jaideep Ray

AI总结:

本文针对 Kubernetes 上机器学习训练的内存管理难题,分析请求限制、QoS 与驱逐机制及常见陷阱,并提出稳定可扩展的最佳实践以避免 OOM。

摘要:

Kubernetes 为机器学习训练提供了强大的编排平台,但由于专业化需求和资源约束,内存管理可能颇具挑战。本文概述了 Kubernetes 如何处理机器学习工作负载的内存请求、限制、Quality of Service 类别和驱逐策略,并特别关注 GPU 内存和临时存储。文中考察了过度承诺、内存泄漏和临时卷耗尽等常见陷阱。随后,我们提供了稳定、可扩展内存利用的最佳实践,以帮助机器学习从业者防止 out-of-memory 事件,并确保高性能的机器学习训练流水线。

英文摘要:

Kubernetes offers a powerful orchestration platform for machine learning training, but memory management can be challenging due to specialized needs and resource constraints. This paper outlines how Kubernetes handles memory requests, limits, Quality of Service classes, and eviction policies for ML workloads, with special focus on GPU memory and ephemeral storage. Common pitfalls such as overcommitment, memory leaks, and ephemeral volume exhaustion are examined. We then provide best practices for stable, scalable memory utilization to help ML practitioners prevent out-of-memory events and ensure high-performance ML training pipelines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑