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

Anthony Arthur 2025-02-19 08:28:29 +08:00
parent 90a9ae44bc
commit 075427b22b
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](https://gitlab.dangwan.com) [AI](http://secretour.xyz)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled versions varying from 1.5 to 70 billion parameters to build, experiment, and responsibly scale your generative [AI](https://git.prayujt.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to release 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://gitea.alexandermohan.com) that uses support discovering to improve reasoning abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. An essential identifying feature is its reinforcement knowing (RL) step, which was utilized to improve the model's responses beyond the standard pre-training and fine-tuning procedure. By incorporating RL, DeepSeek-R1 can adjust more effectively to user feedback and goals, ultimately improving both significance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, [implying](https://parentingliteracy.com) it's equipped to break down intricate inquiries and factor through them in a detailed way. This directed thinking process enables the design to produce more precise, transparent, and detailed responses. This model integrates RL-based fine-tuning with CoT abilities, aiming to produce structured reactions while concentrating on interpretability and user interaction. With its [wide-ranging capabilities](http://47.97.161.14010080) DeepSeek-R1 has caught the industry's attention as a versatile text-generation design that can be incorporated into numerous workflows such as representatives, rational reasoning and data interpretation jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture permits activation of 37 billion parameters, allowing effective inference by routing inquiries to the most pertinent specialist "clusters." This method permits the model to focus on various problem domains while maintaining overall effectiveness. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for inference. In this post, we will use an ml.p5e.48 xlarge circumstances to deploy the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking of the main R1 design to more effective architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of [training](https://great-worker.com) smaller, more efficient designs to mimic the behavior and reasoning patterns of the larger DeepSeek-R1 design, using it as an instructor design.<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 model with guardrails in place. In this blog, we will utilize Amazon Bedrock Guardrails to introduce safeguards, prevent damaging content, and assess models against key safety criteria. At the time of [composing](https://navar.live) this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can produce numerous guardrails tailored to various use cases and apply them to the DeepSeek-R1 design, improving user experiences and [standardizing security](http://120.48.141.823000) controls across your generative [AI](http://47.109.30.194:8888) [applications](https://i10audio.com).<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you need access to an ml.p5e [instance](https://job4thai.com). To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, [choose Amazon](https://git.lotus-wallet.com) SageMaker, and validate 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 releasing. To request a limit increase, create a limit increase request and connect to your account team.<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the correct AWS Identity and Gain Access To Management (IAM) authorizations to use [Amazon Bedrock](https://maibuzz.com) Guardrails. For guidelines, see Establish authorizations to use guardrails for content filtering.<br>
<br>Implementing guardrails with the [ApplyGuardrail](https://cheapshared.com) API<br>
<br>Amazon Bedrock [Guardrails permits](https://git.xaviermaso.com) you to present safeguards, prevent hazardous material, and evaluate designs against essential security criteria. You can execute precaution for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to evaluate user inputs and model responses deployed on Amazon Bedrock [Marketplace](https://playtube.app) 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 basic circulation 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 check, it's sent out to the model for reasoning. After getting the design's output, another guardrail check is used. If the output passes this last check, it's [returned](https://esunsolar.in) as the outcome. However, if either the input or output is [stepped](https://moyatcareers.co.ke) in by the guardrail, a message is returned indicating the nature of the intervention and whether it happened at the input or output phase. The examples showcased in the following areas demonstrate reasoning utilizing 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](https://nepaxxtube.com). To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, select Model catalog under Foundation designs in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to conjure up the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a service provider and choose the DeepSeek-R1 design.<br>
<br>The model detail page [supplies vital](https://matchpet.es) details about the model's abilities, pricing structure, and implementation guidelines. You can discover detailed use guidelines, including sample API calls and code snippets for integration. The design supports various text generation tasks, consisting of material development, code generation, and question answering, using its support discovering optimization and CoT reasoning capabilities.
The page likewise includes implementation choices and [licensing details](https://eurosynapses.giannistriantafyllou.gr) to assist you get going with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to configure the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, get in a number of instances (in between 1-100).
6. For Instance type, select your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure advanced security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, service role permissions, and file encryption settings. For most use cases, the default settings will work well. However, for production deployments, you may wish to examine these settings to align with your company's security and compliance requirements.
7. Choose Deploy to begin using the design.<br>
<br>When the implementation is total, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play area.
8. Choose Open in play area to access an interactive user interface where you can experiment with different prompts and change design specifications like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum outcomes. For instance, content for reasoning.<br>
<br>This is an excellent method to explore the design's reasoning and text generation capabilities before incorporating it into your applications. The play ground supplies instant feedback, helping you understand how the model reacts to numerous inputs and letting you tweak your prompts for optimal outcomes.<br>
<br>You can rapidly test the design in the play area through the UI. However, to conjure up the released design programmatically with any Amazon Bedrock APIs, [wavedream.wiki](https://wavedream.wiki/index.php/User:DeliaGarrett5) you need to get the endpoint ARN.<br>
<br>Run inference [utilizing guardrails](http://111.229.9.193000) with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning 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](http://xn--9t4b21gtvab0p69c.com). After you have created the guardrail, use the following code to implement guardrails. The script initializes the bedrock_runtime customer, [yewiki.org](https://www.yewiki.org/User:FredGoble653) configures reasoning parameters, and sends out 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) hub with FMs, integrated algorithms, and [prebuilt](http://git.jaxc.cn) ML options that you can deploy with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your use case, with your information, and deploy them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 hassle-free methods: using the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both methods to help you select the method that best suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions 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 prompted to create a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The design web browser displays available models, with [details](https://zapinacz.pl) like the provider name and design capabilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card reveals key details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for example, Text Generation).
Bedrock Ready badge (if suitable), suggesting that this design can be registered with Amazon Bedrock, enabling you to use Amazon Bedrock APIs to conjure up the design<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 design name and provider details.
Deploy button to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of essential details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the design, it's advised to review the model details and license terms to validate compatibility with your use case.<br>
<br>6. Choose Deploy to [proceed](http://safepine.co3000) with [implementation](https://gitea.umrbotech.com).<br>
<br>7. For [trademarketclassifieds.com](https://trademarketclassifieds.com/user/profile/2746667) Endpoint name, utilize the immediately produced name or create a custom one.
8. For example type ¸ choose a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, go into the number of circumstances (default: 1).
Selecting suitable instance types and counts is important for expense and performance optimization. Monitor your implementation to adjust these settings as needed.Under Inference type, Real-time inference is selected by default. This is optimized for sustained traffic and low latency.
10. Review all setups for accuracy. For this design, we strongly advise 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 release procedure can take numerous minutes to finish.<br>
<br>When [implementation](https://git.bubbleioa.top) is complete, your endpoint status will alter to InService. At this point, [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:NikoleDeschamps) the model is prepared to accept inference requests through the endpoint. You can monitor the implementation progress on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the implementation is total, you can conjure up the model using a SageMaker runtime customer and [incorporate](https://yourfoodcareer.com) it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 using the SageMaker Python SDK, you will require to set up the SageMaker Python SDK and [it-viking.ch](http://it-viking.ch/index.php/User:JanetteGreig1) make certain you have the necessary AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to release and utilize DeepSeek-R1 for inference programmatically. The code for deploying 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 reasoning 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 create a guardrail using the Amazon Bedrock console or the API, and implement it as shown in the following code:<br>
<br>Tidy up<br>
<br>To prevent undesirable charges, complete the actions in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the design using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, select Marketplace releases.
2. In the Managed implementations area, find the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're erasing the right release: 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 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 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get going. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained models, 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 helps emerging generative [AI](https://www.remotejobz.de) companies build innovative solutions utilizing AWS services and accelerated compute. Currently, he is focused on establishing methods for fine-tuning and enhancing the inference performance of big language models. In his complimentary time, Vivek enjoys hiking, watching motion pictures, and attempting different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://106.15.120.127:3000) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://git.itbcode.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect working on generative [AI](http://ods.ranker.pub) with the Third-Party Model [Science](http://test-www.writebug.com3000) group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and [pipewiki.org](https://pipewiki.org/wiki/index.php/User:LatashaI90) tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://myafritube.com) center. She is enthusiastic about constructing options that assist customers accelerate their [AI](https://bihiring.com) journey and [larsaluarna.se](http://www.larsaluarna.se/index.php/User:BerylTazewell8) unlock service worth.<br>