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

Danielle Kiel 2025-03-01 21:03:38 +08:00
commit e1cde0bac3
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled 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://git.caraus.tech)'s first-generation frontier design, DeepSeek-R1, together with the distilled versions ranging from 1.5 to 70 billion parameters to build, experiment, and properly scale your generative [AI](http://okna-samara.com.ru) concepts on AWS.<br>
<br>In this post, we demonstrate how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar steps to deploy the distilled variations of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) established by DeepSeek [AI](http://git.9uhd.com) that uses reinforcement learning to boost reasoning abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial identifying feature is its support learning (RL) action, which was utilized to fine-tune the model's responses beyond the standard pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adjust better to user feedback and objectives, ultimately boosting both importance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, suggesting it's equipped to break down complex queries and reason through them in a detailed way. This directed thinking procedure permits the design to produce more precise, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT capabilities, aiming to create structured reactions while concentrating on interpretability and user interaction. With its extensive abilities DeepSeek-R1 has captured the industry's attention as a versatile text-generation design that can be integrated into different workflows such as representatives, logical thinking and information interpretation tasks.<br>
<br>DeepSeek-R1 [utilizes](https://akinsemployment.ca) a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture permits activation of 37 billion criteria, making it possible for efficient reasoning by routing inquiries to the most relevant expert "clusters." This technique enables the design to concentrate on different issue domains while maintaining overall efficiency. 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 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 models bring the reasoning capabilities of the main R1 model to more efficient architectures based on 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 effective models to imitate the habits 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 model, we suggest releasing this design with guardrails in place. In this blog site, we will use Amazon Bedrock Guardrails to present safeguards, avoid damaging content, and examine models against key safety requirements. At the time of writing this blog site, for [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce multiple guardrails tailored to various usage cases and use them to the DeepSeek-R1 model, [wavedream.wiki](https://wavedream.wiki/index.php/User:KathyWja531444) improving user experiences and standardizing safety controls throughout your generative [AI](https://gitea.lihaink.cn) applications.<br>
<br>Prerequisites<br>
<br>To [release](http://43.138.57.2023000) the DeepSeek-R1 design, you need access to an ml.p5e [instance](https://cheere.org). To examine if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and verify 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 boost, develop a limitation increase demand and reach out to your [account team](https://www.blatech.co.uk).<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the correct AWS Identity and Gain Access To Management (IAM) permissions to use Amazon Bedrock Guardrails. For instructions, see Establish approvals to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, prevent harmful content, and assess designs against essential security requirements. You can implement precaution for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and design reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop a guardrail using the Amazon Bedrock [console](http://47.101.139.60) or the API. For the example code to create the guardrail, [links.gtanet.com.br](https://links.gtanet.com.br/jacquelinega) see the GitHub repo.<br>
<br>The general flow includes the following steps: First, the system [receives](https://labz.biz) 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 [garagesale.es](https://www.garagesale.es/author/roscoehavel/) inference. After getting the design's output, another guardrail check is [applied](https://www.globaltubedaddy.com). If the output passes this last check, it's returned as the last outcome. However, if either the input or output is stepped in by the guardrail, a message is returned indicating the nature of the [intervention](http://84.247.150.843000) and whether it happened at the input or output phase. The examples showcased in the following areas 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 foundation designs (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, choose Model brochure under Foundation models in the navigation pane.
At the time of composing this post, you can utilize the InvokeModel API to invoke 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 model.<br>
<br>The model detail page provides important details about the model's capabilities, prices structure, and implementation standards. You can find detailed use directions, consisting of sample API calls and code bits for combination. The different text generation jobs, including content production, code generation, and concern answering, using its reinforcement learning optimization and CoT thinking abilities.
The page likewise includes deployment choices and licensing [details](http://116.63.157.38418) to help you get begun with DeepSeek-R1 in your applications.
3. To begin [utilizing](https://novashop6.com) DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to set up the implementation details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (in between 1-50 alphanumeric characters).
5. For Number of circumstances, get in a number of circumstances (between 1-100).
6. For example type, choose your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up advanced security and facilities settings, consisting of virtual private cloud (VPC) networking, service function permissions, and file encryption settings. For the majority of utilize cases, the default settings will work well. However, [forum.altaycoins.com](http://forum.altaycoins.com/profile.php?id=1103710) for production releases, you might desire to review these settings to align with your company's security and compliance requirements.
7. Choose Deploy to begin [utilizing](http://git.zltest.com.tw3333) the model.<br>
<br>When the release is total, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive interface where you can try out various triggers and adjust design specifications like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for ideal outcomes. For example, material for inference.<br>
<br>This is an outstanding way to check out the design's thinking and text generation abilities before integrating it into your applications. The play area supplies immediate feedback, assisting you understand how the [model responds](https://gogs.dzyhc.com) to various inputs and letting you tweak your prompts for optimal results.<br>
<br>You can quickly evaluate the model in the play ground through the UI. However, to conjure up the deployed design programmatically with any [Amazon Bedrock](http://www.cl1024.online) APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the [deployed](http://unired.zz.com.ve) DeepSeek-R1 endpoint<br>
<br>The following code example shows how to carry out reasoning using a deployed DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can create 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 developed the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, configures inference parameters, and sends out 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, built-in algorithms, and prebuilt ML solutions that you can release with just a couple of clicks. With SageMaker JumpStart, you can [tailor pre-trained](http://www.vmeste-so-vsemi.ru) [designs](http://101.34.39.123000) to your usage case, with your information, and deploy them into production utilizing either the UI or SDK.<br>
<br>[Deploying](https://git.yinas.cn) DeepSeek-R1 design through SageMaker JumpStart offers two practical techniques: using the user-friendly SageMaker JumpStart UI or implementing programmatically through the [SageMaker Python](http://gitz.zhixinhuixue.net18880) SDK. Let's check out both [methods](https://notitia.tv) to assist you pick the approach that finest fits 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 triggered to produce a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The design web browser shows available models, with details like the provider name and model capabilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card shows key details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if appropriate), suggesting that this model can be signed up with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to [conjure](https://gitea.gm56.ru) up the design<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 model name and service provider details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes [crucial](https://gurjar.app) details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage standards<br>
<br>Before you release the design, it's recommended to review the model details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with deployment.<br>
<br>7. For Endpoint name, use the automatically generated name or create a custom-made one.
8. For example type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, go into the number of instances (default: 1).
[Selecting suitable](https://jobs.careersingulf.com) [instance](http://zhangsheng1993.tpddns.cn3000) types and counts is vital 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 model, we highly advise sticking to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to release the model.<br>
<br>The release process can take numerous minutes to complete.<br>
<br>When release is complete, your endpoint status will change to InService. At this moment, the design is all set to accept reasoning demands through the endpoint. You can keep track of the release progress on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the deployment is complete, you can conjure up the model utilizing a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 utilizing the [SageMaker Python](https://signedsociety.com) SDK, you will need to install the SageMaker Python SDK and make certain you have the required AWS permissions and environment setup. The following is a detailed code example that demonstrates how to deploy and [utilize](https://gitea.dusays.com) DeepSeek-R1 for [reasoning programmatically](https://social.midnightdreamsreborns.com). 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 extra demands against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can likewise utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the Amazon Bedrock console or the API, and [implement](http://dev.nextreal.cn) it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid unwanted charges, complete the actions in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you [deployed](http://www.hakyoun.co.kr) the design utilizing Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, pick Marketplace implementations.
2. In the Managed deployments section, locate the endpoint you want to delete.
3. Select the endpoint, [surgiteams.com](https://surgiteams.com/index.php/User:ErnieGeneff96) and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're deleting the proper implementation: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you deployed will sustain costs if you leave it running. Use the following code to delete the [endpoint](http://gitlab.flyingmonkey.cn8929) if you desire to stop sustaining charges. For more details, see Delete Endpoints and Resources.<br>
<br>Conclusion<br>
<br>In this post, we [explored](https://kaymack.careers) how you can access and deploy the DeepSeek-R1 design utilizing Bedrock Marketplace and [SageMaker JumpStart](https://thisglobe.com). 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 designs, SageMaker JumpStart pretrained models, 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://106.15.120.127:3000) companies construct ingenious services utilizing AWS services and accelerated compute. Currently, he is concentrated on developing strategies for fine-tuning and optimizing the inference efficiency of large language models. In his downtime, Vivek enjoys hiking, viewing films, and attempting different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://git.cocorolife.tw) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](http://aiot7.com:3000) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://classtube.ru) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://propveda.com) hub. She is enthusiastic about developing services that assist consumers accelerate their [AI](https://shankhent.com) journey and unlock company value.<br>