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

master
Christen Whiteside 2025-04-08 16:14:30 +08:00
commit 67b0a4c7a7
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 and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](https://consultoresdeproductividad.com)'s first-generation frontier design, DeepSeek-R1, along with the distilled versions varying from 1.5 to 70 billion specifications to develop, experiment, and responsibly scale your generative [AI](https://japapmessenger.com) concepts 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 deploy the distilled variations of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) [established](https://chat.app8station.com) by DeepSeek [AI](https://dakresources.com) that uses reinforcement discovering to improve reasoning abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A key differentiating function is its support learning (RL) action, which was used to fine-tune the model's actions beyond the basic pre-training and fine-tuning process. By incorporating RL, DeepSeek-R1 can adapt more effectively to user feedback and objectives, eventually improving both significance and clarity. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, implying it's geared up to break down complex questions and factor through them in a detailed manner. This directed thinking process permits the model to produce more accurate, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT capabilities, aiming to generate structured responses while focusing on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has recorded the industry's attention as a flexible text-generation model that can be integrated into different workflows such as representatives, sensible reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion criteria, allowing efficient inference by routing questions to the most [relevant](https://storymaps.nhmc.uoc.gr) expert "clusters." This method allows the design to focus on different issue domains while maintaining overall performance. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 xlarge instance to release the design. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking capabilities of the main R1 design to more effective architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:SamualGuillen) Llama (8B and 70B). Distillation refers to a process of training smaller sized, more effective models to mimic the behavior and thinking patterns of the bigger DeepSeek-R1 model, utilizing it as an instructor design.<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 site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, prevent hazardous material, and examine models against [crucial security](https://noteswiki.net) requirements. At the time of composing this blog site, for DeepSeek-R1 [implementations](https://www.graysontalent.com) on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop multiple guardrails tailored to different use cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls across your generative [AI](https://git.micahmoore.io) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, 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 instance in the AWS Region you are releasing. To request a limit increase, create a [limit increase](http://1.14.122.1703000) demand [oeclub.org](https://oeclub.org/index.php/User:AnaPottinger2) and connect to your account group.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) authorizations to utilize Amazon Bedrock Guardrails. For guidelines, see Set up permissions to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, avoid damaging content, and assess models against key security requirements. You can execute safety measures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to [examine](http://ja7ic.dxguy.net) user inputs and model reactions 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 produce the guardrail, [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:XXBCorine49) see the GitHub repo.<br>
<br>The basic flow involves the following steps: First, the system [receives](http://142.93.151.79) an input for the design. 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 receiving the design's output, another guardrail check is used. If the output passes this final check, it's returned as the final result. However, if either the input or output is stepped in 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 inference utilizing this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon [Bedrock Marketplace](https://bestwork.id) gives you access to over 100 popular, emerging, and specialized foundation models (FMs) through [Amazon Bedrock](http://203.171.20.943000). To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, select Model catalog under Foundation models in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to conjure up the model. It does not 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 design detail page offers necessary details about the design's abilities, rates structure, and execution standards. You can find detailed use instructions, consisting of sample API calls and code snippets for integration. The model supports various text generation tasks, including material creation, code generation, and concern answering, utilizing its reinforcement learning optimization and CoT reasoning capabilities.
The page also consists of implementation alternatives and licensing details to help you get begun with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, pick Deploy.<br>
<br>You will be prompted to set up the release details for DeepSeek-R1. The model 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 variety of circumstances (between 1-100).
6. For Instance type, choose your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can configure innovative security and facilities settings, including virtual [private](https://pycel.co) cloud (VPC) networking, service role consents, and file encryption settings. For many utilize cases, the default settings will work well. However, for production deployments, you may desire to evaluate these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the model.<br>
<br>When the implementation is total, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in playground to access an interactive interface where you can experiment with various prompts and change model criteria like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimum outcomes. For instance, material 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 offers immediate feedback, helping you understand how the design reacts to different inputs and letting you fine-tune your [prompts](https://chatgay.webcria.com.br) for ideal results.<br>
<br>You can quickly test the design in the play ground through the UI. However, to conjure up the released model programmatically with any Amazon Bedrock APIs, you require 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 carry out reasoning utilizing a deployed DeepSeek-R1 design through Amazon Bedrock using the invoke_model and [bio.rogstecnologia.com.br](https://bio.rogstecnologia.com.br/mia335414507) ApplyGuardrail API. You can create a guardrail using the Amazon Bedrock [console](https://projectblueberryserver.com) or the API. For the example code to produce the guardrail, see the GitHub repo. After you have developed the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference parameters, and sends out a demand [wiki.dulovic.tech](https://wiki.dulovic.tech/index.php/User:Alma22I28738) to create text based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, [integrated](http://turtle.tube) algorithms, and prebuilt ML solutions that you can deploy with simply a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your use case, with your data, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart offers 2 hassle-free methods: utilizing the instinctive SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's explore both techniques to assist you pick the method that finest matches your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, pick Studio in the navigation pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The design web browser shows available designs, with details like the service provider name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each model card shows essential details, [disgaeawiki.info](https://disgaeawiki.info/index.php/User:ErvinOrme056) including:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if appropriate), showing that this model can be signed up with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to conjure up the model<br>
<br>5. Choose the model card to view the model details page.<br>
<br>The design details page includes the following details:<br>
<br>- The model name and company details.
Deploy button to [release](https://gitea.cisetech.com) the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of essential details, such as:<br>
<br>[- Model](https://gitea.star-linear.com) description.
- License details.
- Technical specifications.
- Usage guidelines<br>
<br>Before you release the model, it's suggested to review the model details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with release.<br>
<br>7. For Endpoint name, utilize the immediately produced name or create a customized one.
8. For Instance type ¸ select an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the number of instances (default: 1).
Selecting proper [instance](https://www.cbmedics.com) types and counts is crucial for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time reasoning is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for accuracy. For this model, we strongly recommend sticking to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the model.<br>
<br>The deployment procedure can take numerous minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this moment, the design is prepared to accept inference requests through the endpoint. You can monitor the deployment progress on the [SageMaker](https://gitea.neoaria.io) console Endpoints page, which will display appropriate metrics and status details. When the deployment is total, you can up the design using a SageMaker runtime customer and incorporate 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 install 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 [wiki.dulovic.tech](https://wiki.dulovic.tech/index.php/User:AndreThorp2) utilize DeepSeek-R1 for reasoning programmatically. The code for deploying the design is provided in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>[Implement guardrails](http://183.238.195.7710081) 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 develop a [guardrail utilizing](https://talentocentroamerica.com) the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent undesirable charges, finish the actions in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the design using Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under [Foundation designs](http://swwwwiki.coresv.net) in the navigation pane, pick Marketplace deployments.
2. In the Managed implementations section, locate the endpoint you desire 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 appropriate deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The [SageMaker](https://gitlab.thesunflowerlab.com) JumpStart model you released will sustain costs 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](http://117.72.17.1323000).<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, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker [JumpStart Foundation](https://studiostilesandtotalfitness.com) Models, Amazon Bedrock Marketplace, and Getting going 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://git.tanxhub.com) companies build innovative options using AWS services and sped up compute. Currently, he is focused on developing strategies for fine-tuning and optimizing the reasoning efficiency of large language models. In his downtime, Vivek delights in hiking, watching films, and attempting various foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://fujino-mori.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](https://i10audio.com) 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](https://joinwood.co.kr) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial [intelligence](https://git.corp.xiangcms.net) and generative [AI](http://bedfordfalls.live) hub. She is enthusiastic about constructing services that help clients accelerate their [AI](https://www.pakalljobz.com) journey and [unlock company](http://bedfordfalls.live) worth.<br>