Add DeepSeek-R1 Model now Available in Amazon Bedrock Marketplace And Amazon SageMaker JumpStart

Allie Dudgeon 2025-02-27 04:26:05 +08:00
parent 5435461c28
commit 07592366ea
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled to announce that DeepSeek R1 [distilled Llama](https://10mektep-ns.edu.kz) and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](http://getthejob.ma)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled variations ranging from 1.5 to 70 billion specifications to develop, experiment, and properly scale your generative [AI](http://www.withsafety.net) ideas on AWS.<br>
<br>In this post, we show how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable actions to deploy the distilled versions of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) established by DeepSeek [AI](http://43.143.46.76:3000) that utilizes reinforcement discovering to boost thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial differentiating feature is its reinforcement learning (RL) action, which was utilized to refine the design's responses beyond the basic pre-training and fine-tuning process. By integrating RL, DeepSeek-R1 can adjust more successfully to user [feedback](http://zerovalueentertainment.com3000) and goals, eventually boosting both importance and clearness. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) method, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:IsidroPerrone) meaning it's equipped to break down complicated questions and reason through them in a detailed manner. This assisted thinking procedure enables the model to produce more accurate, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT abilities, aiming to create structured actions while focusing on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has actually recorded the market's attention as a flexible text-generation model that can be integrated into various workflows such as agents, rational thinking and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture allows activation of 37 billion criteria, allowing effective inference by routing queries to the most pertinent specialist "clusters." This method allows the model to specialize in various problem domains while maintaining overall [performance](http://140.125.21.658418). DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for [inference](http://git.baobaot.com). In this post, we will use an ml.p5e.48 xlarge instance to release the design. ml.p5e.48 xlarge features 8 Nvidia H200 [GPUs supplying](http://jobee.cubixdesigns.com) 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the [thinking](https://heartbeatdigital.cn) abilities of the main R1 design to more effective architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller, more effective models to simulate the behavior and thinking patterns of the larger DeepSeek-R1 model, utilizing it as an instructor model.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend releasing this design with guardrails in location. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent damaging content, and evaluate designs against key safety requirements. At the time of writing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce multiple guardrails tailored to various use cases and apply them to the DeepSeek-R1 design, improving user experiences and standardizing security controls across your generative [AI](https://www.k4be.eu) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you [require access](https://socialsnug.net) to an ml.p5e instance. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and [validate](https://p1partners.co.kr) you're using ml.p5e.48 xlarge for [endpoint usage](http://git.zhongjie51.com). Make certain that you have at least one ml.P5e.48 xlarge instance in the AWS Region you are releasing. To request a limit increase, develop a limitation increase request and reach out to your account team.<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) approvals to utilize Amazon Bedrock Guardrails. For directions, see Set up [permissions](https://www.panjabi.in) to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, avoid damaging material, and assess designs against crucial security criteria. You can implement safety procedures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to evaluate user inputs and design actions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create a guardrail utilizing the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo.<br>
<br>The basic circulation involves the following actions: First, the system receives an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent out to the model for inference. After receiving the design's output, [wavedream.wiki](https://wavedream.wiki/index.php/User:SharynBeaurepair) another guardrail check is applied. If the output passes this last check, it's returned as the outcome. However, if either the input or output is stepped in by the guardrail, a message is returned suggesting the nature of the intervention and whether it happened at the input or output phase. The examples showcased in the following areas show inference utilizing this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, emerging, [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11860868) and [specialized foundation](https://thankguard.com) models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:<br>
<br>1. On the Amazon Bedrock console, select Model brochure under Foundation designs in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to conjure up the design. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and pick the DeepSeek-R1 design.<br>
<br>The design detail page provides necessary details about the design's capabilities, prices structure, and application standards. You can find detailed use guidelines, consisting of sample API calls and [code bits](http://social.redemaxxi.com.br) for combination. The design supports different text generation tasks, including content creation, code generation, and concern answering, utilizing its reinforcement finding out optimization and CoT reasoning capabilities.
The page also includes implementation choices and licensing details to assist you get started with DeepSeek-R1 in your [applications](http://175.6.40.688081).
3. To [start utilizing](http://1.15.150.903000) DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, get in a number of circumstances (in between 1-100).
6. For Instance type, choose your instance type. For optimum performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure advanced security and facilities settings, including virtual personal cloud (VPC) networking, service function consents, and encryption settings. For the majority of use cases, the default settings will work well. However, for production implementations, you may wish to review these settings to align with your company's security and compliance requirements.
7. [Choose Deploy](https://sound.descreated.com) to [start utilizing](http://121.36.37.7015501) the design.<br>
<br>When the deployment is complete, you can test DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive user interface where you can experiment with various triggers and change model specifications like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal outcomes. For instance, content for inference.<br>
<br>This is an excellent way to explore the design's thinking and text generation capabilities before integrating it into your applications. The play area offers immediate feedback, assisting you comprehend how the model reacts to different inputs and letting you fine-tune your prompts for optimum results.<br>
<br>You can quickly test the design in the playground through the UI. However, to invoke the deployed model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run inference using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out [inference](https://fassen.net) using a released DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can create a guardrail utilizing the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the GitHub repo. After you have developed the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime client, [configures reasoning](http://82.156.24.19310098) specifications, and sends a demand to create [text based](http://gitlab.iyunfish.com) upon a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, integrated algorithms, and prebuilt ML options that you can deploy with just a few clicks. With SageMaker JumpStart, you can [tailor pre-trained](https://topcareerscaribbean.com) models to your use case, with your data, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart uses two practical techniques: utilizing the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both techniques to help you pick the technique that best fits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to deploy DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the navigation pane.
2. First-time users will be prompted to [develop](https://vieclam.tuoitrethaibinh.vn) a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The design browser displays available designs, with details like the company name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each model card reveals key details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if relevant), suggesting that this design can be registered with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the model card to see the design details page.<br>
<br>The model details page includes the following details:<br>
<br>- The design name and company details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes important details, such as:<br>
<br>- Model description.
- License details.
- Technical specifications.
- Usage standards<br>
<br>Before you release the design, it's recommended to evaluate the design details and license terms to validate compatibility with your use case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the automatically generated name or produce a customized one.
8. For example type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, get in the number of circumstances (default: 1).
Selecting appropriate [instance types](http://suvenir51.ru) and counts is important for expense and efficiency optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is optimized for sustained traffic and [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:DessieLundstrom) low latency.
10. Review all setups for accuracy. For this model, we highly recommend adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. Choose Deploy to release the model.<br>
<br>The implementation procedure can take a number of minutes to finish.<br>
<br>When deployment is total, your endpoint status will alter to InService. At this moment, the design is ready to accept inference demands through the endpoint. You can monitor [garagesale.es](https://www.garagesale.es/author/seanedouard/) the [release progress](https://thesecurityexchange.com) on the SageMaker console Endpoints page, which will display pertinent metrics and status details. When the [deployment](http://106.52.242.1773000) is total, you can invoke the design using a SageMaker runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the [SageMaker Python](http://gitea.shundaonetwork.com) SDK and make certain you have the essential AWS consents and environment setup. The following is a detailed code example that demonstrates how to [release](https://coding.activcount.info) and utilize DeepSeek-R1 for inference programmatically. The code for deploying the model is offered in the Github here. You can clone the notebook and range from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can likewise utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail using the Amazon Bedrock console or the API, and [execute](https://videofrica.com) it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid unwanted charges, finish the steps in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the design using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, choose Marketplace deployments.
2. In the Managed implementations area, locate the endpoint you want to erase.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're deleting the correct implementation: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you deployed will sustain expenses if you leave it [running](https://dolphinplacements.com). Use the following code to erase the endpoint if you want to stop sustaining charges. For more details, see Delete Endpoints and Resources.<br>
<br>Conclusion<br>
<br>In this post, we checked out how you can access and the DeepSeek-R1 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon [Bedrock Marketplace](https://romancefrica.com) now to begin. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained designs, [Amazon SageMaker](https://git.kawen.site) JumpStart Foundation Models, Amazon Bedrock Marketplace, and Starting with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He assists emerging generative [AI](https://woodsrunners.com) companies develop [innovative](http://114.34.163.1743333) [options utilizing](http://123.60.97.16132768) AWS services and accelerated calculate. Currently, he is focused on establishing methods for fine-tuning and enhancing the inference efficiency of big language models. In his leisure time, Vivek delights in treking, watching films, and attempting various cuisines.<br>
<br>[Niithiyn Vijeaswaran](https://git.cooqie.ch) is a Generative [AI](https://humlog.social) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](http://ecoreal.kr) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://lensez.info) with the [Third-Party Model](https://www.ahhand.com) Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://94.130.182.154:3000) hub. She is passionate about [developing options](https://higgledy-piggledy.xyz) that help consumers accelerate their [AI](https://git.cloud.exclusive-identity.net) journey and unlock company value.<br>