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

Corazon Gainey 2025-03-01 06:32:45 +08:00
commit 5dff628b75
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 release DeepSeek [AI](https://www.worlddiary.co)'s first-generation frontier model, DeepSeek-R1, together with the distilled versions ranging from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](https://littlebigempire.com) ideas on AWS.<br>
<br>In this post, we show how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to release the distilled versions of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) established by DeepSeek [AI](https://epspatrolscv.com) that utilizes support learning to [enhance thinking](http://git.nuomayun.com) capabilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. A key identifying feature is its support knowing (RL) step, which was utilized to improve the design's responses beyond the standard pre-training and tweak procedure. By including RL, DeepSeek-R1 can adjust more successfully to user feedback and objectives, eventually boosting both relevance and clearness. In addition, DeepSeek-R1 uses a (CoT) method, meaning it's [equipped](https://sameday.iiime.net) to break down complicated queries and factor through them in a detailed way. This guided reasoning process allows the model to produce more accurate, transparent, [it-viking.ch](http://it-viking.ch/index.php/User:MarilouShuman) and detailed answers. This design combines RL-based fine-tuning with CoT abilities, aiming to create structured actions while focusing on interpretability and user interaction. With its comprehensive capabilities DeepSeek-R1 has caught the industry's attention as a versatile text-generation model that can be incorporated into various workflows such as agents, sensible thinking and information interpretation 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, making it possible for [efficient reasoning](https://executiverecruitmentltd.co.uk) by routing queries to the most appropriate expert "clusters." This approach allows the model to focus on different problem domains while maintaining general performance. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for [inference](http://gitlab.andorsoft.ad). In this post, we will utilize an ml.p5e.48 xlarge circumstances to deploy the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 [GPUs offering](https://job.honline.ma) 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 model to more effective architectures based upon [popular](https://thestylehitch.com) open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller, more efficient designs to simulate the habits and reasoning patterns of the larger DeepSeek-R1 design, utilizing it as an instructor design.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend releasing this model with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent damaging content, and evaluate models against essential security requirements. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop several guardrails tailored to different usage cases and apply them to the DeepSeek-R1 model, improving user experiences and standardizing security controls throughout your generative [AI](https://gitlab.surrey.ac.uk) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, select Amazon SageMaker, and confirm you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 xlarge instance in the [AWS Region](https://tapeway.com) you are releasing. To [request](https://safeway.com.bd) a limitation boost, develop a limit increase request and [connect](https://robbarnettmedia.com) to your [account team](https://gitlab.ui.ac.id).<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and [Gain Access](https://social-lancer.com) To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For instructions, see Set up consents to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, prevent damaging material, and [evaluate models](https://15.164.25.185) against essential safety criteria. You can carry out safety measures for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This permits you to apply guardrails to examine user inputs and design actions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop a [guardrail utilizing](https://git.magicvoidpointers.com) the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the GitHub repo.<br>
<br>The basic circulation includes the following steps: First, the system gets an input for the design. This input is then processed through the [ApplyGuardrail API](https://kaiftravels.com). If the input passes the guardrail check, it's sent out to the model for inference. After getting the model'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 intervened by the guardrail, a message is returned suggesting the nature of the intervention and whether it occurred at the input or output stage. The examples showcased in the following areas show 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 models (FMs) through Amazon Bedrock. To [gain access](https://www.greenpage.kr) to DeepSeek-R1 in Amazon Bedrock, total the following actions:<br>
<br>1. On the Amazon Bedrock console, [select Model](https://ubereducation.co.uk) brochure under Foundation designs in the navigation pane.
At the time of composing this post, you can use the InvokeModel API to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a supplier and pick the DeepSeek-R1 model.<br>
<br>The model detail page provides necessary details about the design's capabilities, rates structure, and application guidelines. You can find detailed usage instructions, consisting of sample API calls and code bits for combination. The design supports different text generation jobs, including content development, code generation, and concern answering, using its support learning optimization and CoT reasoning capabilities.
The page likewise includes [implementation choices](https://avpro.cc) and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to configure the release details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Number of instances, go into a variety of circumstances (between 1-100).
6. For example type, choose your [instance type](https://lat.each.usp.br3001). For ideal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure advanced security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, service role consents, and encryption settings. For a lot of use cases, the default settings will work well. However, for production implementations, you may want to evaluate these settings to align with your company's security and compliance requirements.
7. Choose Deploy to begin utilizing the model.<br>
<br>When the release is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive interface where you can explore various prompts and adjust design specifications like temperature level and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimal results. For instance, material for inference.<br>
<br>This is an excellent way to check out the design's thinking and text generation capabilities before incorporating it into your applications. The play area provides instant feedback, helping you understand how the model responds to numerous inputs and letting you fine-tune your prompts for optimum outcomes.<br>
<br>You can rapidly test the design in the play area through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run inference using guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out inference utilizing a deployed DeepSeek-R1 model through Amazon Bedrock utilizing 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 produced the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime client, sets up inference specifications, and sends a request 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, built-in algorithms, and prebuilt ML services that you can deploy with simply a couple of clicks. With SageMaker JumpStart, [systemcheck-wiki.de](https://systemcheck-wiki.de/index.php?title=Benutzer:NestorAldrich) you can tailor pre-trained designs 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 offers 2 convenient approaches: [wavedream.wiki](https://wavedream.wiki/index.php/User:Willie7094) using the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both approaches to assist you select the approach that best matches your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following [actions](https://edujobs.itpcrm.net) 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 design browser displays available models, with details like the company name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card reveals essential details, including:<br>
<br>[- Model](http://betterlifenija.org.ng) name
- Provider name
- Task category (for example, Text Generation).
[Bedrock Ready](http://87.98.157.123000) badge (if applicable), showing that this design can be registered with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to [conjure](https://git.soy.dog) up the design<br>
<br>5. Choose the model card to see the design details page.<br>
<br>The design details page includes the following details:<br>
<br>- The model name and supplier details.
Deploy button to release the design.
About and Notebooks tabs with [detailed](https://te.legra.ph) details<br>
<br>The About tab consists of crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you release the model, it's advised to review the model details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, utilize the automatically generated name or produce a customized one.
8. For example type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the number of circumstances (default: 1).
Selecting proper instance types and counts is crucial for expense and [efficiency optimization](https://yeetube.com). Monitor your implementation to adjust these settings as needed.Under Inference type, Real-time reasoning is picked by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for precision. For this design, we highly recommend sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. Choose Deploy to deploy the design.<br>
<br>The implementation procedure can take several minutes to finish.<br>
<br>When deployment is complete, your endpoint status will change to InService. At this point, the model is prepared to accept inference demands through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the implementation is total, you can invoke the [model utilizing](https://suomalaistajalkapalloa.com) a SageMaker runtime customer and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will require to set up the SageMaker Python SDK and make certain you have the required AWS [permissions](https://git.saphir.one) and environment setup. The following is a detailed code example that demonstrates how to deploy and utilize DeepSeek-R1 for reasoning programmatically. The code for releasing the model is [offered](http://182.92.163.1983000) in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run additional 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 develop a guardrail utilizing the Amazon Bedrock console or the API, and execute it as revealed in the following code:<br>
<br>Clean up<br>
<br>To prevent undesirable charges, finish the actions in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you [released](http://gitlab.iyunfish.com) the model using Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, choose Marketplace deployments.
2. In the Managed deployments area, find 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 correct 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 costs if you leave it running. Use the following code to erase the endpoint if you desire to stop sustaining charges. For more details, see Delete Endpoints and Resources.<br>
<br>Conclusion<br>
<br>In this post, we [checked](http://otyjob.com) 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, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting going with [Amazon SageMaker](http://git.nuomayun.com) [JumpStart](https://visualchemy.gallery).<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for [Inference](https://careers.cblsolutions.com) at AWS. He helps emerging generative [AI](http://39.105.203.187:3000) business build ingenious services utilizing AWS services and accelerated calculate. Currently, he is focused on developing techniques for fine-tuning and [optimizing](https://drapia.org) the inference efficiency of large language designs. In his leisure time, Vivek delights in treking, viewing motion pictures, and trying various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://findschools.worldofdentistry.org) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His [location](https://rassi.tv) of focus is AWS [AI](http://xn--mf0bm6uh9iu3avi400g.kr) [accelerators](https://gitea.sync-web.jp) (AWS Neuron). He holds a Bachelor's degree in Computer [technology](http://git.edazone.cn) and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect dealing with generative [AI](http://49.232.207.113:3000) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://yezidicommunity.com) hub. She is enthusiastic about developing options that help clients accelerate their [AI](http://120.79.94.122:3000) journey and unlock service value.<br>