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

Katia Kiernan 2025-05-29 16:13:40 +08:00
commit 6bc6647d56
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled to announce that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and [trademarketclassifieds.com](https://trademarketclassifieds.com/user/profile/2672496) Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](https://dramatubes.com)'s first-generation frontier design, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion [criteria](https://ivytube.com) to construct, experiment, and properly scale your generative [AI](https://hatchingjobs.com) concepts on AWS.<br>
<br>In this post, we show how to get begun with DeepSeek-R1 on Amazon Bedrock [Marketplace](https://prosafely.com) and SageMaker JumpStart. You can follow comparable actions to release the distilled versions of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large [language model](http://gsend.kr) (LLM) established by DeepSeek [AI](https://mobishorts.com) that uses reinforcement finding out to [enhance](http://123.60.173.133000) thinking capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. An essential distinguishing feature is its reinforcement knowing (RL) action, which was utilized to refine the design's actions beyond the standard pre-training and fine-tuning procedure. By [incorporating](https://www.ajirazetu.tz) RL, DeepSeek-R1 can adapt more efficiently to user feedback and goals, ultimately boosting both significance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, suggesting it's equipped to break down complex queries and factor through them in a [detailed manner](https://washcareer.com). This assisted thinking process allows the model to produce more precise, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT abilities, aiming to produce structured responses while concentrating on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has actually recorded the market's attention as a versatile text-generation design that can be integrated into different workflows such as representatives, rational reasoning and information interpretation tasks.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture enables activation of 37 billion specifications, allowing efficient reasoning by routing questions to the most relevant professional "clusters." This approach allows the model to concentrate on different problem domains while maintaining general effectiveness. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge circumstances to deploy the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 [distilled](http://git.cnibsp.com) models bring the thinking abilities of the main R1 design 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 process of training smaller, more efficient models to imitate the habits and reasoning patterns of the bigger DeepSeek-R1 design, using it as an instructor design.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we advise releasing this design with guardrails in location. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid damaging content, and [evaluate models](https://chatgay.webcria.com.br) against essential safety criteria. At the time of composing this blog site, for DeepSeek-R1 deployments on [SageMaker JumpStart](https://www.groceryshopping.co.za) and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can produce several guardrails tailored to different usage cases and apply them to the DeepSeek-R1 model, improving user experiences and standardizing safety controls across your generative [AI](http://gsend.kr) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, 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, choose Amazon SageMaker, and validate you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are releasing. To ask for a limit increase, produce a limit increase request and connect to your account group.<br>
<br>Because you will be deploying this design with [Amazon Bedrock](http://106.52.242.1773000) Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) permissions to use Amazon Bedrock Guardrails. For directions, see Set up approvals 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 hazardous content, and evaluate designs against essential security requirements. You can carry out precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to assess user inputs and design reactions deployed on Amazon Bedrock Marketplace and [hb9lc.org](https://www.hb9lc.org/wiki/index.php/User:MaggieGeake87) SageMaker JumpStart. You can develop 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 flow involves the following actions: First, the system receives an input for the design. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent out to the model for inference. After receiving the design's output, another guardrail check is used. If the output passes this last 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 sections show inference using 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 designs (FMs) through [Amazon Bedrock](https://gitea.baxir.fr). 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 designs in the navigation pane.
At the time of composing this post, you can use the InvokeModel API to conjure up the model. It doesn't support Converse APIs and other Amazon Bedrock [tooling](http://www.jedge.top3000).
2. Filter for DeepSeek as a company and select the DeepSeek-R1 design.<br>
<br>The design detail page offers about the design's capabilities, prices structure, and execution standards. You can discover detailed use guidelines, including sample API calls and code bits for integration. The [design supports](https://jobs.but.co.id) various text generation jobs, including content production, code generation, and concern answering, utilizing its support discovering optimization and CoT thinking abilities.
The page also includes implementation alternatives and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, select Deploy.<br>
<br>You will be prompted to configure the implementation 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, enter a number of circumstances (between 1-100).
6. For Instance type, pick your instance type. For optimum performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can configure advanced security and [infrastructure](https://git.jerrita.cn) settings, consisting of virtual personal cloud (VPC) networking, [service function](http://rackons.com) authorizations, and encryption settings. For a lot of use cases, the default settings will work well. However, for production implementations, you might want to review these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to begin utilizing the model.<br>
<br>When the deployment is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive user interface where you can experiment with various prompts and change design parameters like temperature and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for ideal results. For example, material for inference.<br>
<br>This is an exceptional way to explore the design's thinking and text generation abilities before incorporating it into your applications. The [play ground](https://git.amic.ru) provides instant feedback, assisting you comprehend how the design responds to numerous inputs and letting you tweak your triggers for optimal results.<br>
<br>You can rapidly test the model in the play area through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run inference utilizing [guardrails](http://106.14.125.169) with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform reasoning [utilizing](http://git.gonstack.com) a deployed DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. 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. After you have created the guardrail, utilize the following code to implement guardrails. The script initializes the bedrock_runtime customer, sets up reasoning specifications, and sends out a demand to create text based upon a user timely.<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 options that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your use case, with your information, and release them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 convenient approaches: using the user-friendly SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's explore both [techniques](http://39.106.43.96) to help you select the [technique](https://rrallytv.com) that best suits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions 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 create a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The model browser displays available designs, with details like the company name and design capabilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each design card shows essential details, consisting of:<br>
<br>- Model name
- Provider name
- Task [classification](http://swwwwiki.coresv.net) (for instance, Text Generation).
Bedrock Ready badge (if relevant), [suggesting](https://www.naukrinfo.pk) that this model can be registered with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the model card to view the design details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The design name and company details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of crucial details, [wiki.eqoarevival.com](https://wiki.eqoarevival.com/index.php/User:LizetteValenzuel) such as:<br>
<br>- Model description.
- License details.
[- Technical](http://43.138.57.2023000) requirements.
- Usage standards<br>
<br>Before you deploy the model, it's advised to review the model details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, [gratisafhalen.be](https://gratisafhalen.be/author/maewalch561/) utilize the immediately produced name or produce a custom one.
8. For Instance type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the number of instances (default: 1).
Selecting appropriate circumstances types and counts is vital for cost and performance optimization. Monitor your deployment to adjust these [settings](http://125.43.68.2263001) as needed.Under Inference type, Real-time reasoning is chosen by default. This is optimized for sustained traffic and [low latency](http://47.110.248.4313000).
10. Review all configurations for precision. For this model, we highly suggest adhering to SageMaker JumpStart default settings and making certain that network isolation remains in [location](https://droomjobs.nl).
11. Choose Deploy to [release](http://66.85.76.1223000) the design.<br>
<br>The release process can take a number of minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this moment, the design is [prepared](https://git.amic.ru) to accept inference requests through the endpoint. You can monitor the implementation progress on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the implementation is complete, you can invoke the model using a SageMaker runtime client and incorporate 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 require to install the SageMaker Python SDK and make certain you have the essential AWS approvals 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 model is offered in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run additional requests against the predictor:<br>
<br>Implement guardrails and run inference 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 produce a guardrail utilizing the Amazon Bedrock console or the API, and execute it as shown in the following code:<br>
<br>Tidy up<br>
<br>To prevent undesirable charges, complete the steps in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock [Marketplace](https://gulfjobwork.com) deployment<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, [select Marketplace](https://almanyaisbulma.com.tr) implementations.
2. In the Managed deployments section, find the endpoint you wish 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 proper deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The [SageMaker](http://101.132.182.1013000) JumpStart design you released will sustain expenses if you leave it [running](https://reklama-a5.by). 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 out how you can access and release 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 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 Getting going 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](http://wiki.iurium.cz) business construct innovative solutions using AWS services and sped up compute. Currently, he is concentrated on developing strategies for fine-tuning and optimizing the reasoning performance of large language models. In his leisure time, Vivek takes pleasure in hiking, viewing motion pictures, and attempting various foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://git.cloudtui.com) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://clubamericafansclub.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://foris.gr) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and [strategic collaborations](https://repos.ubtob.net) for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and [generative](https://career.webhelp.pk) [AI](https://wiki.aipt.group) center. She is passionate about developing solutions that help customers accelerate their [AI](http://git.estoneinfo.com) journey and unlock organization value.<br>