AI Practices AI实践 2h ago Updated 2h ago 更新于 2小时前 45

Introducing new Ray capabilities on SageMaker HyperPod 在 SageMaker HyperPod 上推出全新 Ray 功能

AWS integrated Ray with SageMaker HyperPod, enabling data scientists to create, manage, and monitor Ray clusters directly from SageMaker Studio without writing Kubernetes YAML manifests or using kubectl Ray training jobs on HyperPod gain automatic fault tolerance through built-in node health monitoring and recovery, plus tiered checkpointing via HyperPod distributed tiered storage for faster resume SageMaker JumpStart integration allows direct loading of model weights into Ray Serve endpoints, w AWS SageMaker HyperPod 新增原生 Ray 集成,数据科学家可通过 SageMaker Studio 控制台直接创建、管理和监控 Ray 集群,无需编写 Kubernetes YAML 或使用 kubectl Ray 训练作业获得 HyperPod 节点健康监控和自动恢复带来的自动容错能力,以及通过 HyperPod 分布式分层存储实现的快速恢复分层检查点 SageMaker JumpStart 集成可将模型权重直接加载到 Ray Serve 端点,支持 KV 缓存卸载到分层存储以处理长上下文推理请求 提供 `toolkit-for-ray-on-sagemaker-ai`

68
Hot 热度
62
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • AWS integrated Ray with SageMaker HyperPod, enabling data scientists to create, manage, and monitor Ray clusters directly from SageMaker Studio without writing Kubernetes YAML manifests or using kubectl
  • Ray training jobs on HyperPod gain automatic fault tolerance through built-in node health monitoring and recovery, plus tiered checkpointing via HyperPod distributed tiered storage for faster resume
  • SageMaker JumpStart integration allows direct loading of model weights into Ray Serve endpoints, with KV cache offloading to tiered storage for serving long-context requests
  • The integration supports remote job submission via the toolkit-for-ray-on-sagemaker-ai Python package, enabling standard Ray APIs with SageMaker-aware address resolution and IAM authentication
  • All capabilities are compatible with open-source KubeRay and standard Ray APIs, ensuring existing scripts and workflows run without modification

Why It Matters

This integration significantly lowers the barrier for data scientists who want to run distributed Ray workloads at scale on AWS, eliminating the operational complexity of managing Ray on Kubernetes manually. For AI practitioners building and serving foundation models, the combination of automatic fault tolerance, tiered checkpointing, and JumpStart integration directly addresses common pain points in long-running distributed training and production model serving. The backward compatibility with existing Ray workflows means teams can adopt incrementally without rewriting their code.

