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

Alicia Harney 2025-02-17 04:52:04 +08:00
commit aea8769c6c

@ -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 deploy DeepSeek [AI](https://omegat.dmu-medical.de)'s first-generation frontier model, DeepSeek-R1, along with the distilled variations ranging from 1.5 to 70 billion parameters to build, experiment, and properly scale your generative [AI](http://www.maxellprojector.co.kr) [concepts](http://hammer.x0.to) on AWS.<br>
<br>In this post, we show how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to release the distilled versions of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](http://150.158.183.74:10080) that uses reinforcement finding out to boost reasoning abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A key distinguishing feature is its support learning (RL) action, which was utilized to improve the model's reactions beyond the basic pre-training and tweak procedure. By integrating RL, DeepSeek-R1 can adapt more successfully to user feedback and objectives, ultimately enhancing both importance and clarity. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) approach, suggesting it's geared up to break down complicated questions and factor through them in a detailed manner. This guided thinking process permits the design to produce more accurate, transparent, and detailed responses. This model integrates RL-based fine-tuning with CoT capabilities, aiming to create structured responses while concentrating on interpretability and user [interaction](https://www.athleticzoneforum.com). With its wide-ranging abilities DeepSeek-R1 has caught the industry's attention as a versatile text-generation model that can be incorporated into various workflows such as representatives, rational reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture allows activation of 37 billion specifications, enabling effective reasoning by routing inquiries to the most relevant specialist "clusters." This method allows the model to focus on different issue domains while maintaining overall performance. DeepSeek-R1 requires 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 release the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 model to more efficient architectures based upon 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, more efficient designs to mimic the behavior and thinking patterns of the bigger DeepSeek-R1 model, using it as an instructor model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:BernadetteConawa) Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we [recommend deploying](https://jobs.constructionproject360.com) this design with guardrails in place. In this blog site, we will use Amazon Bedrock Guardrails to present safeguards, avoid damaging material, and assess designs against crucial security requirements. At the time of writing this blog site, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can create numerous guardrails tailored to different use cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls across your generative [AI](http://www.tuzh.top:3000) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you require access to an ml.p5e [instance](http://www.mitt-slide.com). To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and confirm 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 releasing. To request a limitation boost, develop a limit boost demand and reach out to your account group.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) authorizations to use Amazon Bedrock [Guardrails](http://ribewiki.dk). For guidelines, see Set up consents to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to introduce safeguards, avoid harmful content, and examine models against essential safety criteria. You can execute safety procedures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and model actions deployed on Amazon Bedrock Marketplace and [SageMaker JumpStart](http://124.71.134.1463000). You can develop 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 general flow includes the following actions: First, the system receives an input for the model. This input is then processed through the [ApplyGuardrail API](https://ready4hr.com). 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 intervened by the guardrail, a message is returned suggesting the nature of the intervention and whether it happened at the input or output stage. The examples showcased in the following areas show 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, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, [pediascape.science](https://pediascape.science/wiki/User:ChandaRidenour) choose Model catalog under Foundation designs in the navigation pane.
At the time of writing this post, you can utilize the InvokeModel API to conjure up the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and select the DeepSeek-R1 design.<br>
<br>The design detail page offers important details about the model's abilities, pricing structure, and implementation standards. You can discover detailed use instructions, including sample API calls and code snippets for integration. The model supports different text generation jobs, including material development, code generation, and question answering, using its support finding out optimization and CoT thinking abilities.
The page likewise includes release alternatives and [licensing details](https://wiki.rolandradio.net) to help you get begun with DeepSeek-R1 in your [applications](https://git.jackyu.cn).
3. To begin using DeepSeek-R1, pick Deploy.<br>
<br>You will be prompted to set up the release details for DeepSeek-R1. The model ID will be pre-populated.
4. For [Endpoint](http://124.71.134.1463000) name, enter an endpoint name (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 ideal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure sophisticated security and facilities settings, including virtual private cloud (VPC) networking, service role consents, and encryption settings. For many use cases, the default settings will work well. However, for production implementations, you might want to evaluate these settings to align with your company's security and compliance requirements.
7. Choose Deploy to start using the model.<br>
<br>When the release is complete, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive interface where you can try out various prompts and adjust model specifications like temperature level and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum outcomes. For instance, material for reasoning.<br>
<br>This is an outstanding way to check out the model's thinking and text generation capabilities before incorporating it into your applications. The play ground supplies instant feedback, assisting you understand how the design reacts to different inputs and letting you tweak your prompts for optimum outcomes.<br>
<br>You can rapidly evaluate the model in the playground through the UI. However, to conjure up the [deployed design](https://janhelp.co.in) 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 demonstrates how to perform inference utilizing a deployed DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can [develop](https://acetamide.net) a guardrail utilizing the Amazon [Bedrock console](https://janhelp.co.in) 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 execute guardrails. The script initializes the bedrock_runtime client, configures inference criteria, and sends out a [request](https://topcareerscaribbean.com) 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, built-in algorithms, and prebuilt ML services that you can release with simply a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your information, and [release](http://ufidahz.com.cn9015) them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 practical methods: utilizing the instinctive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both methods to help you choose the approach that best matches your requirements.<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, pick Studio in the navigation pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The model browser shows available models, with details like the service provider name and model capabilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each design card reveals crucial details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if applicable), indicating that this model can be [registered](https://nailrada.com) with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the design card to view the design details page.<br>
<br>The model details page includes 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 crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you release the model, it's [suggested](http://www.xn--739an41crlc.kr) to examine the model details and license terms to [validate compatibility](https://genzkenya.co.ke) with your use case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the instantly created name or create 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 circumstances (default: 1).
Selecting proper instance types and counts is important for cost and efficiency optimization. Monitor your implementation to adjust these settings as needed.Under Inference type, Real-time inference is picked by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for accuracy. For this design, we strongly suggest [sticking](https://git.itk.academy) 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 a number of minutes to complete.<br>
<br>When implementation is total, your endpoint status will alter to InService. At this moment, the model is all set to accept inference demands 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 complete, you can conjure up the design using a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 using the SageMaker Python SDK, you will need to set up the [SageMaker](https://tweecampus.com) Python SDK and make certain you have the essential 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 releasing the design is [supplied](http://101.42.248.1083000) in the Github here. You can clone the notebook and run from [SageMaker Studio](https://aceme.ink).<br>
<br>You can run additional demands against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, [gratisafhalen.be](https://gratisafhalen.be/author/danarawson/) you can likewise use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail utilizing the Amazon Bedrock console or [wiki.dulovic.tech](https://wiki.dulovic.tech/index.php/User:EdithJoseph92) the API, and execute it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid [undesirable](http://gitlab.sybiji.com) charges, finish the steps in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you deployed the model utilizing Amazon Bedrock Marketplace, total 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 releases section, locate the [endpoint](http://123.206.9.273000) you wish to erase.
3. Select the endpoint, and on the Actions menu, [pick Delete](https://pedulidigital.com).
4. Verify the endpoint details to make certain you're deleting the appropriate implementation: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you deployed will sustain expenses if you leave it running. Use the following code to delete 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](https://test.manishrijal.com.np) out 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 now to get going. For [oeclub.org](https://oeclub.org/index.php/User:EloiseLaflamme8) 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](http://82.223.37.137) for Inference at AWS. He assists emerging generative [AI](https://parentingliteracy.com) companies construct ingenious services using AWS services and sped up calculate. Currently, he is focused on establishing techniques for fine-tuning and enhancing the inference efficiency of large language designs. In his totally free time, Vivek takes pleasure in hiking, enjoying films, and trying various foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://103.1.12.176) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://tweecampus.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>[Jonathan Evans](https://cacklehub.com) is a Specialist working on generative [AI](https://fumbitv.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://www.valeriarp.com.tr) center. She is enthusiastic about [constructing services](https://www.sintramovextrema.com.br) that assist customers accelerate their [AI](http://106.227.68.187:3000) journey and unlock company value.<br>