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

Kandy Garrison 2025-04-03 17:08:42 +08:00
commit a9d79f0fd0

@ -0,0 +1,93 @@
<br>Today, we are 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://git.daviddgtnt.xyz)'s first-generation frontier model, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion criteria to build, experiment, and properly scale your generative [AI](https://aladin.tube) concepts on AWS.<br>
<br>In this post, we demonstrate how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to deploy the distilled variations of the models as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](https://zenithgrs.com) that uses support finding out to improve reasoning capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. An [essential](https://zurimeet.com) differentiating feature is its reinforcement learning (RL) step, which was utilized to fine-tune the model's reactions beyond the standard pre-training and fine-tuning process. By integrating RL, DeepSeek-R1 can adjust more effectively to user feedback and objectives, [eventually enhancing](https://git.brainycompanion.com) both [significance](https://cielexpertise.ma) and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) method, meaning it's equipped to break down complicated questions and factor through them in a detailed way. This directed reasoning procedure enables the design to produce more accurate, transparent, and detailed responses. This design combines RL-based fine-tuning with CoT abilities, aiming to generate structured responses while concentrating on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has actually captured the market's attention as a flexible text-generation model that can be incorporated into [numerous workflows](https://theglobalservices.in) such as agents, sensible thinking and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture allows activation of 37 billion specifications, making it possible for efficient inference by routing inquiries to the most appropriate specialist "clusters." This [method enables](http://turtle.pics) the model to focus on various problem domains while maintaining total efficiency. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will use an ml.p5e.48 xlarge instance to [release](https://filuv.bnkode.com) the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the reasoning capabilities of the main R1 model to more [effective architectures](http://lty.co.kr) 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 sized, more effective designs to imitate the behavior and thinking patterns of the larger DeepSeek-R1 model, using it as an instructor model.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise releasing this design with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent damaging material, and examine designs against key security requirements. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop multiple guardrails tailored to various use cases and use them to the DeepSeek-R1 model, improving user experiences and standardizing security controls throughout your generative [AI](http://180.76.133.253:16300) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and confirm you're utilizing ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge instance in the AWS Region you are deploying. To ask for a limit boost, [produce](http://xn--vk1b975azoatf94e.com) a limitation increase demand and reach out to your account group.<br>
<br>Because you will be [releasing](https://www.tippy-t.com) this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) consents to use Amazon Bedrock [Guardrails](http://fggn.kr). For directions, see Establish permissions to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to introduce safeguards, avoid harmful content, and [examine models](https://gratisafhalen.be) against crucial safety requirements. You can implement security steps for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to evaluate user inputs and model reactions [deployed](https://losangelesgalaxyfansclub.com) on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail utilizing the Amazon Bedrock console or the API. For the example code to create 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](https://goalsshow.com). If the input passes the guardrail check, it's sent out to the design for reasoning. After getting the model's output, another guardrail check is used. If the output passes this last check, it's returned as the outcome. However, if either the input or output is stepped in by the guardrail, a message is returned suggesting the nature of the [intervention](http://8.137.54.2139000) and whether it happened at the input or output stage. The examples showcased in the following areas show reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in [Amazon Bedrock](https://letustalk.co.in) Marketplace<br>
<br>Amazon Bedrock Marketplace offers you access to over 100 popular, emerging, and specialized foundation 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](https://tjoobloom.com) under Foundation designs in the navigation pane.
At the time of composing 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 model's abilities, prices structure, and implementation guidelines. You can find detailed use instructions, including sample API calls and code snippets for combination. The model supports numerous text generation tasks, including content creation, code generation, and concern answering, utilizing its [reinforcement finding](https://tjoobloom.com) out optimization and CoT thinking [abilities](https://www.ataristan.com).
The page also consists of implementation choices and licensing details to help you get going with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to set up the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, go into a number of circumstances (between 1-100).
6. For example type, choose your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure innovative security and facilities settings, consisting of virtual private cloud (VPC) networking, service function consents, and file encryption settings. For the [majority](https://loveyou.az) of utilize cases, the default settings will work well. However, for production deployments, you might wish to examine these settings to align 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 test DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in playground to access an interactive interface where you can try out various prompts and adjust model criteria like temperature level and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for optimal outcomes. For instance, content for inference.<br>
<br>This is an outstanding way to check out the design's thinking and text generation capabilities before incorporating it into your applications. The play ground provides instant feedback, assisting you comprehend how the model responds to different inputs and letting you fine-tune your prompts for ideal outcomes.<br>
<br>You can rapidly test the model in the [play ground](http://archmageriseswiki.com) through the UI. However, to invoke the [deployed model](https://cphallconstlts.com) programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning utilizing guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform inference utilizing a [released](https://cielexpertise.ma) DeepSeek-R1 design through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. 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. After you have actually created the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference criteria, and sends a request to generate text based on 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 algorithms, and prebuilt ML options that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your data, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart offers two hassle-free techniques: using the instinctive SageMaker JumpStart UI or carrying out programmatically through the [SageMaker Python](http://47.122.26.543000) SDK. Let's explore both techniques to help you pick the method that best fits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart 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 pane.
2. First-time users will be prompted to produce a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The model web browser displays available designs, with details like the provider name and design abilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each [model card](https://git.alien.pm) shows essential details, including:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if relevant), showing that this model can be registered with Amazon Bedrock, enabling 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 model details page includes the following details:<br>
<br>- The design name and [supplier details](https://dubairesumes.com).
Deploy button to deploy the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you release the model, it's advised to [examine](http://47.106.205.1408089) the model details and license terms to [confirm compatibility](http://120.77.240.2159701) with your use case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the automatically generated name or produce a customized one.
8. For example type ¸ select an [instance type](https://lifestagescs.com) (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of circumstances (default: 1).
Selecting proper instance types and counts is important for expense and performance optimization. Monitor your deployment to adjust these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is enhanced for sustained traffic and low [latency](http://www.iilii.co.kr).
10. Review all configurations for precision. For this model, we strongly 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 finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this moment, the design is [prepared](https://xtragist.com) to accept reasoning requests through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will show pertinent metrics and status details. When the deployment is total, you can conjure up the design utilizing a SageMaker runtime client 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 needed AWS permissions and environment setup. The following is a detailed code example that shows how to release and [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:SidneyBelanger9) utilize DeepSeek-R1 for reasoning programmatically. The code for releasing the model is provided in the Github here. You can clone the notebook and run 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](https://jobs.ethio-academy.com) with your SageMaker JumpStart predictor. You can produce 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 undesirable charges, complete the steps in this area to clean up your [resources](http://ufidahz.com.cn9015).<br>
<br>Delete the Amazon Bedrock Marketplace deployment<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](http://cgi3.bekkoame.ne.jp) pane, pick Marketplace releases.
2. In the Managed releases section, find the endpoint 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 deleting 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 released will sustain costs if you leave it running. Use the following code to erase the endpoint if you wish to stop sustaining charges. 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 begin. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Starting 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://jobz1.live) companies develop innovative solutions using AWS services and accelerated [compute](https://git.yinas.cn). Currently, he is focused on establishing techniques for fine-tuning and optimizing the reasoning efficiency of big language designs. In his complimentary time, Vivek takes pleasure in hiking, viewing movies, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a [Generative](https://blazblue.wiki) [AI](https://www.com.listatto.ca) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](http://git.mutouyun.com:3005) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](https://forum.alwehdaclub.sa) with the Third-Party Model Science team at AWS.<br>
<br>[Banu Nagasundaram](https://remoterecruit.com.au) leads item, engineering, and tactical collaborations for Amazon SageMaker JumpStart, [SageMaker's](https://jobsdirect.lk) artificial intelligence and generative [AI](http://westec-immo.com) center. She is enthusiastic about constructing options that assist customers accelerate their [AI](https://gitlab.bzzndata.cn) journey and unlock company value.<br>