Technical Details

  • Infrastructure: SageMaker HyperPod runs on Amazon EKS with purpose-built ML infrastructure, including built-in node health monitoring and automatic recovery. The setup requires four EKS add-ons: SageMaker Spaces (for JupyterLab/Code Editor workspaces), HyperPod Observability (for Grafana dashboards), KubeRay operator (manages RayCluster/RayJob/RayService as K8s custom resources), and HyperPod Ray Endpoint Operator (generates authenticated public endpoints).
  • Cluster Management: Data scientists can create Ray clusters via SageMaker Studio UI, specifying head/worker instance types, worker count, and container image (defaulting to the AWS-managed SageMaker Distribution image with Ray pre-installed). An inline YAML editor is available for advanced users.
  • Fault Tolerance & Checkpointing: Ray training jobs benefit from HyperPod's automatic fault tolerance (node health monitoring and recovery) and tiered checkpointing through HyperPod distributed tiered storage, enabling faster job resume after failures.
  • Model Serving: SageMaker JumpStart integration loads model weights directly into Ray Serve endpoints, with KV cache offloading to tiered storage optimized for long-context request serving.
  • Remote Access & Job Submission: The toolkit-for-ray-on-sagemaker-ai package enables remote job submission using standard Ray APIs with a SageMaker-aware address resolver (sagemaker_ray://<cluster>/<namespace>), handling IAM-authenticated endpoint resolution and EKS credential generation transparently.

Industry Insight

  • AWS is deepening its lock-in for teams running open-source Ray workloads by wrapping the operational complexity of Kubernetes orchestration behind a managed console experience, making it increasingly attractive for organizations already invested in the AWS ecosystem while raising the migration cost to other clouds.
  • The emphasis on KV cache offloading to tiered storage for long-context serving reflects the industry's growing focus on inference efficiency for LLMs, suggesting that infrastructure-level optimizations for context management will become a key differentiator in production model serving platforms.
  • The no-modification-required compatibility with existing KubeRay and Ray APIs is a strategic move to accelerate adoption, but teams should evaluate whether the managed abstractions (SageMaker Distribution image, HyperPod add-ons) could create hidden dependencies that limit flexibility compared to self-managed Ray on K8s.

TL;DR

  • AWS SageMaker HyperPod 新增原生 Ray 集成,数据科学家可通过 SageMaker Studio 控制台直接创建、管理和监控 Ray 集群,无需编写 Kubernetes YAML 或使用 kubectl
  • Ray 训练作业获得 HyperPod 节点健康监控和自动恢复带来的自动容错能力,以及通过 HyperPod 分布式分层存储实现的快速恢复分层检查点
  • SageMaker JumpStart 集成可将模型权重直接加载到 Ray Serve 端点,支持 KV 缓存卸载到分层存储以处理长上下文推理请求
  • 提供 toolkit-for-ray-on-sagemaker-ai Python 包,支持通过标准 Ray API 从 Studio、本地机器或 CI/CD 管道远程提交作业
  • 所有功能与开源 KubeRay 和标准 Ray API 兼容,现有脚本和工作流无需修改即可运行

为什么值得看

这项集成显著降低了在 Kubernetes 上运行 Ray 的运维复杂度,将原本需要手动管理 YAML、Docker 镜像、端口转发和监控配置的工作流简化为 SageMaker Studio 中的可视化操作。对 AI 从业者而言,这意味着可以更专注于模型开发和训练,而非基础设施运维;对行业而言,这标志着云厂商正在通过深度集成开源框架与自有基础设施,降低大模型训练和推理的门槛。

技术解析

  • 集群管理简化:SageMaker Studio 提供完整的 Ray 开发环境,用户可通过 Tasks 标签页创建 RayCluster,指定实例类型、节点数量和容器镜像(默认使用预装 Ray 的 SageMaker Distribution 镜像),并支持内联 YAML 编辑器进行高级自定义。
  • 可观测性与访问:通过 HyperPod Observability EKS 插件自动收集 Ray 指标并配置 Amazon Managed Grafana 仪表板;HyperPod Ray Endpoint Operator 生成经过 IAM 认证的公共端点,支持安全远程访问 Ray Dashboard 和提交作业,无需本地端口转发。
  • 容错与检查点:Ray 训练作业利用 HyperPod 的节点健康监控和自动恢复实现自动容错;分层检查点功能借助 HyperPod 分布式分层存储加速作业恢复,减少大规模训练中断后的重训练时间。
  • 推理优化:SageMaker JumpStart 集成支持将模型权重直接加载到 Ray Serve 端点,并实现 KV 缓存卸载到分层存储,优化长上下文请求的推理性能。
  • 远程作业提交toolkit-for-ray-on-sagemaker-ai 包处理端点解析和 EKS API 凭据生成,用户可使用标准 Ray 作业提交 API(如 ray job submit --address sagemaker_ray://<cluster>/<namespace>)从任何位置提交作业。

行业启示

  • 云厂商竞争聚焦开发者体验:AWS 通过深度集成 Ray 与 SageMaker HyperPod,进一步巩固其在机器学习基础设施领域的优势,表明云服务商正通过简化开源框架的部署和运维来吸引 AI 开发者。
  • 大模型训练基础设施趋向自动化:自动容错、分层检查点和智能监控等功能的整合,反映了行业对降低大规模训练运维复杂度的需求,未来类似集成可能成为云 ML 平台的标配。
  • 开源框架与云服务的融合加速:Ray 与 SageMaker 的无缝集成表明,开源分布式计算框架正被云厂商深度整合到自有生态中,这既提升了框架的可用性,也加强了云平台的粘性,开发者应关注此类集成以优化工作流。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Open Source 开源 Training 训练 GPU GPU Deployment 部署 Product Launch 产品发布