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

Winfred Rickard 2025-03-01 13:32:10 +08:00
commit cc68812235

@ -0,0 +1,93 @@
<br>Today, we are thrilled 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 deploy DeepSeek [AI](https://www.klartraum-wiki.de)'s first-generation frontier model, DeepSeek-R1, together with the distilled versions ranging from 1.5 to 70 billion specifications to develop, experiment, and properly scale your generative [AI](https://git.lewd.wtf) ideas on AWS.<br>
<br>In this post, we show how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar steps to deploy the distilled variations of the designs also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) established by DeepSeek [AI](https://www.wikiwrimo.org) that uses reinforcement learning to boost reasoning abilities through a multi-stage training process from a DeepSeek-V3-Base structure. A key differentiating function is its support learning (RL) step, which was utilized to fine-tune the design's reactions beyond the standard pre-training and tweak process. By including RL, DeepSeek-R1 can adjust more successfully to user feedback and goals, eventually enhancing both [relevance](https://video.igor-kostelac.com) and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) technique, suggesting it's equipped to break down complicated questions and reason through them in a detailed manner. This directed reasoning process permits the design to produce more accurate, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT capabilities, aiming to create structured reactions while focusing on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has actually caught the industry's attention as a flexible text-generation model that can be integrated into numerous workflows such as representatives, sensible thinking and information analysis tasks.<br>
<br>DeepSeek-R1 uses a Mixture of [Experts](https://www.worlddiary.co) (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion specifications, allowing efficient reasoning by [routing questions](https://intermilanfansclub.com) to the most pertinent expert "clusters." This technique enables the design to focus on various problem domains while maintaining total effectiveness. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 design to more efficient architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of [training](http://60.205.210.36) smaller, more effective designs to simulate the behavior and thinking patterns of the larger DeepSeek-R1 design, utilizing it as an instructor design.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend deploying this model with guardrails in place. In this blog, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid harmful material, and evaluate designs against crucial safety requirements. At the time of writing this blog site, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create several guardrails tailored to various use cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls across your generative [AI](http://78.108.145.23:3000) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you require access to an ml.p5e instance. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and validate you're utilizing 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 releasing. To request a limitation boost, produce a limitation increase demand and reach out to your account team.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) authorizations to utilize Amazon Bedrock Guardrails. For directions, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:JeanetteGgb) see Establish consents to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, prevent harmful material, and examine designs against crucial safety requirements. You can execute safety procedures for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and model actions released on [Amazon Bedrock](https://gitea.alexandermohan.com) Marketplace and SageMaker JumpStart. 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.<br>
<br>The basic flow [involves](http://107.172.157.443000) the following actions: First, the system gets an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the design for reasoning. After receiving the design's output, another guardrail check is used. If the output passes this final check, it's returned as the result. However, if either the input or output is stepped in by the guardrail, a message is returned showing the nature of the [intervention](http://31.184.254.1768078) and whether it happened at the input or output phase. 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 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](https://www.applynewjobz.com) console, [choose Model](https://bewerbermaschine.de) brochure under Foundation models in the navigation pane.
At the time of [writing](http://clinicanevrozov.ru) this post, you can use the InvokeModel API to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and pick the DeepSeek-R1 design.<br>
<br>The model detail page offers essential details about the design's capabilities, pricing structure, and execution standards. You can find detailed use instructions, consisting of sample API calls and code bits for integration. The model supports different text generation tasks, consisting of material creation, code generation, and question answering, utilizing its support discovering optimization and CoT reasoning abilities.
The page also includes deployment options and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, select 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 (in between 1-50 alphanumeric characters).
5. For Number of instances, enter a number of instances (between 1-100).
6. For example type, pick your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure sophisticated [security](http://candidacy.com.ng) and facilities settings, including virtual private cloud (VPC) networking, service function permissions, and file encryption settings. For many use cases, the default settings will work well. However, for production implementations, you may want to examine these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the design.<br>
<br>When the deployment is total, you can test DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive user interface where you can explore various prompts and change model criteria like temperature and optimum 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 exceptional method to explore the design's thinking and text generation abilities before incorporating it into your applications. The playground offers instant feedback, assisting you comprehend how the model reacts to numerous inputs and letting you fine-tune your prompts for optimal results.<br>
<br>You can rapidly check the model in the playground through the UI. However, to conjure up the deployed design 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](https://www.graysontalent.com) using a released 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 develop the guardrail, see the GitHub repo. After you have actually developed the guardrail, utilize the following code to implement guardrails. The script initializes the bedrock_runtime client, sets up inference specifications, and sends a demand to create text 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, integrated algorithms, and prebuilt ML [solutions](http://freeflashgamesnow.com) that you can release with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your use case, with your information, and deploy them into [production](https://play.uchur.ru) using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart offers two hassle-free approaches: utilizing the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both approaches to help you pick the technique that best fits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the navigation 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 models, with details like the supplier name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each model card shows essential details, consisting of:<br>
<br>- Model name
- Provider name
- Task [classification](https://hrvatskinogomet.com) (for instance, Text Generation).
Bedrock Ready badge (if suitable), showing that this model 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 [design details](http://120.55.59.896023) page includes the following details:<br>
<br>- The design name and company details.
Deploy button to deploy 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](https://netgork.com) specs.
- Usage guidelines<br>
<br>Before you release the model, it's advised to review the model details and license terms to [validate compatibility](https://career.agricodeexpo.org) with your use case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, utilize the instantly produced name or create a custom-made one.
8. For Instance type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the variety of instances (default: 1).
Selecting proper instance types and counts is vital for cost and performance optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time reasoning is selected by [default](https://gogs.koljastrohm-games.com). This is optimized for sustained traffic and low latency.
10. Review all configurations for accuracy. For this design, we [highly advise](https://magnusrecruitment.com.au) sticking to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to deploy the design.<br>
<br>The implementation process can take several minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this point, the model is prepared to accept reasoning demands through the endpoint. You can keep track of the deployment development on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the deployment is total, you can conjure up the model using a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To begin with DeepSeek-R1 [utilizing](http://bluemobile010.com) the SDK, you will require to set up the SageMaker Python SDK and make certain you have the required AWS approvals 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 deploying the model is offered in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run extra requests against the predictor:<br>
<br>[Implement](https://gogs.xinziying.com) guardrails and run inference with your [SageMaker JumpStart](https://www.dutchsportsagency.com) 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 displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted charges, finish the steps in this area to clean 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 [releases](https://agalliances.com).
2. In the Managed deployments area, locate the [endpoint](https://nexthub.live) you desire to delete.
3. Select the endpoint, and on the Actions menu, [pick Delete](http://8.140.229.2103000).
4. Verify the endpoint details to make certain you're deleting the correct release: 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 want 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 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, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting started with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for [Inference](https://allcallpro.com) at AWS. He [helps emerging](https://uedf.org) generative [AI](https://git.connectplus.jp) companies construct innovative options using AWS services and [wiki.lafabriquedelalogistique.fr](https://wiki.lafabriquedelalogistique.fr/Discussion_utilisateur:BuddyDeshotel23) accelerated compute. Currently, he is focused on developing techniques for fine-tuning and enhancing the inference efficiency of large language models. In his spare time, Vivek enjoys treking, seeing movies, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://philomati.com) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://gitea.neoaria.io) [accelerators](https://git.randomstar.io) (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](http://117.72.39.125:3000) 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://groupeudson.com) center. She is passionate about building options that assist customers accelerate their [AI](https://zapinacz.pl) journey and unlock business value.<br>