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

Cassie Whitmore 2025-02-09 09:06:10 +08:00
parent 57c0fee04c
commit 5ca638e4cd
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](http://175.27.215.92:3000)'s first-generation frontier model, DeepSeek-R1, along with the distilled versions ranging from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](https://tmiglobal.co.uk) concepts on AWS.<br>
<br>In this post, we demonstrate how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar steps to release the distilled versions of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](https://git.mm-music.cn) that uses support finding out to enhance thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A key identifying feature is its reinforcement learning (RL) step, which was used to improve the design's reactions beyond the basic pre-training and fine-tuning process. By including RL, DeepSeek-R1 can adjust more efficiently to user feedback and goals, eventually improving both relevance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, suggesting it's geared up to break down complex inquiries and factor through them in a detailed way. This guided thinking process permits the model to produce more precise, transparent, and detailed responses. This design combines RL-based fine-tuning with CoT abilities, aiming to create structured actions while concentrating on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has captured the industry's attention as a flexible text-generation design that can be incorporated into numerous workflows such as representatives, sensible thinking and information analysis tasks.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture allows activation of 37 billion specifications, making it possible for efficient reasoning by routing queries to the most relevant professional "clusters." This approach enables the design to specialize in different problem domains while maintaining general efficiency. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 xlarge circumstances to deploy the design. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of .<br>
<br>DeepSeek-R1 [distilled models](http://1.92.128.2003000) bring the thinking abilities of the main R1 design to more effective architectures based on popular open models like Qwen (1.5 B, 7B, [wiki.lafabriquedelalogistique.fr](https://wiki.lafabriquedelalogistique.fr/Utilisateur:SergioK789226859) 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller sized, more effective designs to imitate the habits and thinking patterns of the bigger DeepSeek-R1 model, utilizing it as an [instructor model](http://travelandfood.ru).<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend deploying this model with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid damaging material, and examine models against essential safety requirements. At the time of writing this blog site, for [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:CarissaWillett7) DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop several guardrails tailored to various usage cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls across your generative [AI](https://bio.rogstecnologia.com.br) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you require access to an ml.p5e instance. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, select 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 releasing. To request a limit increase, create a limitation boost demand and connect to your account group.<br>
<br>Because you will be [releasing](http://121.4.154.1893000) this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) authorizations to utilize Amazon Bedrock Guardrails. For instructions, see Establish consents to use guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to present safeguards, avoid damaging material, and assess models against crucial security requirements. You can implement security procedures for [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:LucasFtu80211) the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and model responses released on Amazon Bedrock Marketplace and SageMaker JumpStart. 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.<br>
<br>The general flow involves the following steps: First, the system gets 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 inference. After getting the model's output, another guardrail check is applied. 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 indicating the nature of the intervention and whether it occurred at the input or output stage. The examples showcased in the following areas show reasoning utilizing this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, [garagesale.es](https://www.garagesale.es/author/toshahammon/) emerging, and specialized structure 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, choose Model catalog under Foundation models in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and pick the DeepSeek-R1 model.<br>
<br>The design detail page provides important details about the design's abilities, prices structure, and implementation guidelines. You can discover detailed use directions, including sample [API calls](http://112.126.100.1343000) and code bits for combination. The model supports different text generation jobs, consisting of content development, code generation, and concern answering, utilizing its reinforcement learning optimization and CoT reasoning abilities.
The page likewise consists of release choices and licensing details to help you get going with DeepSeek-R1 in your [applications](https://bio.rogstecnologia.com.br).
3. To begin utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to configure the release details for DeepSeek-R1. The model ID will be pre-populated.
4. For [Endpoint](https://eurosynapses.giannistriantafyllou.gr) name, enter an endpoint name (in between 1-50 alphanumeric characters).
5. For Number of circumstances, get in a number of instances (in between 1-100).
6. For example type, select your [circumstances type](https://wamc1950.com). For optimum efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure innovative security and facilities settings, including virtual [personal](http://47.100.220.9210001) cloud (VPC) networking, service role authorizations, and file encryption settings. For many utilize cases, the default settings will work well. However, for production implementations, you may wish to [evaluate](http://media.clear2work.com.au) these settings to align with your company's security and compliance requirements.
7. Choose Deploy to start using the model.<br>
<br>When the release is total, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive interface where you can explore different triggers and adjust model parameters like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimum outcomes. For instance, content for reasoning.<br>
<br>This is an outstanding method to explore the model's reasoning and text generation capabilities before incorporating it into your applications. The playground supplies immediate feedback, assisting you understand how the design reacts to various inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can rapidly evaluate the design in the play ground through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you [require](https://vishwakarmacommunity.org) to get the endpoint ARN.<br>
<br>Run reasoning using [guardrails](http://gitlab.gavelinfo.com) with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning using a deployed DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. 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. After you have actually developed the guardrail, use the following code to execute guardrails. The script initializes the bedrock_runtime customer, sets up inference parameters, and sends out a request to create text based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, integrated algorithms, and prebuilt ML solutions that you can deploy with just a few clicks. With SageMaker JumpStart, you can [tailor pre-trained](https://jobsubscribe.com) models to your use case, with your data, and [release](https://open-gitlab.going-link.com) them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart offers 2 convenient methods: utilizing the intuitive SageMaker JumpStart UI or implementing programmatically through the [SageMaker Python](https://www.iqbagmarket.com) SDK. Let's explore both approaches to assist you choose the technique that best suits your [requirements](https://houseimmo.com).<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, [select Studio](https://git.aaronmanning.net) in the navigation pane.
2. First-time users will be prompted to create a domain.
3. On the SageMaker Studio console, [select JumpStart](https://git.runsimon.com) in the navigation pane.<br>
<br>The design internet browser shows available models, with details like the company name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each design card reveals essential details, including:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if suitable), indicating that this model can be [registered](https://jobz1.live) with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the design card to view the design details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The design name and provider details.
Deploy button to deploy the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of important details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the model, it's recommended 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, utilize the automatically generated name or create a customized one.
8. For Instance type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the variety of circumstances (default: 1).
Selecting suitable circumstances types and counts is important for cost and performance optimization. Monitor your release to change 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 setups for precision. For this model, we highly advise adhering to SageMaker JumpStart [default](http://daeasecurity.com) settings and making certain that [network isolation](http://www.fun-net.co.kr) remains in location.
11. Choose Deploy to deploy the model.<br>
<br>The implementation process can take a number of minutes to finish.<br>
<br>When deployment is complete, your endpoint status will change to InService. At this point, [bio.rogstecnologia.com.br](https://bio.rogstecnologia.com.br/dewaynerodri) the design is prepared to accept reasoning demands through the endpoint. You can monitor the implementation development on the SageMaker console Endpoints page, which will display appropriate [metrics](http://git.nextopen.cn) and status details. When the implementation is total, you can [conjure](https://www.jobindustrie.ma) up the model using a SageMaker runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To begin with DeepSeek-R1 using the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the required AWS authorizations and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for inference programmatically. The code for [deploying](https://www.rybalka.md) the design is offered in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run [additional demands](https://hyperwrk.com) against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail utilizing 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](http://1.92.128.2003000) charges, finish the steps in this section 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](http://globalk-foodiero.com) console, under Foundation designs in the navigation pane, choose Marketplace releases.
2. In the Managed releases area, find the endpoint you want to erase.
3. Select the endpoint, and on the Actions menu, pick 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 JumpStart design you [deployed](https://saopaulofansclub.com) will sustain costs if you leave it running. Use the following code to delete the [endpoint](https://bitca.cn) if you desire to stop [sustaining charges](https://bolsadetrabajo.tresesenta.mx). 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 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to begin. 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 going with Amazon [SageMaker JumpStart](https://video.chops.com).<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions [Architect](https://www.jaitun.com) for Inference at AWS. He assists emerging generative [AI](http://123.56.193.182:3000) business build innovative services using AWS services and accelerated calculate. Currently, he is concentrated on establishing methods for fine-tuning and enhancing the inference efficiency of large language models. In his spare time, Vivek takes pleasure in treking, viewing films, and trying various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://wishjobs.in) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](http://175.27.189.80:3000) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://src.enesda.com) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://men7ty.com) center. She is passionate about developing solutions that assist consumers accelerate their [AI](http://it-viking.ch) journey and unlock company worth.<br>