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

Millie Mauer 2025-02-08 22:31:03 +08:00
commit 23d9b0182d
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](https://git.cno.org.co) and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](https://matchmaderight.com)'s first-generation frontier model, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion specifications to build, experiment, and properly scale your generative [AI](https://ces-emprego.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to get going with DeepSeek-R1 on [Amazon Bedrock](http://120.77.240.2159701) Marketplace and SageMaker JumpStart. You can follow similar actions 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](http://194.67.86.160:3100) that uses support learning to boost thinking [abilities](https://textasian.com) through a [multi-stage](https://git.jackbondpreston.me) training process from a DeepSeek-V3-Base foundation. A key distinguishing feature is its support learning (RL) step, which was used to improve the model's reactions beyond the basic pre-training and tweak procedure. By incorporating RL, DeepSeek-R1 can adapt more effectively to user feedback and goals, eventually enhancing both importance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, suggesting it's equipped to break down complicated queries and [wiki.dulovic.tech](https://wiki.dulovic.tech/index.php/User:FidelBatt531106) reason through them in a detailed way. This assisted reasoning procedure permits the design to produce more accurate, transparent, and detailed answers. This model combines RL-based fine-tuning with CoT capabilities, aiming to generate structured reactions while concentrating on interpretability and user interaction. With its comprehensive capabilities DeepSeek-R1 has actually caught the market's attention as a flexible text-generation model that can be incorporated into numerous workflows such as agents, [logical](https://gitea.winet.space) reasoning and [data interpretation](https://nuswar.com) jobs.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture permits activation of 37 billion parameters, enabling efficient inference by routing questions to the most appropriate professional "clusters." This technique allows the design to specialize in different issue domains while maintaining general performance. DeepSeek-R1 requires a minimum of 800 GB of [HBM memory](http://energonspeeches.com) in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge instance to release the model. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the reasoning abilities of the main R1 design to more effective architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of training smaller, more effective models to simulate the behavior and thinking patterns of the bigger DeepSeek-R1 design, utilizing 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](http://sites-git.zx-tech.net) in location. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid damaging content, and evaluate designs against crucial safety requirements. 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 multiple guardrails tailored to different use cases and use them to the DeepSeek-R1 design, improving user experiences and standardizing safety controls throughout your generative [AI](https://niaskywalk.com) 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, select Amazon SageMaker, and validate you're utilizing 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 deploying. To ask for a limit increase, develop a limitation boost request and reach out to your account group.<br>
<br>Because you will be releasing this model with [Amazon Bedrock](http://ep210.co.kr) Guardrails, make certain you have the correct AWS Identity and Gain Access To Management (IAM) [permissions](http://christiancampnic.com) to use Amazon Bedrock Guardrails. For instructions, 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 introduce safeguards, prevent harmful content, and assess designs against crucial security requirements. You can carry out precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and model responses released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create a guardrail using the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo.<br>
<br>The basic flow includes the following actions: First, the system gets an input for the model. This input is then processed through the [ApplyGuardrail API](http://119.29.169.1578081). 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 final check, it's returned as the last . However, if either the input or output is stepped in by the guardrail, a message is returned suggesting the nature of the intervention and whether it happened at the input or output stage. The examples showcased in the following areas show 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 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, pick Model catalog under Foundation designs 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](https://energypowerworld.co.uk) APIs and other Amazon Bedrock tooling.
2. Filter for [DeepSeek](https://accc.rcec.sinica.edu.tw) as a supplier and pick the DeepSeek-R1 design.<br>
<br>The design detail page provides vital details about the design's capabilities, pricing structure, and application standards. You can find detailed use directions, consisting of sample API calls and code bits for combination. The model supports various text generation jobs, including material production, code generation, and question answering, using its [support finding](https://www.muslimtube.com) out optimization and CoT thinking capabilities.
The page likewise consists of deployment options and licensing details to help you start with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to configure the deployment details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 [alphanumeric](http://60.23.29.2133060) characters).
5. For Number of circumstances, enter a variety of circumstances (in between 1-100).
6. For Instance type, select your instance type. For optimal performance with DeepSeek-R1, a [GPU-based instance](https://wiki.rrtn.org) type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up advanced security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, service role authorizations, and file encryption settings. For many utilize cases, the default settings will work well. However, for production deployments, you may desire to review these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the deployment is total, 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 explore different triggers and change design specifications like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimal outcomes. For instance, content for reasoning.<br>
<br>This is an [exceptional](http://www.grainfather.de) way to explore the [model's reasoning](http://8.137.8.813000) and text generation abilities before incorporating it into your applications. The play ground supplies immediate feedback, assisting you understand how the model responds to different inputs and letting you fine-tune your prompts for optimum results.<br>
<br>You can quickly check the model in the play ground through the UI. However, to conjure up the deployed design programmatically with any [Amazon Bedrock](http://git.meloinfo.com) 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 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 create the guardrail, see the GitHub repo. After you have actually developed the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference criteria, and sends out a demand to generate text based upon a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, [built-in](https://yooobu.com) algorithms, and prebuilt ML services that you can [release](https://git.gday.express) with simply 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 using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart offers 2 convenient techniques: using the intuitive SageMaker JumpStart UI or [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:DaleneCollins99) implementing programmatically through the SageMaker Python SDK. Let's explore both approaches to assist you select the approach that finest suits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to deploy DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, pick Studio in the [navigation](https://www.valenzuelatrabaho.gov.ph) pane.
2. First-time users will be prompted to produce a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The model browser shows available designs, with details like the supplier name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card shows crucial details, consisting of:<br>
<br>[- Model](http://forum.kirmizigulyazilim.com) name
- Provider name
- Task [category](https://janhelp.co.in) (for instance, Text Generation).
[Bedrock Ready](http://139.224.213.43000) badge (if suitable), showing that this model can be signed up with Amazon Bedrock, enabling you to use Amazon Bedrock APIs to conjure up the model<br>
<br>5. Choose the design card to view the design details page.<br>
<br>The model details page includes the following details:<br>
<br>- The design name and provider details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes essential details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you release the design, it's suggested to examine the model details and license terms to validate compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with release.<br>
<br>7. For Endpoint name, use the automatically generated name or produce a [custom-made](http://1024kt.com3000) one.
8. For example type ¸ choose a circumstances type (default: ml.p5e.48 xlarge).
9. For [Initial instance](http://39.99.158.11410080) count, enter the variety of circumstances (default: 1).
Selecting proper instance types and counts is essential for cost and [efficiency optimization](https://jamesrodriguezclub.com). Monitor your deployment 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 precision. For this design, we strongly suggest adhering to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to release the model.<br>
<br>The release process can take several minutes to complete.<br>
<br>When release is complete, your [endpoint status](http://www.mouneyrac.com) will alter to InService. At this moment, the model is prepared to accept inference demands through the endpoint. You can monitor the implementation progress on the SageMaker console Endpoints page, which will [display relevant](https://love63.ru) [metrics](https://git.molokoin.ru) and status details. When the release is total, you can conjure 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 get going with DeepSeek-R1 using the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the essential AWS consents and environment setup. The following is a detailed code example that demonstrates how to deploy and use DeepSeek-R1 for reasoning programmatically. The code for deploying the design is [supplied](https://recrutevite.com) in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>Implement guardrails and run reasoning 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 using the Amazon Bedrock console or the API, and execute it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, finish the actions in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, [kousokuwiki.org](http://kousokuwiki.org/wiki/%E5%88%A9%E7%94%A8%E8%80%85:AnkeStarnes867) complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the [navigation](https://code.3err0.ru) pane, select Marketplace deployments.
2. In the Managed implementations section, find the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're deleting 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 expenses if you leave it running. Use the following code to delete the endpoint if you desire to stop sustaining charges. For more details, see [Delete Endpoints](https://forum.tinycircuits.com) and Resources.<br>
<br>Conclusion<br>
<br>In this post, we checked out how you can access and release the DeepSeek-R1 model 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 models, [it-viking.ch](http://it-viking.ch/index.php/User:DorethaQmb) 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://git.yqfqzmy.monster) companies develop ingenious services using AWS services and accelerated calculate. Currently, he is focused on establishing techniques for fine-tuning and enhancing the reasoning performance of large language models. In his spare time, Vivek takes pleasure in treking, watching motion pictures, and attempting different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://convia.gt) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His location of focus is AWS [AI](https://git.kansk-tc.ru) accelerators (AWS Neuron). He holds a [Bachelor's degree](http://168.100.224.793000) in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert [Solutions Architect](https://braindex.sportivoo.co.uk) working on generative [AI](https://letustalk.co.in) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://www.jobzalerts.com) hub. She is passionate about developing solutions that assist [clients accelerate](https://gitea.offends.cn) their [AI](http://ncdsource.kanghehealth.com) journey and unlock service worth.<br>