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

Isobel Tilley 2025-05-28 17:39:44 +08:00
commit c364468566

@ -0,0 +1,93 @@
<br>Today, we are delighted to reveal 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://www.trueposter.com)'s first-generation frontier model, DeepSeek-R1, together with the distilled variations varying from 1.5 to 70 billion specifications to construct, experiment, and properly scale your [generative](http://vimalakirti.com) [AI](https://git.agri-sys.com) ideas 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 similar actions to deploy the distilled versions of the models too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) developed by DeepSeek [AI](https://demo.theme-sky.com) that utilizes support learning to improve thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial distinguishing feature is its [reinforcement learning](http://221.238.85.747000) (RL) action, which was utilized to improve the model's actions beyond the [standard pre-training](https://kaymack.careers) and fine-tuning process. By including RL, DeepSeek-R1 can adjust more efficiently to user feedback and goals, eventually improving both importance and clarity. In addition, DeepSeek-R1 [utilizes](https://bdenc.com) a chain-of-thought (CoT) technique, suggesting it's equipped to break down complicated questions and factor [89u89.com](https://www.89u89.com/author/xaviergillo/) through them in a detailed manner. This [assisted](https://followmylive.com) reasoning process permits the design to produce more accurate, transparent, and detailed answers. This model combines RL-based fine-tuning with CoT capabilities, aiming to create structured reactions while concentrating on interpretability and user interaction. With its comprehensive capabilities DeepSeek-R1 has actually recorded the [industry's attention](https://git.andy.lgbt) as a flexible text-generation design that can be incorporated into different workflows such as agents, rational thinking and data interpretation tasks.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) [architecture](http://hybrid-forum.ru) and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion parameters, making it possible for efficient reasoning by routing inquiries to the most pertinent specialist "clusters." This technique allows the model to concentrate on various problem domains while maintaining overall efficiency. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for [reasoning](http://gitlab.pakgon.com). In this post, we will utilize an ml.p5e.48 xlarge circumstances to [release](https://gogs.les-refugies.fr) the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the [thinking abilities](http://parasite.kicks-ass.org3000) of the main R1 design to more efficient architectures based upon [popular](http://otyjob.com) open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of training smaller, more efficient designs to imitate the habits and [thinking patterns](http://a21347410b.iask.in8500) of the larger DeepSeek-R1 design, utilizing it as a [teacher model](http://42.192.80.21).<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we suggest deploying this design with guardrails in place. In this blog, we will use Amazon Bedrock Guardrails to present safeguards, prevent hazardous material, and examine designs against essential security criteria. At the time of writing this blog, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can produce multiple guardrails tailored to various use cases and use them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls throughout your generative [AI](https://vitricongty.com) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, 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, choose Amazon SageMaker, and confirm you're using ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are deploying. To request a limit increase, develop a limit increase request and reach out to your account team.<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) approvals to use Amazon Bedrock Guardrails. For instructions, see Set up permissions to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, avoid hazardous material, and evaluate designs against crucial security requirements. You can carry out safety steps for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and design reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create a guardrail utilizing the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo.<br>
<br>The general flow includes the following actions: First, the system receives an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the [guardrail](http://www.pygrower.cn58081) check, it's sent to the design for inference. After getting the design'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 and whether it occurred at the input or output stage. The examples showcased in the following areas demonstrate reasoning utilizing this API.<br>
<br>Deploy DeepSeek-R1 in [Amazon Bedrock](http://www.lebelleclinic.com) Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, emerging, and [specialized foundation](http://119.23.72.7) 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 designs in the navigation pane.
At the time of writing this post, you can [utilize](https://forum.batman.gainedge.org) the InvokeModel API to invoke the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a service provider and select the DeepSeek-R1 model.<br>
<br>The model detail page offers necessary [details](https://yourmoove.in) about the model's abilities, rates structure, and execution standards. You can discover detailed use instructions, [consisting](http://63.141.251.154) of sample API calls and code bits for combination. The design supports various text generation tasks, consisting of material development, code generation, and concern answering, utilizing its reinforcement discovering optimization and CoT reasoning capabilities.
The page also consists of release choices and licensing [details](http://120.46.139.31) to help you start with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be prompted to configure the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, go into a variety of instances (between 1-100).
6. For example type, pick your circumstances type. For ideal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested.
Optionally, you can set up [innovative security](http://140.125.21.658418) and facilities settings, consisting of virtual private cloud (VPC) networking, service function authorizations, and encryption settings. For most use cases, the default settings will work well. However, for production implementations, you might wish to examine these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin utilizing the design.<br>
<br>When the implementation is total, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive user interface where you can try out various triggers and adjust model specifications like temperature and maximum 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 way to check out the design's thinking and text generation abilities before incorporating it into your applications. The play ground supplies instant feedback, helping you understand how the design reacts to numerous inputs and letting you fine-tune your prompts for optimal results.<br>
<br>You can quickly test the model in the playground through the UI. However, to invoke the released design programmatically with any Amazon Bedrock APIs, you need to get the [endpoint](https://www.apkjobs.site) ARN.<br>
<br>Run reasoning utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning utilizing a deployed DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can produce a guardrail using the Amazon Bedrock [console](https://www.trueposter.com) or the API. For the example code to create the guardrail, see the GitHub repo. After you have developed the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference parameters, and sends a demand to [generate text](https://aiviu.app) based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, built-in algorithms, and prebuilt ML services 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 deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 hassle-free approaches: utilizing the instinctive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both techniques to help you pick the method that finest fits your [requirements](http://apps.iwmbd.com).<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to deploy DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, choose Studio in the navigation pane.
2. First-time users will be triggered to develop a domain.
3. On the SageMaker Studio console, select JumpStart in the [navigation pane](http://124.222.48.2033000).<br>
<br>The design web browser shows available models, with details like the service provider name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each model card shows crucial details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if suitable), indicating that this model can be registered with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the model card to view the design details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The model 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 recommended to examine the model details and license terms to [verify compatibility](https://code.balsoft.ru) with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, utilize the instantly created name or produce a custom one.
8. For Instance type ¸ select an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the variety of circumstances (default: 1).
Selecting appropriate instance types and counts is important for cost and efficiency optimization. Monitor your [implementation](http://plus-tube.ru) to adjust these settings as needed.Under Inference type, Real-time inference is chosen by default. This is [optimized](http://114.55.54.523000) for sustained traffic and low latency.
10. Review all setups for precision. For this model, we strongly suggest sticking to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the design.<br>
<br>The implementation process can take numerous minutes to complete.<br>
<br>When release is complete, your endpoint status will change to InService. At this moment, the model is prepared to accept inference requests through the endpoint. You can keep an eye on the deployment progress on the SageMaker console Endpoints page, which will display appropriate metrics and status details. When the deployment is complete, you can invoke the design utilizing a SageMaker runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get begun with DeepSeek-R1 utilizing the SageMaker Python SDK, you will [require](http://140.125.21.658418) to install the SageMaker Python SDK and make certain you have the needed AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to release and utilize DeepSeek-R1 for [reasoning programmatically](https://gold8899.online). The code for releasing the model is offered in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run extra requests against the predictor:<br>
<br>Implement guardrails and run inference with your [SageMaker JumpStart](http://162.19.95.943000) predictor<br>
<br>Similar to Amazon Bedrock, you can also utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can produce a guardrail utilizing the Amazon Bedrock console or the API, and implement it as revealed in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, finish the actions in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, choose Marketplace implementations.
2. In the Managed implementations section, find the [endpoint](https://www.behavioralhealthjobs.com) you wish to delete.
3. Select the endpoint, and on the [Actions](https://followmypic.com) menu, [wiki.whenparked.com](https://wiki.whenparked.com/User:LashawnLutwyche) pick Delete.
4. Verify the endpoint details to make certain you're erasing 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 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 explored 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](https://gitlab.henrik.ninja) now to get going. For more details, refer to 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](http://www.pelletkorea.net) companies build ingenious services utilizing AWS services and sped up calculate. Currently, he is focused on establishing strategies for fine-tuning and optimizing the inference performance of big language designs. In his downtime, Vivek delights in hiking, seeing films, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://yourmoove.in) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](https://pl.velo.wiki) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>[Jonathan Evans](https://www.xtrareal.tv) is a Professional Solutions Architect working on generative [AI](https://gl.vlabs.knu.ua) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://dev.zenith.sh.cn) hub. She is about constructing options that help clients accelerate their [AI](http://www.xn--v42bq2sqta01ewty.com) journey and [unlock business](https://gitlab.steamos.cloud) worth.<br>