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

Lisa Sisk 2025-04-06 17:27:12 +08:00
commit 2ce662ca0f
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 are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](https://yourmoove.in)'s first-generation frontier model, DeepSeek-R1, in addition to the [distilled versions](https://git.kuyuntech.com) ranging from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](https://git.esc-plus.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable actions to deploy the distilled versions of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) developed by DeepSeek [AI](https://municipalitybank.com) that uses reinforcement finding out to boost thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial distinguishing feature is its support learning (RL) step, which was used to improve the design's reactions beyond the standard pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adapt better to user feedback and objectives, ultimately boosting both importance and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, meaning it's equipped to break down [complicated inquiries](https://www.rybalka.md) and factor through them in a detailed way. This guided reasoning procedure permits the model to produce more accurate, transparent, and detailed responses. This model combines RL-based fine-tuning with CoT abilities, aiming to create structured responses while concentrating on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has captured the market's attention as a versatile text-generation design that can be incorporated into various workflows such as agents, sensible 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 permits activation of 37 billion specifications, allowing effective inference by routing questions to the most relevant expert "clusters." This approach enables the design to specialize in various problem domains while maintaining general efficiency. 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 instance to release the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking abilities of the main R1 model to more effective architectures based on popular open [designs](https://gst.meu.edu.jo) like Qwen (1.5 B, 7B, 14B, [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:LawerenceIsenber) and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller, more efficient models to mimic the habits and reasoning patterns of the larger DeepSeek-R1 model, using 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](http://git.setech.ltd8300) model, we suggest releasing this model with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, prevent damaging content, and assess models against essential security requirements. At the time of writing this blog, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, [Bedrock Guardrails](https://municipalitybank.com) supports just the ApplyGuardrail API. You can produce multiple guardrails tailored to different usage cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls across your generative [AI](https://deadreckoninggame.com) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, 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, pick 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 deploying. To ask for a limitation boost, develop a limit boost request and connect to your account group.<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) consents to use Amazon Bedrock Guardrails. For directions, see Set up consents to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, avoid hazardous content, and [evaluate models](http://135.181.29.1743001) against crucial safety [requirements](https://jskenglish.com). You can execute precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and model actions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a [guardrail utilizing](https://newhopecareservices.com) the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The general 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 design for reasoning. After getting the design's output, another guardrail check is [applied](https://chutpatti.com). If the output passes this final 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 took place at the input or output phase. The examples showcased in the following sections show reasoning 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, total the following actions:<br>
<br>1. On the Amazon Bedrock console, select [Model brochure](https://oyotunji.site) under Foundation models in the navigation pane.
At the time of writing this post, you can use 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 [service provider](https://projobs.dk) and choose the DeepSeek-R1 model.<br>
<br>The model detail page supplies important details about the model's abilities, prices structure, and application guidelines. You can discover detailed use instructions, consisting of sample API calls and code snippets for integration. The model supports numerous text generation jobs, including material development, code generation, and question answering, utilizing its reinforcement learning [optimization](https://labs.hellowelcome.org) and CoT reasoning capabilities.
The page also includes release options and licensing details to assist you get begun with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, select Deploy.<br>
<br>You will be prompted to configure the implementation details for DeepSeek-R1. The design ID will be [pre-populated](https://newhopecareservices.com).
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of circumstances, enter a variety of circumstances (in between 1-100).
6. For Instance type, select your circumstances type. For optimal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure advanced security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, service role authorizations, and encryption settings. For most use cases, the default settings will work well. However, for production deployments, you may want to evaluate these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to start using the design.<br>
<br>When the release is complete, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive user interface where you can experiment with different triggers and adjust design specifications like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimal results. For instance, material for reasoning.<br>
<br>This is an exceptional method to explore the model's thinking and text generation capabilities before integrating it into your applications. The [playground supplies](https://www.ntcinfo.org) instant feedback, helping you comprehend how the model reacts to various inputs and letting you fine-tune your prompts for optimal outcomes.<br>
<br>You can rapidly check the design in the playground through the UI. However, to invoke the deployed model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run inference utilizing guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference utilizing a released DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can produce 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](https://jobwings.in) the following code to carry out guardrails. The script initializes the bedrock_[runtime](https://owow.chat) client, configures inference specifications, and sends a request to based upon a user timely.<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 ML services that you can release with simply a few clicks. With SageMaker JumpStart, you can [tailor pre-trained](https://hcp.com.gt) 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 provides 2 hassle-free approaches: utilizing the intuitive SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's check out both methods to assist you pick the method that best matches your requirements.<br>
<br>Deploy DeepSeek-R1 through [SageMaker JumpStart](https://gitea.johannes-hegele.de) UI<br>
<br>Complete the following actions to deploy DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, pick Studio in the navigation pane.
2. First-time users will be triggered to create a domain.
3. On the [SageMaker Studio](https://kenyansocial.com) console, choose JumpStart in the navigation pane.<br>
<br>The model browser shows available models, with details like the provider name and design abilities.<br>
<br>4. Search for DeepSeek-R1 to view 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 relevant), showing that this model can be signed up with Amazon Bedrock, permitting you to utilize Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the model card to view the design details page.<br>
<br>The model details page includes the following details:<br>
<br>- The model name and company details.
Deploy button to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About [tab consists](http://git.zonaweb.com.br3000) of important details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the design, it's recommended to review the design details and license terms to confirm compatibility with your use case.<br>
<br>6. Choose Deploy to continue with release.<br>
<br>7. For Endpoint name, use the automatically generated name or create a customized one.
8. For Instance type ¸ pick a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the number of circumstances (default: 1).
Selecting appropriate instance types and counts is essential for cost and efficiency optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time inference is chosen by default. This is optimized for sustained traffic and low latency.
10. Review all setups for precision. For this design, we strongly suggest sticking to [SageMaker JumpStart](https://xinh.pro.vn) default settings and making certain that network isolation remains in place.
11. Choose Deploy to deploy the model.<br>
<br>The release procedure can take several minutes to finish.<br>
<br>When release is total, your endpoint status will change to InService. At this point, the design is prepared to accept inference demands through the endpoint. You can monitor the implementation progress on the [SageMaker console](https://git.alternephos.org) Endpoints page, which will display appropriate metrics and status details. When the release is total, you can invoke the model using a SageMaker runtime customer and integrate it with your [applications](https://xpressrh.com).<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 require to install the SageMaker Python SDK and make certain you have the necessary AWS permissions and environment setup. The following is a detailed code example that demonstrates how to release and use DeepSeek-R1 for inference 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 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 also utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can produce a guardrail utilizing the Amazon Bedrock console or the API, and implement it as shown in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, complete the steps in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the model using Amazon Bedrock Marketplace, total 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 implementations area, find 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 deleting the appropriate deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you deployed will [sustain costs](http://47.102.102.152) if you leave it running. Use the following code to erase 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 using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get going. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained models, 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 helps emerging generative [AI](https://splink24.com) business build innovative solutions using AWS services and accelerated compute. Currently, he is concentrated on establishing methods for fine-tuning and enhancing the reasoning performance of large language models. In his downtime, Vivek enjoys hiking, viewing movies, and trying various cuisines.<br>
<br>Niithiyn Vijeaswaran is a [Generative](https://surmodels.com) [AI](https://app.galaxiesunion.com) Specialist Solutions [Architect](https://gitcq.cyberinner.com) with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](http://kuzeydogu.ogo.org.tr) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](http://47.101.207.123:3000) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://travel-friends.net) center. She is enthusiastic about building solutions that assist consumers accelerate their [AI](http://www.zhihutech.com) journey and unlock business value.<br>