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

Anitra Tietjen 2025-02-17 20:17:44 +08:00
commit 7e9e50240e

@ -0,0 +1,93 @@
<br>Today, we are excited to announce that DeepSeek R1 distilled Llama and Qwen [designs](https://www.tiger-teas.com) are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](http://git.pancake2021.work)'s first-generation frontier model, DeepSeek-R1, together with the distilled variations ranging from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](https://gitea.ndda.fr) 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 comparable actions to deploy the distilled versions of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) established by DeepSeek [AI](http://120.79.75.202:3000) that uses support learning to improve thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. A crucial identifying feature is its reinforcement learning (RL) action, which was used to fine-tune the design's reactions beyond the basic pre-training and tweak procedure. By integrating RL, DeepSeek-R1 can adapt more efficiently to user feedback and goals, eventually improving both relevance and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, indicating it's geared up to break down intricate questions and reason through them in a detailed way. This assisted reasoning process allows the model to produce more accurate, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT capabilities, aiming to produce structured actions while concentrating on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has actually captured the market's attention as a flexible text-generation model that can be integrated into various workflows such as representatives, rational thinking and data interpretation jobs.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture allows activation of 37 billion parameters, allowing effective reasoning by [routing queries](http://49.235.130.76) to the most appropriate expert "clusters." This method allows the model to focus on various problem 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 deploy the model. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning abilities of the main R1 model to more effective architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of training smaller, more [effective models](http://kpt.kptyun.cn3000) to simulate the behavior and thinking patterns of the larger DeepSeek-R1 design, using it as an instructor model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we recommend deploying this model with guardrails in place. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid harmful material, and evaluate designs against key safety 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 [numerous guardrails](https://gitlab.rlp.net) tailored to various usage cases and apply them to the DeepSeek-R1 model, improving user experiences and standardizing safety controls throughout your generative [AI](http://gogsb.soaringnova.com) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, [wiki.asexuality.org](https://wiki.asexuality.org/w/index.php?title=User_talk:EfrainWawn65) 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 confirm you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are releasing. To request a limitation increase, create a limit boost request and reach out to your account team.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, [engel-und-waisen.de](http://www.engel-und-waisen.de/index.php/Benutzer:GroverDejesus) make certain you have the right AWS Identity and Gain Access To Management (IAM) approvals to use Amazon Bedrock Guardrails. For directions, see Set up permissions to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, prevent harmful content, and examine designs against key safety criteria. You can implement safety procedures for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to evaluate user inputs and design reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce 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 general flow [involves](https://sameday.iiime.net) the following steps: First, the system gets an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the design for inference. After getting the design's output, another guardrail check is used. If the output passes this final check, it's returned as the result. However, if either the input or output is intervened by the guardrail, a message is returned showing the nature of the intervention and whether it happened at the input or output stage. The examples showcased in the following areas show reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock [Marketplace](https://iklanbaris.id) 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, total the following actions:<br>
<br>1. On the [Amazon Bedrock](https://www.joinyfy.com) console, pick Model brochure under Foundation models in the navigation pane.
At the time of writing this post, [pediascape.science](https://pediascape.science/wiki/User:Mazie58C75) you can utilize the InvokeModel API to invoke the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a service provider and pick the DeepSeek-R1 model.<br>
<br>The model detail page offers vital details about the model's capabilities, pricing structure, and execution guidelines. You can find detailed usage directions, [including sample](https://www.ojohome.listatto.ca) API calls and code bits for combination. The model supports different text generation tasks, consisting of content production, code generation, and question answering, utilizing its reinforcement finding out optimization and CoT thinking capabilities.
The page also includes implementation options and licensing details to help you get going with DeepSeek-R1 in your applications.
3. To [start utilizing](https://gitea.ravianand.me) DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to configure the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, go into a number of instances (between 1-100).
6. For Instance type, pick 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 sophisticated security and infrastructure settings, including virtual private cloud (VPC) networking, service function approvals, and encryption settings. For most utilize cases, the default settings will work well. However, for [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) production implementations, you might wish to review these settings to align with your [organization's security](https://spreek.me) and compliance requirements.
7. Choose Deploy to begin utilizing the design.<br>
<br>When the release is complete, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive user interface where you can experiment with various triggers and adjust model specifications like temperature level and maximum length.
When utilizing 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 method to check out the design's reasoning and text generation capabilities before incorporating it into your applications. The playground supplies immediate feedback, assisting you comprehend how the model responds to numerous inputs and [wakewiki.de](https://www.wakewiki.de/index.php?title=Benutzer:FranchescaMbx) letting you fine-tune your triggers for optimum results.<br>
<br>You can quickly test the design in the play ground through the UI. However, to conjure up the deployed design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example shows how to carry out reasoning utilizing a deployed DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can develop a guardrail utilizing the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the [GitHub repo](https://git.lewd.wtf). After you have actually produced the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_[runtime](https://zenithgrs.com) client, configures inference criteria, and sends a demand to create text based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an [artificial intelligence](https://tubevieu.com) (ML) center with FMs, integrated algorithms, and prebuilt ML solutions that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 convenient techniques: utilizing the intuitive SageMaker [JumpStart UI](https://famenest.com) or implementing programmatically through the SageMaker Python SDK. Let's explore both approaches to help you select the technique that best suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to release DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, choose Studio in the navigation pane.
2. First-time users will be [prompted](http://103.197.204.1623025) to create a domain.
3. On the [SageMaker Studio](https://git.aaronmanning.net) console, choose JumpStart in the [navigation pane](http://jobasjob.com).<br>
<br>The design browser displays available models, with details like the supplier name and [model abilities](https://git.epochteca.com).<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card reveals crucial details, including:<br>
<br>- Model name
- Provider name
- Task category (for example, Text Generation).
Bedrock Ready badge (if suitable), indicating that this design can be signed up with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The model details page includes the following details:<br>
<br>- The model name and supplier details.
Deploy button to deploy the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of essential details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you release the model, it's suggested to [examine](https://noaisocial.pro) the design details and license terms to confirm compatibility with your use case.<br>
<br>6. Choose Deploy to proceed with release.<br>
<br>7. For Endpoint name, [engel-und-waisen.de](http://www.engel-und-waisen.de/index.php/Benutzer:TabithaWithers0) utilize the automatically produced name or produce a custom one.
8. For example type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the variety of instances (default: 1).
Selecting appropriate instance types and counts is vital for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, [Real-time inference](https://git.j4nis05.ch) is picked by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for accuracy. For this model, we strongly advise sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to deploy the design.<br>
<br>The deployment procedure can take [numerous](https://gofleeks.com) minutes to finish.<br>
<br>When release is complete, your endpoint status will alter to [InService](https://ratemywifey.com). At this point, the model is all set to accept reasoning requests through the endpoint. You can keep track of the deployment development on the SageMaker console Endpoints page, which will display appropriate metrics and status details. When the implementation is complete, you can conjure up the design utilizing a SageMaker [runtime client](https://rabota.newrba.ru) and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get begun with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the required AWS approvals and environment setup. The following is a detailed code example that shows how to release and use DeepSeek-R1 for inference programmatically. The code for deploying the model is [supplied](https://www.jobsalert.ai) in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run extra requests against the predictor:<br>
<br>Implement guardrails and run inference with your [SageMaker JumpStart](https://172.105.135.218) predictor<br>
<br>Similar to Amazon Bedrock, you can likewise use the [ApplyGuardrail API](http://dndplacement.com) with your SageMaker JumpStart predictor. You can develop a guardrail utilizing the Amazon [Bedrock console](https://dakresources.com) or the API, and implement it as shown in the following code:<br>
<br>Tidy up<br>
<br>To avoid [unwanted](https://gofleeks.com) charges, complete the actions in this area to tidy up your resources.<br>
<br>Delete the [Amazon Bedrock](http://krzsyjtj.zlongame.co.kr9004) Marketplace implementation<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, [pipewiki.org](https://pipewiki.org/wiki/index.php/User:FelipaPruett850) under Foundation models in the navigation pane, choose Marketplace implementations.
2. In the Managed deployments area, locate the [endpoint](https://tyciis.com) you want to erase.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're erasing the proper release: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you released will sustain costs 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](https://viraltry.com).<br>
<br>Conclusion<br>
<br>In this post, we checked out how you can access and deploy the DeepSeek-R1 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to begin. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Beginning with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>[Vivek Gangasani](https://gitlab-zdmp.platform.zdmp.eu) is a Lead Specialist Architect for Inference at AWS. He assists emerging generative [AI](http://ccrr.ru) companies construct innovative solutions utilizing AWS services and accelerated compute. Currently, he is concentrated on establishing techniques for fine-tuning and optimizing the reasoning performance of large language models. In his free time, Vivek enjoys hiking, watching movies, and attempting different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://xnxxsex.in) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://bestremotejobs.net) [accelerators](https://www.cdlcruzdasalmas.com.br) (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>[Jonathan Evans](https://www.joinyfy.com) is a Professional Solutions Architect working on generative [AI](https://www.virtuosorecruitment.com) with the [Third-Party Model](https://www.jobcheckinn.com) [Science](http://fuxiaoshun.cn3000) group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://forsetelomr.online) center. She is enthusiastic about constructing options that assist consumers accelerate their [AI](https://git.watchmenclan.com) journey and unlock organization value.<br>