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

Bianca Adamek 2025-02-21 08:32:01 +08:00
commit 116fee8b1d
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted to reveal that DeepSeek R1 [distilled Llama](http://kandan.net) and [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11975578) Qwen models are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](http://40th.jiuzhai.com)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled versions varying from 1.5 to 70 billion specifications to build, experiment, and properly scale your generative [AI](https://git.komp.family) ideas on AWS.<br>
<br>In this post, we demonstrate how to get started with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to release the distilled variations of the models as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) established by DeepSeek [AI](https://onsanmo.co.kr) that utilizes reinforcement finding out to boost thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial differentiating feature is its support learning (RL) step, which was utilized to fine-tune the design's reactions beyond the standard pre-training and fine-tuning procedure. By [integrating](https://heyplacego.com) RL, DeepSeek-R1 can adjust more efficiently to user feedback and goals, eventually boosting both relevance and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) approach, meaning it's geared up to break down complicated queries and reason through them in a detailed manner. This directed thinking procedure enables the model to produce more accurate, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT abilities, aiming to create structured actions while focusing on interpretability and [genbecle.com](https://www.genbecle.com/index.php?title=Utilisateur:NicolasTeichelma) user interaction. With its wide-ranging abilities DeepSeek-R1 has caught the industry's attention as a flexible text-generation design that can be incorporated into numerous workflows such as representatives, logical thinking and data analysis tasks.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion [criteria](https://soucial.net) in size. The MoE architecture enables activation of 37 billion parameters, allowing efficient reasoning by routing inquiries to the most relevant specialist "clusters." This method [enables](https://xpressrh.com) the model to specialize in different problem domains while maintaining overall performance. DeepSeek-R1 requires at least 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge instance to deploy the design. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 design to more efficient architectures based on [popular](https://malidiaspora.org) open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of training smaller sized, more effective designs to mimic the habits and thinking patterns of the bigger DeepSeek-R1 design, utilizing 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 suggest [deploying](https://pioneercampus.ac.in) this design with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, prevent damaging material, and examine designs against key safety criteria. At the time of composing this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and [Bedrock](https://deadreckoninggame.com) Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can produce several guardrails tailored to various usage cases and apply them to the DeepSeek-R1 design, improving user experiences and standardizing security controls throughout your [generative](https://suomalaistajalkapalloa.com) [AI](https://git.bugwc.com) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you require access to an ml.p5e circumstances. To [inspect](http://175.24.176.23000) if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and verify 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 deploying. To request a limit boost, create a limit increase request and [connect](https://pandatube.de) to your account group.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) [authorizations](http://dev.nextreal.cn) to utilize Amazon Bedrock Guardrails. For directions, see Set up consents to use [guardrails](https://git.we-zone.com) for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to introduce safeguards, avoid hazardous material, and assess models against key safety criteria. You can implement security steps for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to examine user inputs and model responses deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail using the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The basic circulation includes 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 model 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 last outcome. 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 took place at the input or output stage. The [examples showcased](https://flixtube.org) in the following sections show reasoning using 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 foundation 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 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 design. It does not [support Converse](http://git.sysoit.co.kr) APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and select the DeepSeek-R1 model.<br>
<br>The design detail page offers necessary details about the model's capabilities, pricing structure, and execution standards. You can discover detailed usage directions, consisting of sample API calls and code bits for integration. The model supports various text generation tasks, consisting of content development, code generation, and concern answering, utilizing its reinforcement learning optimization and CoT reasoning capabilities.
The page likewise includes [release alternatives](http://47.119.128.713000) and licensing details to help you get going with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, select Deploy.<br>
<br>You will be prompted 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 (between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a number of [instances](https://houseimmo.com) (in between 1-100).
6. For Instance type, choose your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure advanced security and facilities settings, consisting of [virtual private](https://git.whistledev.com) cloud (VPC) networking, service role authorizations, [wiki.rolandradio.net](https://wiki.rolandradio.net/index.php?title=User:RudyRenteria459) and encryption settings. For most utilize cases, the default settings will work well. However, for [production](http://119.45.195.10615001) releases, you might desire to evaluate these settings to line up with your organization's security and compliance [requirements](http://git.estoneinfo.com).
7. Choose Deploy to [start utilizing](https://addismarket.net) the design.<br>
<br>When the release is total, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive interface where you can experiment with different 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 template for ideal outcomes. For instance, content for inference.<br>
<br>This is an outstanding way to explore the model's thinking and text generation capabilities before incorporating it into your [applications](https://git.dev.advichcloud.com). The play area offers immediate feedback, assisting you understand how the design reacts to different inputs and letting you fine-tune your prompts for optimal results.<br>
<br>You can quickly check the model in the play ground 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 using guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning using a [released](https://901radio.com) DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can develop a guardrail using the Amazon Bedrock [console](https://git.hackercan.dev) or the API. For the example code to produce the guardrail, see the GitHub repo. After you have actually produced the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, configures reasoning parameters, and sends out a request to produce text based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with [SageMaker](http://poscotech.co.kr) JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, integrated algorithms, and prebuilt ML services that you can deploy with simply a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your use case, with your information, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart uses 2 convenient approaches: utilizing the user-friendly SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's check out both [techniques](https://bartists.info) to assist you choose the method that best suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to deploy DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the navigation pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The design browser shows available designs, with details like the provider name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each model card reveals key details, including:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if appropriate), showing that this model can be signed up with Amazon Bedrock, enabling you to use Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the design card to view the model details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The model name and service provider details.
Deploy button to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical specifications.
- Usage guidelines<br>
<br>Before you release the model, it's suggested to evaluate the model details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the immediately generated name or develop a custom one.
8. For Instance type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of circumstances (default: 1).
Selecting proper instance types and counts is important for expense and performance optimization. Monitor your deployment to adjust these settings as needed.Under Inference type, Real-time inference is selected by default. This is optimized for sustained traffic and [wavedream.wiki](https://wavedream.wiki/index.php/User:GeorgiannaMohamm) low latency.
10. Review all configurations for precision. For this model, we highly recommend sticking to SageMaker JumpStart default [settings](http://60.250.156.2303000) and making certain that network seclusion remains in location.
11. Choose Deploy to deploy the model.<br>
<br>The release procedure can take a number of minutes to finish.<br>
<br>When release is complete, your endpoint status will alter to InService. At this point, the design is prepared to accept inference requests through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will show pertinent metrics and status details. When the deployment is total, you can conjure up the design utilizing a SageMaker runtime customer and [integrate](https://app.hireon.cc) it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get started with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the essential AWS permissions and environment setup. The following is a detailed code example that shows how to deploy and utilize DeepSeek-R1 for reasoning programmatically. The code for deploying the design is offered in the Github here. You can clone the notebook and range from SageMaker Studio.<br>
<br>You can run additional demands against the predictor:<br>
<br>Implement guardrails and run inference 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 create a guardrail utilizing the Amazon Bedrock console or the API, and execute it as [revealed](https://gogs.zhongzhongtech.com) in the following code:<br>
<br>Tidy up<br>
<br>To prevent undesirable charges, finish the steps in this section to clean up your [resources](https://telecomgurus.in).<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, total the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace releases.
2. In the Managed releases 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 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 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 deploy the DeepSeek-R1 design utilizing Bedrock Marketplace and [SageMaker](https://pakallnaukri.com) JumpStart. Visit SageMaker [JumpStart](http://110.90.118.1293000) 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 models, Amazon SageMaker JumpStart [Foundation](https://vidacibernetica.com) 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 assists emerging generative [AI](http://xn---atd-9u7qh18ebmihlipsd.com) business develop innovative solutions using AWS services and accelerated compute. Currently, he is focused on establishing strategies for fine-tuning and enhancing the reasoning performance of big [language designs](https://ckzink.com). In his complimentary time, Vivek enjoys hiking, enjoying motion pictures, and [attempting](http://103.140.54.203000) various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://cheere.org) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://git.bluestoneapps.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://www.jooner.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://jobflux.eu) hub. She is passionate about developing solutions that help customers accelerate their [AI](https://watch-wiki.org) journey and unlock company worth.<br>