最新资讯
reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者 techcrunch.com Palo Alto Networks 洽谈以 5 亿美元收购 AI Agent 安全初创公司 Clutch theinformation.com 黄仁勋被要求就涉华间谍指控向国会作简报 www.infoq.com Edera 推出 Object Capability Bounded Authority,试图将凭证与 AI Agent 工作负载隔离 wechat 这波杀疯了!旗舰级模型不限量、1个月视频额度免费领 bloomberg.com AI 抛售蔓延至信用市场,软银领跌亚洲美元债 dev.to 如何在专用 GPU 服务器上用 OpenAI 兼容 API 部署 LLM dev.to 审计 153 份 Claude Code 与 Codex 会话记录:User-Agent 与 URL 中的邮箱泄露
多元动态
登录 注册
开源工具 aws.amazon.com · @Vamsi Goparaju

使用 Amazon SageMaker JumpStart 部署与评估模型

原文 我的收藏

AWS 官方博客介绍从 SageMaker JumpStart 部署预训练模型、用 SageMaker Python SDK 运行轻量可重复的性能测试(测量延迟、近似输出长度和单请求生成速率),并在测试完成后删除端点。文中提到 2026 年 JumpStart 新增 Model Hub 浏览与示例 notebook 直达 SageMaker Studio、面向低成本/低延迟/通用负载的预配置端点选项,以及从 Hugging Face 一键跳转部署的集成。作者指出该流程适用于多种兼容模型,但 payload 格式、实例类型、EULA 和响应结构可能需按模型调整,部署时间受模型、实例类型、配额和区域影响。

AI推荐理由 AWS 官方博客,给出 SageMaker JumpStart 部署、用 SageMaker Python SDK 做轻量可重复性能测试(延迟、输出长度、单请求生成速率)并清理端点的完整流程,还提到 2026 年 Model Hub 浏览、预配置端点选项和 Hugging Face 一键部署集成。属于可复现的工程教程,但内容偏操作指引,非模型或能力突破,且部署时间受模型、实例、配额和区域影响。

72

正文

Choosing the right model for a specific application requires a practical way to test it with representative inputs. Amazon SageMaker JumpStart provides access to a broad catalog of already pretrained models. In this post, we show how to deploy an available model from SageMaker JumpStart, run a lightweight and repeatable performance test using the SageMaker Python SDK, and delete the endpoint when testing is complete. For supported models and available capacity, this workflow provides a repeatable evaluation path, although deployment time varies by model, instance type, quota, and AWS Region. In 2026, SageMaker JumpStart introduced two improvements that simplify model discovery and deployment. In the Model Hub section of the Amazon SageMaker AI console, you can browse the SageMaker JumpStart catalog, view sample notebooks, and open them directly in SageMaker Studio. Pre-configured endpoint deployment options provide named configurations optimized for priorities such as low cost, low latency, or general-purpose workloads across a range of generative AI models, including Neuron-optimized configurations. Additionally, you can now go from Hugging Face model discovery to SageMaker AI deployment in a single click using the new deep link integration. Solution overview Our approach uses a reusable Python script that performs three steps: Discover and deploy a model from SageMaker JumpStart. Run model-specific sample prompts and measure latency, approximate output length, and single-request generation rate. Clean up the endpoint. This pattern works for many compatible SageMaker JumpStart models, although payload formats, required instance types, end-user license agreement (EULA) requirements, and response schemas may require model-specific adjustments. Prerequisites An AWS account with SageMaker AI permissions. Python 3+ with SageMaker Python SDK v3 installed (pip install "sagemaker>=3, 0 else 0, } ) print("Input:\n", payload.body, end="\n\n") print("Output:\n", output, end="\n\n") print( f"Latency: {latency:.2f} seconds\n" f"Estimated output words: {output_words}\n" f"Estimated single-request output generation rate: " f"{output_words / latency:.1f} words/second\n" ) print("-" * 80) print("\nSummary:") for result in results: print(result) Result: Input: {"max_tokens": 256, "messages": [{"content": "What is deep learning?", "role": "user"}], "model": "/opt/ml/model"} Output: Here's a thinking process that leads to the explanation of deep learning: 1. **Deconstruct the Request:** * **Question:** "What is deep learning?" * **Intent:** The user wants a clear, comprehensive, yet accessible definition and overview of deep learning. * **Target Audience:** Likely someone looking for a general understanding, possibly a student, tech enthusiast, or professional exploring the field. The tone should be informative, structured, and not overly jargon-heavy (though key terms need explanation). 2. **Initial Brainstorming & Key Concepts:** * What is it? A subset of machine learning, which is a subset of AI. * Core mechanism: Artificial Neural Networks (ANNs). * "Deep" means many layers (hidden layers). * How does it work? Learning representations from data (feature learning). * Key applications: Image recognition, NLP, speech, self-driving cars. * Why is it popular now? Big data, GPU power, better algorithms. * Pros/Cons: High accuracy vs. black box, data hunger. 3. **Structuring the Answer:** Latency: 9.07 seconds Estimated output words: 153 Estimated single-request output generation rate: 16.9 words/second -------------------------------------------------------------------------------- Summary: {'request_preview': '{"max_tokens": 256, "messages": {"content": "What', 'latency_s': 9.07, 'estimated_output_words': 153, 'words_per_second': 16.9} Step 3: Cleanup print(f"Deleting endpoint: {endpoint.endpoint_name}") endpoint.delete() endpoint.wait_for_delete() print("Endpoint deleted") Conclusion This pattern works for many available SageMaker JumpStart models, but the payload format, required instance type, EULA, and response parsing may require model-specific adjustments. By using consistent test prompts and measuring latency, throughput, and output quality across models, you can compare options and select the right fit for your workload. Try this approach with different models from Amazon SageMaker JumpStart to find the right balance of quality, speed, and cost for your applications. References SageMaker Python SDK Documentation Benchmark and Optimize SageMaker JumpStart Deployment (blog post) From Hugging Face to SageMaker Studio in One Click (blog post) Amazon SageMaker JumpStart About the authors Vamsi Goparaju Vamsi leads Go-to-Market (GTM) and Revenue Acceleration initiatives at AWS, enabling Inference and ModelOps workloads for our customers, and driving OSS Use Cases and Product features for Amazon SageMaker AI, SageMaker JumpStart, and Generative AI. With over 16 years of experience spanning AWS, Dell, and Infosys, he brings a unique blend of technical depth and business knowledge across cloud, high-performance computing (HPC), artificial intelligence (AI), machine learning (ML), and analytics. He holds an MBA from Texas A&M University’s Mays Business School. Gula Nurmatova Gula is a Software Development Manager at AWS based in New York, USA. She leads the engineering teams behind Amazon SageMaker JumpStart, making foundation models from providers like NVIDIA, Meta, and Mistral easy to discover, evaluate, and deploy across SageMaker and Amazon Bedrock. Prior to AWS, she held engineering and engineering management roles at RTX and GE, and holds a master’s degree in Computer Science. Naidile Murali Naidile is a Product Manager at AWS based in Bellevue, WA. She focuses on enhancing the AI/ML developer experience on Amazon SageMaker AI, including onboarding, IDE connectivity, and GPU capacity management. Prior to AWS, she worked as a software engineer at HSBC. Naidile holds an MBA from Georgetown University. Dan Ferguson Dan is a Solutions Architect at AWS, based in New York, USA. As a machine learning services expert, Dan works to support customers on their journey to integrating ML workflows efficiently, effectively, and sustainably.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容