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

master
Maricela Tallent 2025-02-15 18:06:37 +00:00
commit 6ec82c870e
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled to announce 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](http://47.100.72.85:3000)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled versions ranging from 1.5 to 70 billion parameters to develop, experiment, and properly scale your generative [AI](https://horizonsmaroc.com) concepts on AWS.<br>
<br>In this post, we show how to get begun with DeepSeek-R1 on Amazon Bedrock 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](https://sea-crew.ru) (LLM) developed by DeepSeek [AI](http://www.mitt-slide.com) that utilizes support discovering to improve reasoning capabilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A key differentiating feature is its reinforcement knowing (RL) step, which was utilized to improve the design's reactions beyond the basic pre-training and fine-tuning process. By incorporating RL, DeepSeek-R1 can adapt better to user feedback and objectives, ultimately improving both importance and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) approach, meaning it's geared up to break down complex questions and reason through them in a detailed way. This guided reasoning process enables the design to produce more accurate, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT abilities, aiming to generate structured actions while focusing on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has recorded the industry's attention as a versatile text-generation model that can be incorporated into different workflows such as representatives, sensible thinking and information interpretation jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion parameters, [allowing effective](https://kaykarbar.com) inference by routing questions to the most appropriate professional "clusters." This method permits the design to focus on different problem domains while maintaining total effectiveness. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for [reasoning](https://git.alenygam.com). In this post, we will use an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model to more effective architectures based on popular open [designs](https://massivemiracle.com) like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller sized, more effective models to mimic the behavior and thinking patterns of the bigger DeepSeek-R1 design, using it as an instructor design.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise deploying this model with guardrails in place. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid hazardous material, and assess models against essential security requirements. At the time of composing this blog, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop multiple guardrails tailored to various usage cases and apply them to the DeepSeek-R1 design, improving user experiences and standardizing safety controls across your generative [AI](https://southwestjobs.so) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To examine if you have quotas for P5e, open the Service Quotas [console](https://elitevacancies.co.za) and under AWS Services, select Amazon SageMaker, and validate 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, produce a limitation increase demand and connect to your account team.<br>
<br>Because you will be releasing 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 guidelines, see Establish consents to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, prevent damaging content, and examine models against essential [safety requirements](https://careers.midware.in). You can [execute precaution](http://idesys.co.kr) for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to examine user inputs and model actions 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, see the GitHub repo.<br>
<br>The basic flow involves 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](https://gitea.chenbingyuan.com) check, it's sent to the design for inference. 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 intervened by the guardrail, a [message](http://hammer.x0.to) is returned showing the nature of the [intervention](https://gitlab.internetguru.io) and [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:SalTreadwell) whether it happened at the input or output stage. The examples showcased in the following sections demonstrate inference using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace provides you access to over 100 popular, emerging, and specialized foundation [designs](https://gitea.itskp-odense.dk) (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, choose 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 company and select the DeepSeek-R1 model.<br>
<br>The model detail page offers essential details about the design's abilities, rates structure, and execution guidelines. You can discover detailed use instructions, including sample API calls and code bits for combination. The design supports numerous text generation tasks, including content production, code generation, and concern answering, utilizing its reinforcement learning optimization and CoT reasoning capabilities.
The page also includes deployment alternatives and [licensing details](http://gogs.gzzzyd.com) to help you begin with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, pick Deploy.<br>
<br>You will be prompted to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of circumstances, go into a variety of instances (in between 1-100).
6. For Instance type, pick your [instance type](https://xinh.pro.vn). For optimum performance with DeepSeek-R1, a GPU-based [instance type](https://beta.hoofpick.tv) like ml.p5e.48 xlarge is advised.
Optionally, you can configure sophisticated security and facilities settings, consisting of virtual personal cloud (VPC) networking, [service function](https://retailjobacademy.com) approvals, and file [encryption settings](http://www.mizmiz.de). For the majority of use cases, the default settings will work well. However, for production implementations, you may want to evaluate these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start utilizing the design.<br>
<br>When the release is complete, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive user interface where you can try out various prompts and adjust model parameters like temperature level 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 exceptional method to [explore](https://git.aiadmin.cc) the design's reasoning and text generation abilities before integrating it into your applications. The playground supplies instant feedback, helping you comprehend how the design reacts to numerous inputs and letting you tweak your prompts for [optimum](http://wiki.myamens.com) results.<br>
<br>You can rapidly check the model in the playground 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 using 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 develop the guardrail, see the GitHub repo. After you have created the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_runtime client, sets up inference specifications, and sends a demand 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) center with FMs, integrated algorithms, and prebuilt ML [solutions](https://www.sintramovextrema.com.br) that you can deploy with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and release them into [production utilizing](http://kousokuwiki.org) either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides two practical methods: utilizing the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's explore both methods to help you choose the technique that finest fits your requirements.<br>
<br>Deploy DeepSeek-R1 through [SageMaker JumpStart](http://aat.or.tz) UI<br>
<br>Complete the following steps to deploy DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, choose Studio in the [navigation](https://test1.tlogsir.com) pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The model web browser displays available designs, with details like the supplier name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card shows essential details, including:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if appropriate), showing that this design can be registered with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The model details page includes the following details:<br>
<br>- The design name and service provider details.
[Deploy button](https://youtoosocialnetwork.com) to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes crucial 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 design details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with deployment.<br>
<br>7. For Endpoint name, use the immediately generated name or develop a custom-made one.
8. For Instance type ¸ select an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of circumstances (default: 1).
Selecting suitable circumstances types and counts is essential for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, [Real-time inference](https://alllifesciences.com) is picked by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for accuracy. For this model, we highly recommend adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in [location](https://moztube.com).
11. Choose Deploy to release the model.<br>
<br>The release procedure can take numerous minutes to complete.<br>
<br>When deployment is total, your endpoint status will change to InService. At this point, the model is prepared to [accept inference](https://complete-jobs.co.uk) requests through the endpoint. You can keep track of the deployment development on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the [implementation](https://tempjobsindia.in) is complete, you can conjure up the design utilizing a [SageMaker](http://8.142.152.1374000) runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 using the SageMaker Python SDK, you will require to install the SageMaker Python SDK and make certain you have the needed AWS consents and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for reasoning programmatically. The code for releasing the model is offered in the Github here. You can clone the notebook and range from SageMaker Studio.<br>
<br>You can run additional requests against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can likewise use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail utilizing the Amazon Bedrock console or the API, and execute it as shown in the following code:<br>
<br>Clean up<br>
<br>To avoid unwanted charges, finish the steps in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed the model utilizing Amazon Bedrock Marketplace, complete 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 section, find the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're deleting the appropriate implementation: 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 if you leave it running. Use the following code to delete the endpoint if you desire to stop [sustaining charges](https://www.viewtubs.com). For more details, see Delete Endpoints and Resources.<br>
<br>Conclusion<br>
<br>In this post, we checked out how you can access and deploy the DeepSeek-R1 model utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to start. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, 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 assists emerging generative [AI](https://melanatedpeople.net) business develop ingenious solutions utilizing AWS services and sped up calculate. Currently, he is concentrated on developing methods for fine-tuning and optimizing the inference efficiency of big language designs. In his downtime, Vivek takes pleasure in hiking, enjoying motion pictures, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://gochacho.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://siman.co.il) accelerators (AWS Neuron). He holds a [Bachelor's degree](https://apk.tw) in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect dealing with generative [AI](http://www.chinajobbox.com) with the Third-Party Model group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://vloglover.com) hub. She is enthusiastic about constructing options that help clients accelerate their [AI](http://101.132.100.8) journey and unlock business value.<br>