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

master
Haley Mahlum 2025-05-28 00:29:02 +00:00
commit 64877334f0
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://jmusic.me)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled variations varying from 1.5 to 70 billion parameters to construct, experiment, and properly scale your generative [AI](https://uptoscreen.com) ideas on AWS.<br>
<br>In this post, we show how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to release the distilled variations of the models too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) established by DeepSeek [AI](http://ncdsource.kanghehealth.com) that utilizes reinforcement learning to improve reasoning capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial distinguishing feature is its support learning (RL) action, which was used to fine-tune the model's actions beyond the standard pre-training and fine-tuning procedure. By incorporating RL, DeepSeek-R1 can adapt better to user feedback and objectives, eventually improving both relevance and clarity. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, suggesting it's geared up to break down complicated queries and factor through them in a detailed way. This guided thinking process [permits](https://git.jordanbray.com) the design to produce more accurate, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT abilities, aiming to create structured reactions while concentrating on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has recorded the industry's attention as a versatile text-generation design that can be integrated into different workflows such as agents, rational thinking and data interpretation jobs.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture enables activation of 37 billion criteria, making it possible for effective reasoning by routing inquiries to the most appropriate professional "clusters." This method permits the model to specialize in various problem domains while maintaining overall performance. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge circumstances to [release](https://redmonde.es) the design. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning abilities of the main R1 model to more efficient architectures based upon [popular](https://mtglobalsolutionsinc.com) open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of training smaller, more efficient designs to mimic the behavior and reasoning patterns of the bigger DeepSeek-R1 design, utilizing 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 design with guardrails in location. In this blog site, [wiki.myamens.com](http://wiki.myamens.com/index.php/User:AltaBatey4) we will utilize Amazon Bedrock Guardrails to [introduce](https://pompeo.com) safeguards, prevent damaging material, and evaluate models against crucial security criteria. At the time of composing this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce several guardrails tailored to various usage cases and apply them to the DeepSeek-R1 model, improving user experiences and standardizing security controls across your generative [AI](https://git.karma-riuk.com) applications.<br>
<br>Prerequisites<br>
<br>To [release](https://git.parat.swiss) the DeepSeek-R1 design, you require access to an ml.p5e circumstances. To check if you have quotas for P5e, open the Service Quotas [console](https://sb.mangird.com) and under AWS Services, choose Amazon SageMaker, and verify you're using ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are releasing. To ask for 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 utilize Amazon Bedrock Guardrails. For directions, see Set up [permissions](https://89.22.113.100) to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, avoid hazardous content, and assess designs against key safety requirements. You can implement security procedures for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to [evaluate](https://gogs.dzyhc.com) user inputs and model reactions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop a guardrail utilizing the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The general flow includes the following actions: 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 reasoning. After receiving the model's output, another guardrail check is applied. If the output passes this final check, it's returned as the outcome. However, if either the input or output is intervened by the guardrail, a message is returned indicating the nature of the intervention and whether it happened at the input or output phase. The examples showcased in the following areas show reasoning [utilizing](http://39.106.43.96) this API.<br>
<br>Deploy DeepSeek-R1 in [Amazon Bedrock](https://ruraltv.in) 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 to DeepSeek-R1 in Amazon Bedrock, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, select Model brochure under Foundation designs in the navigation pane.
At the time of composing this post, you can utilize the InvokeModel API to conjure up the design. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a supplier and select the DeepSeek-R1 model.<br>
<br>The model detail page provides vital details about the design's abilities, pricing structure, and execution standards. You can discover [detailed usage](http://112.74.102.696688) guidelines, including sample API calls and code bits for combination. The design supports various text generation jobs, consisting of content production, code generation, and question answering, utilizing its optimization and CoT thinking abilities.
The page also includes implementation options and licensing details to help you get started with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to set up the deployment details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a number of instances (in between 1-100).
6. For example type, choose your circumstances type. For optimum efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure sophisticated security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, service function authorizations, and encryption settings. For most utilize cases, the default settings will work well. However, for production releases, you might wish to evaluate these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to [start utilizing](https://nextcode.store) the design.<br>
<br>When the release is total, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive user interface where you can explore different prompts and adjust model parameters like temperature and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimal results. For example, 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 ground offers instant feedback, assisting you comprehend how the design reacts to various inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can quickly evaluate the design in the playground 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 utilizing guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform reasoning using a released DeepSeek-R1 design through Amazon Bedrock [utilizing](http://150.158.93.1453000) the invoke_model and ApplyGuardrail API. 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. After you have produced the guardrail, use the following code to implement guardrails. The script initializes the bedrock_runtime client, configures reasoning parameters, and sends a request to create text based on a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial [intelligence](http://106.14.174.2413000) (ML) center with FMs, integrated algorithms, and prebuilt ML [services](https://www.indianpharmajobs.in) that you can deploy with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your information, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart uses 2 convenient approaches: utilizing the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both techniques to assist you pick the method that finest matches 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, choose Studio in the navigation pane.
2. First-time users will be [triggered](https://uwzzp.nl) to produce a domain.
3. On the SageMaker Studio console, pick [JumpStart](https://travelpages.com.gh) in the navigation pane.<br>
<br>The [design internet](https://knightcomputers.biz) browser shows available models, with details like the supplier name and design capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each design card reveals key details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
[Bedrock Ready](https://video.invirtua.com) badge (if suitable), [indicating](http://gite.limi.ink) that this design can be signed up with Amazon Bedrock, enabling you to use [Amazon Bedrock](https://tiptopface.com) APIs to invoke the model<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The design details page consists of 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 includes important details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you release the model, it's suggested to examine the design details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, utilize the instantly created name or create a custom-made one.
8. For example type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, get in the number of instances (default: 1).
Selecting suitable circumstances types and counts is crucial for expense and performance optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time inference is selected by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for accuracy. For this model, we strongly suggest 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 deployment process can take several minutes to finish.<br>
<br>When implementation is total, your endpoint status will alter to InService. At this point, the design is all set to accept reasoning demands through the endpoint. You can [monitor](https://www.longisland.com) the deployment progress 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 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 require to set up the SageMaker Python SDK and make certain you have the essential AWS consents and environment setup. The following is a detailed code example that demonstrates how to deploy and use DeepSeek-R1 for reasoning programmatically. The code for releasing the model is provided 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 utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can produce a guardrail using the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted charges, finish the steps in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed 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](http://159.75.133.6720080).
2. In the Managed deployments area, find the endpoint you want to delete.
3. Select the endpoint, and on the Actions menu, [pick Delete](https://turizm.md).
4. Verify the endpoint details to make certain you're deleting the right implementation: 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 expenses if you leave it running. Use the following code to delete 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 explored how you can access and release the DeepSeek-R1 model utilizing 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 tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting begun 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://vagyonor.hu) companies construct ingenious services using AWS services and sped up compute. Currently, he is focused on developing techniques for fine-tuning and optimizing the reasoning performance of large language designs. In his downtime, Vivek delights in hiking, watching movies, and trying various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://121.37.166.0:3000) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](http://121.37.166.0:3000) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect dealing with [generative](https://pingpe.net) [AI](http://wiki.pokemonspeedruns.com) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and [tactical partnerships](http://47.102.102.152) for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://play.hewah.com) center. She is passionate about developing services that assist [customers accelerate](https://www.diekassa.at) their [AI](http://www.hyingmes.com:3000) journey and unlock business worth.<br>