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

Archer Cargill 2025-04-02 18:19:25 +00:00
commit edcf721d18
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 models are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](https://www.ejobsboard.com)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled variations ranging from 1.5 to 70 billion criteria to develop, experiment, and properly scale your generative [AI](http://124.192.206.82:3000) ideas on AWS.<br>
<br>In this post, we demonstrate how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to deploy the distilled variations of the designs also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) developed by DeepSeek [AI](https://git.partners.run) that utilizes reinforcement finding out to enhance thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. An essential identifying feature is its reinforcement learning (RL) action, which was used to refine the design's reactions beyond the basic pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adjust better to user feedback and goals, eventually boosting both relevance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) technique, suggesting it's [equipped](http://8.217.113.413000) to break down intricate inquiries and reason through them in a detailed way. This guided reasoning process permits the design to produce more accurate, transparent, and [detailed responses](https://gitea.cronin.one). This design combines RL-based fine-tuning with CoT capabilities, aiming to produce structured responses while concentrating on [interpretability](http://a43740dd904ea46e59d74732c021a354-851680940.ap-northeast-2.elb.amazonaws.com) and user interaction. With its extensive abilities DeepSeek-R1 has caught the market's attention as a versatile text-generation model that can be incorporated into various workflows such as representatives, rational reasoning and information interpretation jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion specifications, [christianpedia.com](http://christianpedia.com/index.php?title=User:JustinaFrederic) making it possible for effective reasoning by [routing inquiries](http://47.108.105.483000) to the most appropriate expert "clusters." This method enables the design to focus on various problem domains while maintaining general performance. DeepSeek-R1 requires at least 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge circumstances to release the design. ml.p5e.48 [xlarge features](http://tobang-bangsu.co.kr) 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the [thinking abilities](https://corvestcorp.com) of the main R1 model to more effective 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, more effective designs to simulate the behavior [pipewiki.org](https://pipewiki.org/wiki/index.php/User:RaleighRochon2) and reasoning patterns of the bigger DeepSeek-R1 design, utilizing it as a teacher design.<br>
<br>You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend deploying this design with guardrails in location. In this blog, we will utilize Amazon [Bedrock](https://scode.unisza.edu.my) Guardrails to introduce safeguards, prevent hazardous material, and evaluate models against essential security requirements. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create several guardrails tailored to different use cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing security controls across your [generative](https://www.rozgar.site) [AI](http://101.51.106.216) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you require access to an ml.p5e circumstances. To examine if you have quotas for P5e, open the Service Quotas console and under AWS Services, select Amazon SageMaker, and verify 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 releasing. To [request](http://gitlab.pakgon.com) a limit boost, create a limitation increase request and reach out to your account team.<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the correct AWS [Identity](https://kaymack.careers) and Gain Access To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For guidelines, see Set up approvals to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, prevent damaging content, and evaluate designs against key security requirements. You can implement for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and design responses deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail utilizing the Amazon [Bedrock console](http://www.hxgc-tech.com3000) or the API. For the example code to produce the guardrail, see the GitHub repo.<br>
<br>The basic flow involves 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](https://ckzink.com) check, it's sent to the design for inference. After receiving the [design's](https://euvisajobs.com) output, another guardrail check is applied. If the output passes this last check, it's returned as the last [outcome](http://43.143.46.763000). However, if either the input or output is stepped in by the guardrail, a message is returned indicating the nature of the intervention and whether it happened at the input or output stage. The examples showcased in the following areas [demonstrate reasoning](https://bolsadetrabajo.tresesenta.mx) using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:CherylCastiglia) emerging, and [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:UnaProsser9137) specialized structure models (FMs) through [Amazon Bedrock](https://www.pakalljobz.com). To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, choose Model [brochure](https://test.bsocial.buzz) 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 does not support Converse APIs and other Amazon Bedrock [tooling](https://familytrip.kr).
2. Filter for [DeepSeek](https://oninabresources.com) as a provider and pick the DeepSeek-R1 design.<br>
<br>The model detail page offers vital details about the design's abilities, prices structure, and application guidelines. You can discover detailed usage guidelines, consisting of sample API calls and code snippets for combination. The design supports various text generation tasks, including content production, code generation, and question answering, using its reinforcement finding out optimization and CoT reasoning abilities.
The page likewise includes implementation options and [licensing details](https://work-ofie.com) to help you start with DeepSeek-R1 in your applications.
3. To start 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 name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, go into a number of circumstances (in between 1-100).
6. For Instance type, choose your circumstances type. For optimum performance with DeepSeek-R1, a [GPU-based instance](https://bestwork.id) type like ml.p5e.48 xlarge is advised.
Optionally, you can configure sophisticated security and facilities settings, including virtual [personal cloud](https://chutpatti.com) (VPC) networking, service function approvals, and file encryption settings. For most use cases, the default settings will work well. However, for production implementations, you might desire to review these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start using the design.<br>
<br>When the implementation is complete, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in playground to access an interactive user interface where you can try out different prompts and change design criteria like temperature and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for ideal outcomes. For example, material for inference.<br>
<br>This is an excellent method to explore the model's thinking and text generation abilities before incorporating it into your applications. The playground offers immediate feedback, helping you comprehend how the design reacts to various inputs and letting you tweak your prompts for optimum outcomes.<br>
<br>You can quickly evaluate the model 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 utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning using a deployed DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can produce a guardrail utilizing the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo. After you have actually created the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference criteria, and sends a request to produce text based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial [intelligence](https://swaggspot.com) (ML) hub with FMs, integrated algorithms, and prebuilt ML solutions that you can deploy with just a couple of clicks. With [SageMaker](https://gitea.nafithit.com) JumpStart, you can tailor pre-trained models to your usage case, with your data, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart uses 2 practical techniques: using the user-friendly SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's check out both techniques to help you pick 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, pick 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 model internet browser shows available models, with details like the provider name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card reveals key details, including:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if relevant), indicating that this design can be signed up with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to conjure up the model<br>
<br>5. Choose the design card to see the design details page.<br>
<br>The model details page includes the following details:<br>
<br>- The design name and company details.
Deploy button to deploy the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes crucial details, such as:<br>
<br>- Model description.
- License [details](https://www.racingfans.com.au).
- Technical specifications.
- Usage guidelines<br>
<br>Before you release the design, it's advised to examine the design details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, [hb9lc.org](https://www.hb9lc.org/wiki/index.php/User:TobyLabonte8) utilize the immediately produced name or develop a customized one.
8. For [Instance type](https://gogs.greta.wywiwyg.net) ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the number of instances (default: 1).
Selecting appropriate circumstances types and counts is crucial for cost and efficiency optimization. Monitor your implementation to change these settings as needed.Under Inference type, Real-time inference is chosen by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for accuracy. For this model, 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 deployment process can take several minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this moment, the design is ready to accept inference demands through the endpoint. You can [monitor](https://galsenhiphop.com) the implementation progress on the [SageMaker](https://www.pkjobs.store) console Endpoints page, which will display appropriate metrics and status details. When the release is total, you can invoke the design utilizing a SageMaker runtime customer and [incorporate](https://git.i2edu.net) it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the [SageMaker Python](http://101.52.220.1708081) SDK<br>
<br>To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the required AWS consents and environment setup. The following is a detailed code example that shows how to release and use DeepSeek-R1 for reasoning programmatically. The code for [deploying](http://47.92.159.28) 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](http://39.96.8.15010080) guardrails and run inference 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 utilizing the Amazon Bedrock console or the API, and execute it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted charges, complete the steps in this area to tidy up your [resources](https://vidacibernetica.com).<br>
<br>Delete the Amazon Bedrock [Marketplace](https://www.acaclip.com) implementation<br>
<br>If you released the design using Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, choose Marketplace implementations.
2. In the Managed implementations section, locate the endpoint you wish 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 appropriate deployment: 1. Endpoint name.
2. Model name.
3. [Endpoint](https://vieclamangiang.net) status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you released 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 explored how you can access and deploy the DeepSeek-R1 design using Bedrock Marketplace and SageMaker [JumpStart](https://www.iqbagmarket.com). Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get started. For more details, describe Use Amazon Bedrock [tooling](https://lonestartube.com) 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](https://repo.komhumana.org) at AWS. He assists emerging generative [AI](http://kacm.co.kr) [companies build](https://premiergitea.online3000) ingenious solutions utilizing AWS services and accelerated compute. Currently, he is concentrated on developing techniques for fine-tuning and enhancing the reasoning efficiency of large language models. In his spare time, Vivek enjoys treking, enjoying movies, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://gomyneed.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://24frameshub.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect dealing with generative [AI](http://47.108.92.88:3000) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic collaborations for [pipewiki.org](https://pipewiki.org/wiki/index.php/User:ElmaZvy314724121) Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://git.wo.ai) hub. She is passionate about developing services that assist clients accelerate their [AI](https://stationeers-wiki.com) journey and unlock service value.<br>