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

Christy Garber 2025-04-03 03:11:43 +08:00
commit 4c15113b21
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted to announce that DeepSeek R1 distilled Llama and [Qwen models](https://wiki.rolandradio.net) are available through Amazon Bedrock Marketplace and [Amazon SageMaker](https://pittsburghpenguinsclub.com) JumpStart. With this launch, you can now release DeepSeek [AI](https://aquarium.zone)'s first-generation [frontier](https://kollega.by) model, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion parameters to construct, experiment, and responsibly scale your generative [AI](https://work-ofie.com) ideas on AWS.<br>
<br>In this post, we demonstrate how to get begun with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps 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) established by DeepSeek [AI](https://flixtube.info) that utilizes support finding out to boost thinking abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A crucial differentiating feature is its support learning (RL) action, which was utilized to fine-tune the design's actions beyond the basic pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adapt more successfully to user feedback and objectives, eventually boosting both importance and [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:NormanMcAuley) clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) approach, implying it's equipped to break down complex queries and reason through them in a detailed way. This guided reasoning procedure permits the model to produce more accurate, transparent, and [detailed responses](https://holisticrecruiters.uk). 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 recorded the industry's attention as a [flexible text-generation](https://twoo.tr) design that can be integrated into different workflows such as representatives, logical thinking and data interpretation tasks.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture allows activation of 37 billion criteria, allowing efficient inference by routing questions to the most pertinent expert "clusters." This method allows the model to concentrate on various problem domains while maintaining general effectiveness. DeepSeek-R1 requires at least 800 GB of HBM memory in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking capabilities of the main R1 model to more efficient architectures based on [popular](http://repo.sprinta.com.br3000) open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of [training](https://git.logicloop.io) smaller sized, more efficient models to mimic the habits and reasoning patterns of the larger DeepSeek-R1 design, utilizing it as an instructor model.<br>
<br>You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we advise deploying this model with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to present safeguards, prevent harmful material, and assess designs against key security criteria. At the time of writing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce numerous guardrails tailored to different use cases and use them to the DeepSeek-R1 design, enhancing user experiences and [standardizing security](https://gitea.umrbotech.com) controls across your generative [AI](http://shammahglobalplacements.com) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, 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, choose Amazon SageMaker, and validate 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 you are deploying. To request a limitation increase, create a limit boost demand and reach out to your account team.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) permissions to use Amazon Bedrock [Guardrails](http://13.209.39.13932421). For directions, see Establish consents to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, avoid harmful content, and assess designs against crucial safety requirements. You can execute precaution for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to evaluate user inputs and design reactions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create 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 basic circulation involves the following actions: First, the system gets an input for [pediascape.science](https://pediascape.science/wiki/User:PhoebeUsl6003) the design. This input is then processed through the [ApplyGuardrail API](https://ashawo.club). If the input passes the guardrail check, it's sent to the design for inference. After receiving the model's output, another guardrail check is applied. If the output passes this last check, it's returned as the last 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 happened at the input or output stage. The examples showcased in the following areas 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 (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, select Model catalog under Foundation designs in the navigation pane.
At the time of [composing](https://pattonlabs.com) this post, you can utilize the InvokeModel API to invoke the design. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and select the DeepSeek-R1 model.<br>
<br>The model detail page provides necessary details about the model's abilities, prices structure, and execution standards. You can discover detailed usage directions, including sample API calls and code snippets for combination. The model supports various text generation jobs, [consisting](http://youtubeer.ru) of content development, code generation, and concern answering, using its support learning optimization and CoT reasoning abilities.
The page likewise includes deployment choices and licensing details to help you begin with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to set up the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a variety of [instances](https://datemyfamily.tv) (between 1-100).
6. For Instance type, pick your instance type. For optimal performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can set up innovative security and infrastructure settings, consisting of virtual private cloud (VPC) networking, service role consents, and file encryption settings. For the majority of use cases, the default settings will work well. However, for production deployments, you might wish to evaluate these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the design.<br>
<br>When the implementation is complete, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play area to access an interactive interface where you can explore different triggers and adjust design criteria like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimum results. For instance, content for reasoning.<br>
<br>This is an excellent method to explore the model's thinking and text generation capabilities before integrating it into your applications. The playground supplies instant feedback, assisting you [understand](http://jobteck.com) how the design reacts to different inputs and letting you fine-tune your prompts for ideal outcomes.<br>
<br>You can quickly test the model in the play ground through the UI. However, to conjure up the deployed model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run inference utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out inference using a deployed DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can create a guardrail using the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the [GitHub repo](https://welcometohaiti.com). After you have produced the guardrail, use the following code to execute guardrails. The script initializes the bedrock_runtime customer, sets up reasoning criteria, and sends out a demand to [produce text](http://47.90.83.1323000) based upon a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, built-in algorithms, and [prebuilt](https://git.frugt.org) ML services that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your information, and release them into [production](https://noblessevip.com) using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 hassle-free techniques: utilizing the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's explore both approaches to assist you select the method that best fits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to deploy DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the [SageMaker](https://one2train.net) console, pick Studio in the [navigation](http://101.33.234.2163000) pane.
2. First-time users will be triggered to produce a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The model web browser shows available designs, [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=12035368) with details like the service provider name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each design card reveals key details, consisting of:<br>
<br> name
- Provider name
- Task [category](https://www.kenpoguy.com) (for instance, Text Generation).
[Bedrock Ready](https://sugardaddyschile.cl) badge (if relevant), showing that this design can be registered with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The design details page includes the following details:<br>
<br>- The design name and [supplier details](https://samman-co.com).
Deploy button to release the design.
About and [wavedream.wiki](https://wavedream.wiki/index.php/User:Jada43H59015) Notebooks tabs with detailed details<br>
<br>The About tab includes important details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
[- Usage](https://owangee.com) guidelines<br>
<br>Before you deploy the design, it's advised to examine the design details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with deployment.<br>
<br>7. For Endpoint name, use the automatically produced name or create a custom one.
8. For Instance type ¸ pick a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the number of instances (default: 1).
Selecting appropriate instance types and counts is essential for expense and efficiency optimization. Monitor your implementation to adjust these settings as needed.Under Inference type, Real-time reasoning is [selected](https://heyanesthesia.com) by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for precision. For this design, we highly recommend adhering to SageMaker JumpStart default [settings](https://git.yingcaibx.com) and making certain that network seclusion remains in location.
11. Choose Deploy to deploy the design.<br>
<br>The release procedure can take several minutes to complete.<br>
<br>When deployment is total, your endpoint status will change to InService. At this point, the model is all set to accept reasoning requests through the endpoint. You can monitor the deployment development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the release is complete, you can conjure up the model utilizing 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 using the SageMaker Python SDK, you will require to install the SageMaker Python SDK and make certain you have the needed AWS authorizations 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 releasing the design is supplied 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 reasoning with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also utilize 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 shown in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted charges, complete the actions in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you released the design utilizing Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, choose Marketplace implementations.
2. In the Managed releases section, locate the endpoint you desire to erase.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the correct implementation: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you released will [sustain costs](https://aipod.app) if you leave it [running](https://bvbborussiadortmundfansclub.com). Use the following code to delete 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, [wiki.dulovic.tech](https://wiki.dulovic.tech/index.php/User:WiltonOLeary84) we checked out how you can access and release the DeepSeek-R1 design 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 started 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://www.rhcapital.cl) business construct innovative solutions utilizing AWS services and accelerated compute. Currently, he is focused on developing methods for fine-tuning and enhancing the reasoning efficiency of big language models. In his spare time, Vivek enjoys treking, seeing movies, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://guiding-lights.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://www.noagagu.kr) 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://vlabs.synology.me:45) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic partnerships for Amazon SageMaker JumpStart, [SageMaker's artificial](http://94.224.160.697990) intelligence and generative [AI](https://try.gogs.io) center. She is enthusiastic about developing solutions that help consumers accelerate their [AI](https://gitlab.henrik.ninja) journey and unlock service value.<br>