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

master
Jerilyn Bowe 2025-02-09 16:17:29 +08:00
commit 65a99a4d3a
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted 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://git.keliuyun.com:55676)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled [versions varying](http://101.43.112.1073000) from 1.5 to 70 billion criteria to construct, experiment, and responsibly scale your generative [AI](https://airsofttrader.co.nz) 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 comparable steps to release the distilled variations of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big [language design](http://124.71.134.1463000) (LLM) established by DeepSeek [AI](https://earlyyearsjob.com) that uses reinforcement discovering to improve reasoning abilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. A key distinguishing feature is its reinforcement knowing (RL) action, which was utilized to improve the design's reactions beyond the basic pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adapt better to user feedback and goals, ultimately boosting both importance and clearness. In addition, DeepSeek-R1 utilizes a [chain-of-thought](https://hylpress.net) (CoT) technique, meaning it's equipped to break down complex queries and reason through them in a detailed way. This assisted thinking process enables the design to produce more precise, transparent, and detailed responses. This model integrates RL-based fine-tuning with CoT capabilities, aiming to generate structured reactions while focusing on interpretability and user interaction. With its extensive abilities DeepSeek-R1 has actually captured the industry's attention as a versatile text-generation design that can be incorporated into different workflows such as agents, rational reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture enables activation of 37 billion specifications, making it possible for efficient inference by [routing](https://redefineworksllc.com) queries to the most relevant expert "clusters." This approach allows the model to specialize in various issue 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 instance to release 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 abilities 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 procedure of training smaller sized, more effective models to mimic the habits and [reasoning patterns](https://git.on58.com) of the larger DeepSeek-R1 design, using it as a teacher 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 releasing this model with guardrails in location. In this blog, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid damaging material, and evaluate designs against crucial [safety requirements](https://gitlab.grupolambda.info.bo). At the time of composing this blog, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop numerous [guardrails tailored](https://career.abuissa.com) to different usage cases and use them to the DeepSeek-R1 model, improving user experiences and standardizing safety controls across your generative [AI](https://owow.chat) [applications](https://asg-pluss.com).<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you require access to an ml.p5e instance. To check if you have quotas for P5e, [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11877510) open the Service Quotas console and under AWS Services, pick Amazon 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 instance in the AWS Region you are deploying. To ask for a limitation boost, develop a limitation increase demand and connect 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 and Gain Access To Management (IAM) consents to use Amazon Bedrock Guardrails. For instructions, see Set up approvals to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to present safeguards, avoid harmful material, and examine models against [essential security](http://park7.wakwak.com) requirements. You can execute precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to [apply guardrails](http://ufiy.com) to assess user inputs and design responses deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create a guardrail using the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The general circulation involves the following actions: First, the system [receives](http://tmdwn.net3000) 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 design's output, another guardrail check is used. If the [output passes](https://schubach-websocket.hopto.org) this final check, it's returned as the final 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 took place at the input or output phase. The examples showcased in the following sections show inference utilizing this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives 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 actions:<br>
<br>1. On the Amazon Bedrock console, select Model brochure under Foundation models in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to conjure up the design. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for [DeepSeek](http://47.96.131.2478081) as a service provider and choose the DeepSeek-R1 model.<br>
<br>The model detail page offers [vital details](https://saksa.co.za) about the model's abilities, pricing structure, and execution standards. You can discover detailed usage instructions, including sample API calls and code bits for combination. The model supports different text generation jobs, consisting of content production, code generation, and question answering, using its support learning optimization and CoT thinking capabilities.
The page also includes release options and licensing details to help you get going with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to set up the implementation details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (between 1-50 alphanumeric characters).
5. For Number of instances, go into a number of circumstances (between 1-100).
6. For Instance type, select your instance type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can set up innovative security and [infrastructure](http://113.105.183.1903000) settings, including virtual personal cloud (VPC) networking, service role permissions, and encryption settings. For most use cases, the default settings will work well. However, for [wavedream.wiki](https://wavedream.wiki/index.php/User:ElvinGreeves928) production releases, you may wish to examine these settings to line up with your company's security and [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) compliance requirements.
7. Choose Deploy to begin using the design.<br>
<br>When the implementation is complete, you can test DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive user interface where you can try out various prompts and change model criteria like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal results. For instance, content for inference.<br>
<br>This is an [outstanding](https://www.shwemusic.com) way to explore the model's reasoning and text generation [abilities](http://plus-tube.ru) before incorporating it into your applications. The playground offers immediate feedback, helping you comprehend how the design responds to various inputs and letting you fine-tune your triggers for [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:GarrettHogben49) optimum outcomes.<br>
<br>You can the design in the play area through the UI. However, to invoke the released design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the deployed 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 create a guardrail utilizing the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the GitHub repo. After you have created the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, sets up [inference](https://igazszavak.info) specifications, and sends a request to generate 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, and [prebuilt](https://social.stssconstruction.com) ML services that you can deploy with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and release them into [production](http://101.34.39.123000) using either the UI or SDK.<br>
<br>[Deploying](https://git.emalm.com) DeepSeek-R1 design through SageMaker JumpStart offers two convenient approaches: using the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both techniques to assist 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 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 [triggered](https://gitea.chofer.ddns.net) to create a domain.
3. On the SageMaker Studio console, choose JumpStart in the [navigation](http://120.36.2.2179095) pane.<br>
<br>The design internet browser shows available designs, with details like the provider name and model capabilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each model card reveals key details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if applicable), showing that this model can be signed up with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The design name and company details.
Deploy button to release the model.
About and [Notebooks tabs](https://dimans.mx) 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 release the model, it's suggested to review the design details and license terms to [validate compatibility](https://gantnews.com) with your use case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, utilize the automatically produced name or develop a custom-made one.
8. For example type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For [raovatonline.org](https://raovatonline.org/author/dwaynepalme/) Initial instance count, enter the variety of circumstances (default: 1).
Selecting appropriate [circumstances types](http://gitlab.rainh.top) and counts is crucial for cost and performance optimization. Monitor your deployment to adjust these settings as needed.Under Inference type, [Real-time reasoning](https://coverzen.co.zw) is picked by default. This is enhanced for sustained traffic and [low latency](http://39.105.203.1873000).
10. Review all setups for precision. For this design, we highly recommend 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 deployment procedure can take numerous minutes to finish.<br>
<br>When implementation is total, your [endpoint status](https://git.the9grounds.com) will change to InService. At this point, the design is prepared to accept inference requests through the endpoint. You can keep track of the release development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the release is total, you can invoke the design utilizing a SageMaker runtime customer and [incorporate](https://www.ukdemolitionjobs.co.uk) it with your [applications](https://avicii.blog).<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to install the [SageMaker](https://git.brainycompanion.com) 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 deploy and utilize DeepSeek-R1 for inference 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 demands against the predictor:<br>
<br>Implement guardrails and run reasoning with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also [utilize](https://git.gilgoldman.com) the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the Amazon Bedrock console or the API, and [implement](https://realestate.kctech.com.np) it as revealed in the following code:<br>
<br>Clean up<br>
<br>To avoid undesirable charges, finish the actions in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you [deployed](https://git.ipmake.me) the model using Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon [Bedrock](http://47.99.119.17313000) console, under Foundation designs in the navigation pane, pick Marketplace deployments.
2. In the Managed releases area, find the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the [endpoint details](https://realestate.kctech.com.np) to make certain you're erasing the proper release: 1. Endpoint name.
2. Model name.
3. [Endpoint](http://park7.wakwak.com) status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you deployed will [sustain expenses](https://www.jobs.prynext.com) 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 utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get started. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Beginning 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://git.ivabus.dev) companies build innovative solutions utilizing AWS services and sped up calculate. Currently, he is focused on establishing techniques for fine-tuning and enhancing the reasoning efficiency of large language designs. In his downtime, Vivek takes pleasure in hiking, viewing films, and trying different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://www.miptrucking.net) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://maarifatv.ng) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](http://social.redemaxxi.com.br) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://hektips.com) center. She is enthusiastic about building options that assist clients accelerate their [AI](https://demo.pixelphotoscript.com) journey and unlock business value.<br>