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

Aaron Stern 2025-03-05 05:49:29 +03:00
commit abc5a9343d
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are excited 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://storage.sukazyo.cc)'s first-generation frontier design, DeepSeek-R1, together with the distilled variations varying from 1.5 to 70 billion specifications to build, experiment, [yewiki.org](https://www.yewiki.org/User:FloridaMowry7) and properly scale your generative [AI](http://123.56.193.182:3000) concepts on AWS.<br>
<br>In this post, we show how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to deploy the distilled variations of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) developed by DeepSeek [AI](https://bocaiw.in.net) that uses support learning to improve thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. An essential differentiating feature is its reinforcement knowing (RL) step, which was utilized to refine the design's actions beyond the standard pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adapt more efficiently to user feedback and objectives, ultimately enhancing both significance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) approach, indicating it's equipped to break down complex queries and [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:ChantalKopsen2) factor through them in a detailed way. This guided thinking procedure enables the design to produce more precise, transparent, and detailed responses. This design integrates RL-based fine-tuning with CoT capabilities, aiming to generate structured reactions while focusing on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has recorded the market's attention as a versatile text-generation model that can be incorporated into various workflows such as agents, logical thinking and data interpretation tasks.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The [MoE architecture](https://git.cooqie.ch) enables activation of 37 billion parameters, enabling efficient reasoning by routing questions to the most relevant specialist "clusters." This approach allows the model 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 circumstances to deploy the design. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model to more efficient architectures based upon popular open designs like Qwen (1.5 B, [larsaluarna.se](http://www.larsaluarna.se/index.php/User:TerryHadley31) 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller, more effective models to imitate the behavior and reasoning patterns of the bigger DeepSeek-R1 model, using it as an instructor model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend releasing this design with guardrails in location. In this blog, 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, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create numerous guardrails tailored to various usage cases and use them to the DeepSeek-R1 design, improving user experiences and standardizing security controls throughout your generative [AI](http://gogs.dev.fudingri.com) .<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, choose 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](https://www.myad.live) in the AWS Region you are releasing. To request a limitation boost, develop a limitation increase demand and connect to your account team.<br>
<br>Because you will be [releasing](https://careers.ebas.co.ke) this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and [Gain Access](https://saghurojobs.com) To Management (IAM) approvals to utilize Amazon Bedrock Guardrails. For directions, see Establish consents to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to introduce safeguards, avoid harmful material, and assess models against key safety criteria. You can execute security measures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This permits you to apply guardrails to assess user inputs and design reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create a [guardrail](https://git.l1.media) using the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the [GitHub repo](https://storage.sukazyo.cc).<br>
<br>The basic flow involves the following actions: 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 to the model for reasoning. After getting the design's output, another guardrail check is used. If the output passes this last check, it's returned as the [outcome](https://kanjob.de). 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 phase. The examples showcased in the following sections demonstrate reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon [Bedrock Marketplace](https://demo.shoudyhosting.com) 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, select Model catalog under [Foundation models](https://www.xcoder.one) in the navigation pane.
At the time of writing this post, you can utilize 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 provider and choose the DeepSeek-R1 design.<br>
<br>The model detail page provides necessary details about the model's capabilities, rates structure, and execution guidelines. You can discover detailed use guidelines, including sample API calls and code bits for combination. The design supports different text generation jobs, consisting of material development, code generation, and question answering, using its support discovering optimization and [CoT thinking](http://120.77.67.22383) [capabilities](https://git.lewis.id).
The page also consists of release options and licensing details to assist you get begun with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to set up the [implementation details](http://git.nationrel.cn3000) for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (in between 1-50 [alphanumeric](https://retailjobacademy.com) characters).
5. For Variety of circumstances, get in a number of [instances](https://spotlessmusic.com) (between 1-100).
6. For example type, choose your circumstances type. For optimum efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure sophisticated security and facilities settings, consisting of virtual private cloud (VPC) networking, service role permissions, and encryption settings. For the majority of utilize cases, the default settings will work well. However, for production implementations, you might wish to review these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start using the design.<br>
<br>When the deployment is complete, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive interface where you can try out different triggers and change design parameters like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for ideal results. For example, content for inference.<br>
<br>This is an exceptional method to explore the model's reasoning and text generation capabilities before integrating it into your applications. The play area supplies instant feedback, helping you understand how the model reacts to different inputs and letting you fine-tune your prompts for optimum outcomes.<br>
<br>You can quickly evaluate the design in the [play ground](https://careerportals.co.za) through the UI. However, to conjure up the deployed model programmatically with any Amazon Bedrock APIs, you require 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 perform inference utilizing a released DeepSeek-R1 model 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 create the guardrail, see the GitHub repo. After you have actually created the guardrail, use the following code to implement guardrails. The script initializes the bedrock_runtime client, sets up reasoning specifications, and sends out a request to produce text based on a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, integrated algorithms, and prebuilt ML services that you can [release](https://git.intellect-labs.com) with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your use case, with your data, and deploy them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides two practical methods: utilizing the instinctive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both approaches to help you choose the technique that best fits your needs.<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](https://cvmobil.com) console, pick Studio in the navigation pane.
2. First-time users will be triggered to produce a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The design internet browser displays available models, with details like the service provider name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each design card reveals essential details, consisting of:<br>
<br>[- Model](http://113.177.27.2002033) name
- Provider name
- Task category (for example, Text Generation).
Bedrock Ready badge (if suitable), indicating that this design can be [registered](https://cannabisjobs.solutions) with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the design card to see the design details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The model name and supplier 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](http://101.33.255.603000).
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you release the design, it's suggested to review the model details and license terms to validate compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, use the instantly produced name or produce a custom one.
8. For Instance type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the variety of circumstances (default: 1).
Selecting proper instance types and counts is vital for cost and performance optimization. Monitor your implementation to change these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for precision. For this model, we highly suggest adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. Choose Deploy to deploy the model.<br>
<br>The deployment process can take numerous minutes to complete.<br>
<br>When release is complete, your endpoint status will alter to InService. At this point, the model is all set to accept inference demands through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the [deployment](https://gitea.lolumi.com) is complete, you can invoke the model utilizing 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 permissions and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for [wakewiki.de](https://www.wakewiki.de/index.php?title=Benutzer:JudsonBorrego44) reasoning 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 extra requests against the predictor:<br>
<br>Implement guardrails and run [inference](https://igit.heysq.com) 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 produce a guardrail utilizing the Amazon Bedrock console or the API, and execute it as revealed in the following code:<br>
<br>Clean up<br>
<br>To avoid unwanted charges, finish the steps in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed 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, select Marketplace implementations.
2. In the Managed deployments section, find the [endpoint](http://www.stes.tyc.edu.tw) you wish 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 right release: 1. [Endpoint](https://cdltruckdrivingcareers.com) name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you deployed 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](https://3srecruitment.com.au) how you can access and release the DeepSeek-R1 model utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:ErnaMetzler) Amazon Bedrock Marketplace now to get started. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart Foundation 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 assists emerging generative [AI](http://chotaikhoan.me) business build ingenious solutions utilizing [AWS services](http://www.kotlinx.com3000) and sped up compute. Currently, he is focused on establishing strategies for fine-tuning and enhancing the inference performance of large language models. In his leisure time, [Vivek enjoys](http://git.nationrel.cn3000) treking, [wiki.myamens.com](http://wiki.myamens.com/index.php/User:ElisabethLlanas) seeing motion pictures, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://filmmaniac.ru) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://git.dsvision.net) 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://weworkworldwide.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://git.intelgice.com) center. She is passionate about constructing services that help customers accelerate their [AI](https://git.arcbjorn.com) journey and unlock business worth.<br>