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

Abdul Perdue 2025-02-20 22:12:41 +03:00
parent cfea2ff9e7
commit 55cc21b718
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are excited to reveal that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](http://yhxcloud.com:12213)'s first-generation frontier design, DeepSeek-R1, along with the distilled versions ranging from 1.5 to 70 billion criteria to build, experiment, and responsibly scale your generative [AI](http://git.huixuebang.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to get started with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar 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) developed by DeepSeek [AI](http://gite.limi.ink) that uses support learning to boost reasoning capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A key differentiating feature is its reinforcement knowing (RL) step, which was used to fine-tune the model's responses beyond the basic pre-training and tweak procedure. By including RL, DeepSeek-R1 can adapt more successfully to user feedback and goals, ultimately enhancing both significance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, meaning it's equipped to break down complicated inquiries and factor through them in a detailed manner. This [assisted reasoning](http://115.238.48.2109015) procedure enables the design to produce more accurate, transparent, and detailed responses. This model combines RL-based fine-tuning with CoT capabilities, aiming to create structured reactions while concentrating on interpretability and user interaction. With its extensive abilities DeepSeek-R1 has captured the market's attention as a versatile text-generation model that can be incorporated into various workflows such as agents, rational reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture allows activation of 37 billion specifications, allowing effective inference by routing inquiries to the most pertinent professional "clusters." This technique enables the model 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 use an ml.p5e.48 xlarge circumstances to release the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the [reasoning abilities](https://starfc.co.kr) of the main R1 model to more effective architectures based on popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of training smaller sized, more effective models to simulate the habits and thinking patterns of the larger DeepSeek-R1 model, using 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 suggest [deploying](https://pandatube.de) this design with guardrails in location. In this blog site, we will [utilize Amazon](http://wrs.spdns.eu) Bedrock Guardrails to introduce safeguards, prevent harmful material, and examine models against crucial security requirements. At the time of composing this blog, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop multiple guardrails [tailored](https://socipops.com) to various usage cases and use them to the DeepSeek-R1 model, [hb9lc.org](https://www.hb9lc.org/wiki/index.php/User:LoisHuntley) improving user experiences and standardizing security controls throughout your generative [AI](https://feelhospitality.com) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, 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, pick Amazon SageMaker, and validate you're utilizing 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 deploying. To ask for a limitation boost, create a limit boost demand [yewiki.org](https://www.yewiki.org/User:MarjorieBalcombe) and reach out to your account group.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the right [AWS Identity](https://cyltalentohumano.com) and Gain Access To Management (IAM) approvals 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 permits you to introduce safeguards, avoid damaging material, and examine designs against crucial security criteria. You can execute safety procedures for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and design actions released on Amazon Bedrock [Marketplace](http://47.122.26.543000) and SageMaker JumpStart. You can [develop](https://www.cowgirlboss.com) a guardrail utilizing the [Amazon Bedrock](https://startuptube.xyz) console or the API. For the example code to develop the guardrail, see the GitHub repo.<br>
<br>The general circulation involves 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 to the model for inference. After getting the model's output, another [guardrail check](http://47.92.218.2153000) 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 showing the nature of the intervention and whether it occurred at the input or [output phase](https://sujansadhu.com). The examples showcased in the following sections demonstrate inference 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 foundation models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:<br>
<br>1. On the Amazon Bedrock console, pick Model catalog under Foundation models in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to invoke the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:RodolfoHays7086) DeepSeek as a supplier and select the DeepSeek-R1 model.<br>
<br>The design detail page offers necessary details about the model's capabilities, prices structure, and implementation standards. You can discover detailed usage guidelines, including sample API calls and code bits for integration. The design supports different [text generation](http://git.scdxtc.cn) tasks, including material production, code generation, and question answering, utilizing its support learning optimization and CoT thinking abilities.
The page also includes deployment choices and licensing details to assist you begin with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, choose Deploy.<br>
<br>You will be triggered to set up the implementation details for DeepSeek-R1. The design ID will be pre-populated.
4. For [Endpoint](http://8.217.113.413000) name, enter an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a number of instances (in between 1-100).
6. For Instance type, pick your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is [advised](http://120.79.218.1683000).
Optionally, you can configure advanced security and facilities settings, including virtual private cloud (VPC) networking, service function consents, and encryption settings. For a lot of utilize cases, the default settings will work well. However, for production releases, you may desire to evaluate these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the design.<br>
<br>When the release is total, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play area to access an interactive user interface where you can try out various prompts and change design specifications like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal outcomes. For example, material for reasoning.<br>
<br>This is an excellent way to check out the model's thinking and text generation capabilities before incorporating it into your applications. The playground offers immediate feedback, helping you comprehend how the model reacts to numerous inputs and letting you fine-tune your triggers for ideal results.<br>
<br>You can quickly check the design in the play ground 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 utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference utilizing a released 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. After you have produced the guardrail, use the following code to implement guardrails. The script [initializes](http://g-friend.co.kr) the bedrock_runtime client, sets up inference parameters, and sends a request to produce text based upon 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, [genbecle.com](https://www.genbecle.com/index.php?title=Utilisateur:QHKGerman64153) and prebuilt ML options that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and deploy them into production utilizing either the UI or SDK.<br>
<br>[Deploying](http://133.242.131.2263003) DeepSeek-R1 design through SageMaker JumpStart offers 2 practical methods: utilizing the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both methods to help you pick the technique that finest matches your needs.<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, select Studio in the navigation pane.
2. First-time users will be triggered to [produce](https://www.dynamicjobs.eu) a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The model browser displays available models, with details like the supplier name and model capabilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each design card shows crucial details, including:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if suitable), suggesting that this design can be registered with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the design card to see the model details page.<br>
<br>The design details page [consists](https://smarthr.hk) of the following details:<br>
<br>- The model name and [company details](https://social.ppmandi.com).
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 specifications.
- Usage standards<br>
<br>Before you deploy the design, it's suggested to examine the [design details](https://gitea.joodit.com) and license terms to [verify compatibility](https://oakrecruitment.uk) with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, use the automatically produced name or develop a custom-made one.
8. For Instance type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the variety of instances (default: 1).
Selecting suitable instance types and counts is crucial for cost and efficiency optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time inference is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for accuracy. For this design, we strongly recommend sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. [Choose Deploy](https://crossroad-bj.com) to deploy the model.<br>
<br>The implementation 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 ready to accept reasoning requests through the endpoint. You can keep track of the deployment progress on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the release is complete, you can conjure up the model using a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the [SageMaker Python](https://nepalijob.com) SDK<br>
<br>To get started with DeepSeek-R1 using 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](https://platform.giftedsoulsent.com) example that demonstrates how to deploy and [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:NannetteOdell3) utilize DeepSeek-R1 for inference programmatically. The code for releasing the model is supplied in the Github here. You can clone the notebook and range from SageMaker Studio.<br>
<br>You can run additional demands 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 produce a guardrail utilizing the Amazon Bedrock console or the API, and execute it as displayed 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 utilizing Amazon Bedrock Marketplace, total the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace releases.
2. In the Managed releases area, find the [endpoint](https://alldogssportspark.com) you desire to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the proper 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 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 explored how you can access and the DeepSeek-R1 design utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get begun. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, 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](http://119.167.221.1460000) at AWS. He helps emerging generative [AI](https://git.limework.net) companies develop ingenious services using AWS services and sped up [compute](https://sportworkplace.com). Currently, he is concentrated on developing techniques for fine-tuning and optimizing the reasoning performance of large language designs. In his free time, Vivek delights in treking, [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:JeanetteBalsilli) seeing films, and attempting different cuisines.<br>
<br>[Niithiyn Vijeaswaran](http://git.aivfo.com36000) is a Generative [AI](http://www.thegrainfather.co.nz) Specialist Solutions Architect with the Third-Party Model [Science](http://fcgit.scitech.co.kr) group at AWS. His area of focus is AWS [AI](https://tv.goftesh.com) accelerators (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](https://cmegit.gotocme.com) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://wik.co.kr) hub. She is passionate about constructing options that help customers [accelerate](http://62.234.223.2383000) their [AI](https://git.saphir.one) journey and unlock service value.<br>