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

Hildegard Bruner 2025-04-08 22:03:04 +08:00
commit 267a91b8b6
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 and Qwen models are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](https://mobishorts.com)'s first-generation [frontier](https://lensez.info) design, DeepSeek-R1, together with the distilled versions varying from 1.5 to 70 billion parameters to construct, experiment, and properly scale your generative [AI](http://81.68.246.173:6680) ideas on AWS.<br>
<br>In this post, we show how to begin with DeepSeek-R1 on Amazon Bedrock [Marketplace](https://githost.geometrx.com) and SageMaker JumpStart. You can follow comparable actions to release the distilled variations of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) developed by DeepSeek [AI](https://movie.nanuly.kr) that utilizes support finding out to improve reasoning capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial distinguishing feature is its reinforcement learning (RL) action, which was utilized to improve 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 employs a chain-of-thought (CoT) approach, indicating it's geared up to break down intricate queries and reason through them in a detailed way. This guided thinking process permits the design to produce more precise, transparent, and detailed answers. This model [integrates RL-based](http://123.60.97.16132768) fine-tuning with CoT abilities, aiming to generate structured responses while concentrating on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has actually recorded the industry's attention as a versatile text-generation model that can be incorporated into numerous workflows such as agents, logical reasoning and information analysis jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture enables activation of 37 billion criteria, enabling efficient inference by routing questions to the most pertinent professional "clusters." This method allows the design to specialize in various issue domains while maintaining general effectiveness. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge circumstances to release the design. ml.p5e.48 xlarge features 8 Nvidia H200 [GPUs offering](https://eelam.tv) 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking capabilities of the main R1 design to more efficient architectures based on popular open [designs](https://younetwork.app) like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller, more efficient models to imitate the habits and thinking patterns of the larger DeepSeek-R1 model, using it as a teacher model.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we recommend releasing this design with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to [introduce](https://newborhooddates.com) safeguards, prevent hazardous content, and evaluate designs against essential security criteria. At the time of composing this blog site, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create numerous guardrails tailored to various use cases and apply them to the DeepSeek-R1 design, improving user experiences and [standardizing safety](http://git.datanest.gluc.ch) controls throughout your generative [AI](http://60.205.210.36) [applications](http://187.216.152.1519999).<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you [require access](https://digital-field.cn50443) to an ml.p5e instance. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, select Amazon SageMaker, and validate you're utilizing ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge [circumstances](http://ieye.xyz5080) in the AWS Region you are releasing. To request a limit boost, produce a limit increase demand and reach out to your account team.<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the correct AWS Identity 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 Guardrails permits you to introduce safeguards, [prevent hazardous](https://youtoosocialnetwork.com) content, and examine models against essential security . You can implement safety steps for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to evaluate user inputs and model actions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can [develop](https://www.telewolves.com) a guardrail using the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the [GitHub repo](http://shammahglobalplacements.com).<br>
<br>The basic flow involves the following actions: First, the system gets an input for the design. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the model for reasoning. After receiving the design's output, another guardrail check is used. If the output passes this last check, it's returned as the final result. However, if either the input or output is stepped in by the guardrail, a message is returned indicating the nature of the intervention and whether it occurred at the input or output stage. The examples showcased in the following sections demonstrate inference using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace offers you access to over 100 popular, emerging, and specialized foundation [designs](https://members.advisorist.com) (FMs) through Amazon Bedrock. To [gain access](https://gogs.sxdirectpurchase.com) to DeepSeek-R1 in Amazon Bedrock, total the following steps:<br>
<br>1. On the Amazon Bedrock console, pick Model catalog under Foundation models in the navigation pane.
At the time of composing this post, you can use the InvokeModel API to conjure up the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a service provider and select the DeepSeek-R1 design.<br>
<br>The model detail page supplies important details about the design's capabilities, prices structure, and application guidelines. You can discover detailed usage directions, including sample API calls and code snippets for combination. The design supports different text generation jobs, consisting of content development, code generation, and question answering, utilizing its support learning optimization and CoT thinking abilities.
The page also consists of implementation choices and licensing details to help you begin with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to set up the release details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, go into a variety of instances (between 1-100).
6. For Instance type, pick your instance type. For ideal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is [recommended](https://git.pleasantprogrammer.com).
Optionally, you can configure sophisticated security and infrastructure settings, including virtual personal cloud (VPC) networking, service role authorizations, and file encryption settings. For many utilize cases, the default settings will work well. However, for production releases, you may wish to review these settings to line up with your organization's security and compliance [requirements](https://uconnect.ae).
7. Choose Deploy to begin utilizing the model.<br>
<br>When the implementation is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in play area to access an interactive interface where you can try out various triggers and adjust design specifications like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for ideal outcomes. For instance, material for reasoning.<br>
<br>This is an excellent way to check out the design's reasoning and text generation abilities before integrating it into your applications. The play area provides immediate feedback, assisting you understand how the [model reacts](http://www.xn--739an41crlc.kr) to various inputs and letting you tweak your triggers for optimum results.<br>
<br>You can rapidly evaluate the model in the playground through the UI. However, to invoke the released model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference utilizing a deployed DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can develop a guardrail using the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo. After you have actually developed the guardrail, use the following code to implement guardrails. The [script initializes](https://fumbitv.com) the bedrock_runtime client, sets up inference specifications, [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:TristaDeBeuzevil) and sends out a request to generate text based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an [artificial](https://haitianpie.net) intelligence (ML) center with FMs, built-in algorithms, and prebuilt ML solutions that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor [wavedream.wiki](https://wavedream.wiki/index.php/User:BrooksCarroll8) 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 two convenient methods: utilizing the instinctive SageMaker JumpStart UI or carrying out programmatically through the [SageMaker Python](https://willingjobs.com) SDK. Let's check out both techniques to assist you pick the method that finest suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions 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 triggered to develop a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The model browser displays available models, with details like the company name and [model capabilities](http://git.hnits360.com).<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card reveals essential details, including:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if applicable), suggesting that this model can be [registered](https://social.web2rise.com) with Amazon Bedrock, [wavedream.wiki](https://wavedream.wiki/index.php/User:RosalindJackman) enabling you to use Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The [model details](https://gitlab.internetguru.io) page includes the following details:<br>
<br>- The design name and service provider 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 requirements.
- Usage standards<br>
<br>Before you deploy the design, it's recommended to evaluate the model details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the instantly produced name or develop a custom-made one.
8. For example type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, get in the variety of circumstances (default: 1).
Selecting proper instance types and counts is important for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time inference is chosen by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for accuracy. For this model, we highly advise adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to deploy the model.<br>
<br>The release process can take several minutes to finish.<br>
<br>When implementation is complete, your endpoint status will change to InService. At this point, the model is prepared to accept reasoning requests through the endpoint. You can keep track of the release progress on the SageMaker console Endpoints page, which will display appropriate metrics and status details. When the release is complete, you can [conjure](http://www.thehispanicamerican.com) up the design using a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 using the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the necessary AWS permissions and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for inference programmatically. The code for deploying the design is supplied 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 reasoning with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can likewise use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can produce a [guardrail](http://47.244.181.255) using the Amazon Bedrock console or the API, and implement it as shown in the following code:<br>
<br>Clean up<br>
<br>To avoid undesirable charges, finish the actions in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, choose Marketplace deployments.
2. In the [Managed releases](https://wiki.lafabriquedelalogistique.fr) section, locate the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're erasing the appropriate release: 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. Use the following code to delete 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 explored how you can access and release the DeepSeek-R1 model using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get going. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained designs, Amazon SageMaker [JumpStart Foundation](https://nextodate.com) 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 helps emerging generative [AI](http://shenjj.xyz:3000) companies develop ingenious services using AWS services and accelerated calculate. Currently, he is focused on developing techniques for fine-tuning and enhancing the inference performance of big language designs. In his leisure time, Vivek takes pleasure in hiking, seeing films, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a [Generative](https://gitea.taimedimg.com) [AI](http://120.48.141.82:3000) Specialist Solutions Architect with the Third-Party [Model Science](https://moztube.com) team at AWS. His area of focus is AWS [AI](https://forum.webmark.com.tr) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect dealing with generative [AI](https://www.stmlnportal.com) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic partnerships for [Amazon SageMaker](https://code.balsoft.ru) JumpStart, SageMaker's artificial intelligence and generative [AI](https://youtubegratis.com) center. She is passionate about building solutions that help clients accelerate their [AI](https://postyourworld.com) journey and unlock service value.<br>