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

Minna King 2025-06-01 09:23:28 +00:00
commit 8800f6bda4
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted 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 [AI](https://signedsociety.com)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled versions ranging from 1.5 to 70 billion criteria to build, experiment, and responsibly scale your generative [AI](https://dreamtvhd.com) concepts on AWS.<br>
<br>In this post, we show how to get started with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar steps to deploy the distilled variations of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) developed by DeepSeek [AI](https://gl.cooperatic.fr) that uses support discovering to improve thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. An essential identifying feature is its reinforcement knowing (RL) step, which was utilized to fine-tune the model's actions beyond the basic [pre-training](http://120.26.64.8210880) and fine-tuning process. By including RL, DeepSeek-R1 can adapt more effectively to user feedback and objectives, ultimately boosting both importance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, [indicating](https://rrallytv.com) it's geared up to break down complicated queries and factor through them in a detailed way. This directed reasoning process enables the design to produce more precise, transparent, and detailed responses. This design integrates RL-based fine-tuning with CoT abilities, aiming to generate structured responses while focusing on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has actually recorded the industry's attention as a versatile text-generation model that can be incorporated into various workflows such as representatives, sensible reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mix of [Experts](https://jobs.competelikepros.com) (MoE) architecture and is 671 billion parameters in size. The MoE architecture permits activation of 37 billion criteria, making it possible for efficient inference by routing questions to the most pertinent specialist "clusters." This approach permits the model to specialize in various issue domains while maintaining general efficiency. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 [xlarge instance](https://git.whistledev.com) to deploy the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking capabilities of the main R1 model to more efficient architectures based upon popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a [procedure](https://www.teamusaclub.com) of training smaller, more efficient models to mimic the habits and thinking patterns of the larger DeepSeek-R1 design, 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 releasing this model with [guardrails](https://teengigs.fun) in place. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid harmful content, and assess models against crucial security criteria. At the time of composing this blog site, for DeepSeek-R1 deployments on [SageMaker JumpStart](http://carecall.co.kr) and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can produce numerous guardrails tailored to various use cases and use them to the DeepSeek-R1 design, improving user experiences and standardizing safety controls across your generative [AI](http://47.76.210.186:3000) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you need access to an ml.p5e instance. To check if you have quotas for P5e, open the [Service Quotas](http://106.52.134.223000) console and under AWS Services, select Amazon SageMaker, and [validate](https://gitter.top) you're using 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 request a limitation boost, develop a limit boost demand and connect to your account team.<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For guidelines, see Set up permissions to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the [ApplyGuardrail](http://123.249.20.259080) API<br>
<br>Amazon Bedrock Guardrails allows you to introduce safeguards, avoid damaging content, and examine models against crucial safety requirements. You can implement precaution for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This permits you to use guardrails to assess user inputs and design reactions deployed on [Amazon Bedrock](http://gitlab.hupp.co.kr) Marketplace and SageMaker JumpStart. You can develop a the Amazon Bedrock [console](https://impactosocial.unicef.es) or the API. For the example code to develop the guardrail, see the GitHub repo.<br>
<br>The general circulation includes the following steps: First, the system gets 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 design for reasoning. After getting the model's output, another guardrail check is used. If the output passes this last check, it's returned as the outcome. However, if either the input or output is intervened by the guardrail, a message is [returned suggesting](https://calciojob.com) the nature of the intervention and whether it took place at the input or output phase. The examples showcased in the following sections show reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace provides you access to over 100 popular, emerging, and specialized structure 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, pick Model brochure 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 provider and pick the DeepSeek-R1 design.<br>
<br>The design detail page offers important details about the model's capabilities, pricing structure, and execution standards. You can find detailed use directions, consisting of sample API calls and code bits for combination. The model supports different text generation tasks, consisting of content production, code generation, and question answering, utilizing its reinforcement finding out optimization and CoT reasoning capabilities.
The page also includes deployment choices and licensing details to assist you start with DeepSeek-R1 in your applications.
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 name, go into an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of circumstances, get in a variety of circumstances (in between 1-100).
6. For Instance type, choose your instance type. For optimum efficiency with DeepSeek-R1, a [GPU-based circumstances](http://web.joang.com8088) type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure advanced security and facilities settings, including virtual private cloud (VPC) networking, service role approvals, and encryption settings. For many use cases, the default settings will work well. However, for production releases, you may wish to examine these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to start utilizing the model.<br>
<br>When the deployment is total, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in play area to access an interactive interface where you can explore different prompts and adjust design criteria like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum results. For example, content for reasoning.<br>
<br>This is an exceptional way to explore the model's thinking and text generation abilities before integrating it into your applications. The play area provides instant feedback, helping you understand how the design reacts to numerous inputs and letting you tweak your triggers for optimum outcomes.<br>
<br>You can quickly evaluate the design in the playground through the UI. However, to invoke the deployed model programmatically with any [Amazon Bedrock](https://dvine.tv) APIs, you require 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 inference utilizing a released DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can [produce](https://lovetechconsulting.net) 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 the bedrock_runtime customer, sets up reasoning specifications, and sends a demand to create [text based](http://121.40.209.823000) on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, integrated algorithms, and prebuilt ML options 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 data, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart offers two hassle-free techniques: using the intuitive SageMaker JumpStart UI or carrying out programmatically through the [SageMaker Python](http://175.24.174.1733000) SDK. Let's explore both approaches to assist you select the [technique](http://42.192.130.833000) that finest suits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the navigation pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, [pick JumpStart](http://jobjungle.co.za) in the navigation pane.<br>
<br>The model internet browser shows available designs, with details like the supplier name and [model abilities](https://www.rozgar.site).<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card shows essential details, including:<br>
<br>- Model name
- Provider name
- Task [category](https://great-worker.com) (for [it-viking.ch](http://it-viking.ch/index.php/User:AngelicaSnowball) instance, Text Generation).
Bedrock Ready badge (if relevant), showing that this model can be registered with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the design card to see the design details page.<br>
<br>The design details page includes the following details:<br>
<br>- The model name and company details.
Deploy button to deploy the model.
About and [Notebooks tabs](https://howtolo.com) with detailed details<br>
<br>The About tab includes important details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you deploy the model, it's recommended to examine the design details and license terms to [validate compatibility](https://www.teamswedenclub.com) with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, use the immediately produced name or develop a customized one.
8. For example type ¸ choose 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 essential for expense and efficiency optimization. Monitor your implementation to change these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for precision. For this design, we strongly advise sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to release the design.<br>
<br>The deployment process can take a number of minutes to finish.<br>
<br>When implementation is complete, your endpoint status will change to InService. At this moment, the model is all set to accept reasoning demands through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the implementation is total, you can conjure up the model utilizing a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get begun with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the needed AWS permissions and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for inference programmatically. The code for deploying the design is offered in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run extra 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 use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail using the Amazon Bedrock [console](https://idemnaposao.rs) or the API, and execute it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted 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 model using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under [Foundation designs](https://wiki.kkg.org) in the navigation pane, pick Marketplace releases.
2. In the Managed implementations area, locate the endpoint you desire to erase.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the correct deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you released will sustain expenses if you leave it running. Use the following code to erase the endpoint if you desire to stop sustaining charges. For more details, see Delete Endpoints and [Resources](https://vloglover.com).<br>
<br>Conclusion<br>
<br>In this post, we explored how you can access and release the DeepSeek-R1 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to begin. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, 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://code.estradiol.cloud) business develop ingenious options utilizing AWS services and accelerated compute. Currently, he is focused on developing methods for fine-tuning and enhancing the reasoning efficiency of large language [designs](http://dkjournal.co.kr). In his spare time, Vivek takes pleasure in treking, watching motion pictures, and attempting different cuisines.<br>
<br>[Niithiyn Vijeaswaran](http://gitlab.xma1.de) is a Generative [AI](http://103.197.204.162:3025) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](http://gpis.kr) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect dealing with generative [AI](https://www.oradebusiness.eu) 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://chat-oo.com) hub. She is enthusiastic about building solutions that assist consumers accelerate their [AI](https://www.teamswedenclub.com) journey and unlock organization worth.<br>