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

2025-04-08 14:52:37 +08:00
commit c618446702

@ -0,0 +1,93 @@
<br>Today, we are thrilled to announce that DeepSeek R1 [distilled Llama](https://paksarkarijob.com) and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](https://tmiglobal.co.uk)'s first-generation frontier model, DeepSeek-R1, together with the distilled versions [varying](https://www.teamusaclub.com) from 1.5 to 70 billion specifications to develop, experiment, and responsibly scale your generative [AI](https://dongawith.com) concepts 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 steps to deploy the distilled versions of the designs also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) established by DeepSeek [AI](https://gl.ignite-vision.com) that uses support finding out to boost thinking capabilities through a multi-stage training [procedure](http://gitlab.nsenz.com) from a DeepSeek-V3[-Base structure](https://careers.cblsolutions.com). A key differentiating function is its reinforcement learning (RL) step, which was used to fine-tune the model's actions beyond the standard pre-training and tweak process. By integrating RL, DeepSeek-R1 can adjust more efficiently to user feedback and objectives, eventually enhancing both significance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) method, implying it's geared up to break down intricate queries and factor through them in a detailed way. This [guided reasoning](http://huaang6688.gnway.cc3000) process enables the model to produce more accurate, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT abilities, aiming to create structured reactions while concentrating on [interpretability](https://www.runsimon.com) and user interaction. With its extensive abilities DeepSeek-R1 has caught the industry's attention as a versatile text-generation design that can be incorporated into various workflows such as agents, sensible reasoning and information interpretation tasks.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture permits activation of 37 billion parameters, making it possible for effective inference by routing inquiries to the most pertinent professional "clusters." This method permits the design to specialize in various issue domains while maintaining total effectiveness. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will use an ml.p5e.48 xlarge circumstances to [release](http://gitlab.ifsbank.com.cn) the design. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 model to more efficient architectures based on popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of [training](https://www.vfrnds.com) smaller sized, more effective models to imitate the habits and reasoning patterns of the bigger DeepSeek-R1 model, using it as a teacher model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise deploying this model with guardrails in place. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent hazardous content, and assess models against crucial security requirements. At the time of composing this blog, for DeepSeek-R1 [implementations](https://oakrecruitment.uk) on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce multiple guardrails tailored to different usage cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls throughout your generative [AI](https://igazszavak.info) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you need access to an ml.p5e instance. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and validate you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 [xlarge instance](https://www.milegajob.com) in the AWS Region you are deploying. To request a limitation boost, produce a limitation boost demand and reach out to your account group.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the appropriate AWS [Identity](https://gitea.gai-co.com) and Gain Access To Management (IAM) consents to use Amazon Bedrock Guardrails. For directions, see Establish consents to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>[Amazon Bedrock](https://collegetalks.site) Guardrails permits you to present safeguards, prevent hazardous material, and assess designs against essential security criteria. You can carry out precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to examine user inputs and design actions deployed on [Amazon Bedrock](https://www.elcel.org) and SageMaker JumpStart. You can develop a guardrail using the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the GitHub repo.<br>
<br>The general flow involves the following steps: First, the system receives an input for the design. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent out to the design for inference. After getting the design's output, another guardrail check is applied. If the output passes this last check, it's returned as the result. 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 took place at the input or output stage. The examples showcased in the following areas show reasoning 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, and specialized structure designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, choose Model brochure under Foundation models in the navigation pane.
At the time of writing this post, you can utilize the InvokeModel API to invoke the model. It doesn't [support Converse](http://106.55.234.1783000) APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and choose the DeepSeek-R1 design.<br>
<br>The design detail page provides necessary details about the design's abilities, rates structure, and application guidelines. You can discover detailed use guidelines, including sample API calls and code snippets for combination. The design supports different text generation tasks, including material production, code generation, and concern answering, using its reinforcement finding out optimization and CoT reasoning capabilities.
The page also consists of release alternatives and licensing details to assist you begin with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a variety of circumstances (in between 1-100).
6. For Instance type, choose your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure innovative security and facilities settings, consisting of virtual personal cloud (VPC) networking, service function consents, and encryption settings. For many utilize cases, the default settings will work well. However, for production deployments, you might desire to examine these [settings](https://www.ontheballpersonnel.com.au) to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the implementation is complete, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in play area to access an interactive interface where you can experiment with different triggers and adjust design parameters like temperature level and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimum outcomes. For instance, material for reasoning.<br>
<br>This is an excellent method to check out the design's reasoning and text generation abilities before incorporating it into your applications. The playground offers instant feedback, helping you understand how the design reacts to various inputs and letting you tweak your triggers for ideal results.<br>
<br>You can rapidly evaluate the model in the [play ground](http://120.24.213.2533000) through the UI. However, to conjure up the deployed design programmatically with any Amazon Bedrock APIs, you require 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 perform inference using a released DeepSeek-R1 design through [Amazon Bedrock](https://git.cocorolife.tw) utilizing the invoke_model and ApplyGuardrail API. You can create a guardrail utilizing the Amazon Bedrock [console](https://genzkenya.co.ke) or the API. For the example code to produce the guardrail, see the GitHub repo. After you have actually created the guardrail, use the following code to execute guardrails. The script initializes the bedrock_runtime customer, sets up inference parameters, and sends out a demand to produce text based upon a user timely.<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 solutions that you can deploy with simply a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your data, and release them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 hassle-free techniques: utilizing the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both methods to assist you select the approach that finest fits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the [navigation](https://www.yourtalentvisa.com) pane.
2. First-time users will be prompted to create a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The model internet browser displays available models, with details like the company name and design capabilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each design card reveals key details, including:<br>
<br>[- Model](http://103.197.204.1633025) name
- Provider name
- Task [category](https://www.rozgar.site) (for instance, Text Generation).
Bedrock Ready badge (if relevant), suggesting that this design can be registered with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the design card to view the model details page.<br>
<br>The [design details](https://www.pinnaclefiber.com.pk) page includes the following details:<br>
<br>- The design name and provider details.
Deploy button to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical specifications.
- Usage guidelines<br>
<br>Before you release the design, it's suggested to examine the design details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with release.<br>
<br>7. For Endpoint name, use the immediately [generated](https://ozgurtasdemir.net) name or produce a custom one.
8. For example type ¸ pick a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, go into the number of instances (default: 1).
Selecting suitable circumstances types and [wiki.whenparked.com](https://wiki.whenparked.com/User:EveKeel8756) counts is essential for cost and performance optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time reasoning is picked by default. This is optimized for [sustained traffic](https://retailjobacademy.com) and low latency.
10. Review all configurations for accuracy. For this model, we strongly recommend adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to release the model.<br>
<br>The implementation procedure can take several minutes to complete.<br>
<br>When implementation is complete, your endpoint status will change to [InService](https://git.haowumc.com). At this point, the design is ready to accept inference requests through the endpoint. You can keep track of the release development on the SageMaker console Endpoints page, which will show pertinent metrics and status details. When the deployment is complete, you can conjure up the design utilizing a SageMaker runtime customer and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 using the SageMaker Python SDK, you will require to install the SageMaker Python SDK and make certain you have the required AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to release and utilize DeepSeek-R1 for inference programmatically. The code for deploying the model is supplied in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>Implement guardrails and run reasoning with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the [Amazon Bedrock](https://git.bubblesthebunny.com) console or the API, and implement it as [displayed](https://elitevacancies.co.za) in the following code:<br>
<br>Clean up<br>
<br>To avoid unwanted charges, complete the steps in this section to tidy up your [resources](https://heyjinni.com).<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you deployed the model using Amazon Bedrock Marketplace, total 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 section, locate the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the right deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you deployed will [sustain expenses](https://bibi-kai.com) if you leave it running. Use the following code to erase the endpoint if you wish 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 deploy the DeepSeek-R1 model using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to start. For more details, describe Use [Amazon Bedrock](https://source.brutex.net) tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Beginning with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He helps emerging generative [AI](https://visorus.com.mx) business develop innovative solutions using AWS services and accelerated compute. Currently, he is concentrated on establishing strategies for fine-tuning and [enhancing](https://avpro.cc) the reasoning performance of big [language](http://139.199.191.273000) models. In his totally free time, Vivek takes pleasure in hiking, watching films, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://123.111.146.235:9070) [Specialist Solutions](https://hylpress.net) Architect with the Third-Party Model [Science](https://in.fhiky.com) group at AWS. His location of focus is AWS [AI](http://www.xyais.cn) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect dealing with generative [AI](https://optimaplacement.com) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://8.130.52.45) hub. She is enthusiastic about constructing services that help clients accelerate their [AI](http://27.185.47.113:5200) journey and unlock company worth.<br>