SKILL

hf-cloud-sagemaker-production-defaults

创建默认启用自动扩缩、CloudWatch告警和标记的SageMaker端点(实时、实时缩容至零或异步)。每当即将创建SageMaker端点、编写调用`create_endpoint`的部署代码,或在镜像URI和IAM角色已知后完成部署时,使用此技能。提供用于实时端点的deploy.py、用于通过推理组件缩容至零实例的实时端点的deploy_ic.py,以及用于异步端点(同样缩容至零)的deploy_async.py。这是SageMaker部署工作流的最后一步。切勿在没有这些默认设置的情况下生成裸`create_endpoint`调用——没有自动扩缩或告警的端点只是演示,不是部署。

机器翻译
查看英文原文

Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default. Use this skill whenever about to create a SageMaker endpoint, write deployment code that calls `create_endpoint`, or finalize a deployment after the image URI and IAM role are known. Provides deploy.py for real-time endpoints, deploy_ic.py for real-time endpoints that scale to zero instances via inference components, and deploy_async.py for async endpoints (also scale-to-zero). This is the last step in the SageMaker deployment workflow. Never generate a bare `create_endpoint` call without these defaults — endpoints without autoscaling or alarms are demos, not deployments.

适用对象:设计与内容创作。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • SageMaker Production Defaults
  • What gets created
  • Running the deployment
  • InService is not success — smoke-test before declaring victory
  • Testing a real-time endpoint
  • The UTF-8 BOM gotcha (Windows)
  • Invoking a generative reranker (vLLM)
  • Picking the image URI

The difference between a demo endpoint and one you can leave running is: it scales with traffic, it tells you when it breaks, and you can debug it later. This skill makes those three the default rather than optional extras. By the time this skill runs, the planner has chosen a real-time endpoint, IAM has a usable role, and image-selection has resolved a container URI + AMI version. This skill turns those into an actual deployment. For every endpoint, the skill creates these as a unit: 1. SageMaker Model — image + env vars + execution role + S3 artifacts 2. Endpoint config — instance type, initial count, optional data capture 3. Endpoint — the real-time endpoint serving inference 4. Autoscaling target + policy — target tracking on invocations per instance 5. CloudWatch alarms — latency, errors, platform overhead An inference-component deployment (deployic.py) creates the same set with two changes: the endpoint config carries the execution role and ManagedInstanceScaling, and an inference component carries the model. Its autoscaling target is the component, not the variant. Data capture (logging requests/responses to S3) is off by default — useful for debugging but creates ongoing S3

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
huggingface/skills
源文件
skills/hf-cloud-sagemaker-production-defaults/SKILL.md
固定版本
25910b3d0ba31a2ba102f901cdc9e008c278a69c
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:huggingface/skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T16:01:02.693Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

Apache-2.0。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。