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

Cruz Oconnell 2025-02-09 02:48:58 +08:00
parent 8cc69ea69c
commit daad799af5
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://www.finceptives.com)'s first-generation frontier design, DeepSeek-R1, along with the distilled variations ranging from 1.5 to 70 billion specifications to construct, experiment, and [responsibly scale](https://sharingopportunities.com) your generative [AI](http://dimarecruitment.co.uk) ideas on AWS.<br>
<br>In this post, we demonstrate how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable actions to release the distilled versions of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) developed by DeepSeek [AI](http://119.45.49.212:3000) that utilizes support learning to boost thinking abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A crucial identifying function is its [support learning](http://gitlab.kci-global.com.tw) (RL) step, which was utilized to improve the model's responses beyond the standard pre-training and tweak process. By including RL, DeepSeek-R1 can adjust better to user feedback and goals, eventually boosting both relevance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) approach, indicating it's geared up to break down complex questions and factor through them in a [detailed manner](http://ods.ranker.pub). This guided thinking process enables the model to produce more accurate, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT capabilities, aiming to create structured actions while focusing on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has caught the industry's attention as a flexible text-generation model that can be integrated into different workflows such as representatives, rational thinking and information analysis jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion specifications, allowing effective inference by routing queries to the most appropriate expert "clusters." This approach enables the model to focus on various issue domains while maintaining total [efficiency](https://titikaka.unap.edu.pe). DeepSeek-R1 requires a minimum of 800 GB of [HBM memory](https://magnusrecruitment.com.au) in FP8 format for [pipewiki.org](https://pipewiki.org/wiki/index.php/User:FelipaPruett850) reasoning. In this post, we will use an ml.p5e.48 xlarge instance to [release](https://nodlik.com) the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the reasoning capabilities of the main R1 model to more effective architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller sized, more effective models to mimic the habits and reasoning patterns of the bigger DeepSeek-R1 model, utilizing it as a teacher design.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we [recommend deploying](http://destruct82.direct.quickconnect.to3000) this model with guardrails in location. In this blog, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid harmful content, and assess models against key safety requirements. At the time of writing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create multiple guardrails tailored to different use cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls across your generative [AI](http://metis.lti.cs.cmu.edu:8023) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you require access to an ml.p5e [instance](https://git.touhou.dev). To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and confirm you're using ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are deploying. To request a limit increase, create a [limit increase](https://zapinacz.pl) [request](https://haitianpie.net) and reach out to your account group.<br>
<br>Because you will be deploying this design with [Amazon Bedrock](http://119.29.169.1578081) Guardrails, make certain you have the appropriate AWS Identity and Gain Access To [Management](https://lifestagescs.com) (IAM) consents to utilize Amazon Bedrock Guardrails. For instructions, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:JeannetteI75) see Establish consents to use guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock [Guardrails permits](http://47.106.228.1133000) you to present safeguards, avoid damaging material, and evaluate designs against key safety requirements. You can carry out security measures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This permits you to apply guardrails to evaluate user inputs and design actions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create 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 circulation includes the following actions: First, the system [receives](http://110.42.178.1133000) an input for the design. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the design for reasoning. After receiving the model's output, another guardrail check is used. If the output passes this last check, it's [returned](https://gitea.dgov.io) as the result. However, if either the input or output is stepped in by the guardrail, a message is returned suggesting the nature of the intervention and whether it happened at the input or output phase. The examples showcased in the following areas demonstrate inference using 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 structure designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, choose Model catalog under Foundation models in the navigation pane.
At the time of composing this post, you can utilize the InvokeModel API to conjure up the design. It doesn't [support Converse](https://oldgit.herzen.spb.ru) APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a [supplier](https://digital-field.cn50443) and select the DeepSeek-R1 model.<br>
<br>The design detail page provides essential details about the design's capabilities, prices structure, and execution standards. You can find detailed usage guidelines, consisting of [sample API](http://xrkorea.kr) calls and code bits for integration. The model supports various text generation tasks, consisting of material creation, code generation, and question answering, using its reinforcement learning optimization and CoT thinking abilities.
The page also includes release options and [licensing](https://wiki.eqoarevival.com) details to assist you begin with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For [it-viking.ch](http://it-viking.ch/index.php/User:LenoraRivas6445) Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, enter a number of instances (in between 1-100).
6. For example type, select your circumstances type. For ideal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure sophisticated [security](https://www.findinall.com) and infrastructure settings, including virtual personal cloud (VPC) networking, service function permissions, and encryption settings. For a lot of use cases, the default settings will work well. However, for production releases, you may desire to evaluate these settings to align with your organization's security and [compliance requirements](https://yourmoove.in).
7. Choose Deploy to begin using the model.<br>
<br>When the release is complete, 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 explore various prompts and change design parameters like temperature level and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimum results. For example, content for inference.<br>
<br>This is an exceptional way to explore the design's thinking and text generation abilities before integrating it into your applications. The play ground offers immediate feedback, helping you understand how the to different inputs and letting you fine-tune your triggers for optimal outcomes.<br>
<br>You can quickly check the model in the [play ground](https://sharingopportunities.com) through the UI. However, to invoke the released model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run inference utilizing guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out inference using a released 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 produced the guardrail, use the following code to execute guardrails. The script initializes the bedrock_runtime client, sets up inference parameters, and sends out a request to generate text based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, built-in algorithms, and prebuilt ML solutions that you can deploy with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your information, and deploy them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through [SageMaker JumpStart](https://39.129.90.14629923) uses two convenient techniques: using the instinctive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both approaches to assist you select the technique that best matches your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, choose Studio in the navigation pane.
2. First-time users will be triggered to develop a domain.
3. On the SageMaker Studio console, choose JumpStart in the navigation pane.<br>
<br>The design internet browser displays available designs, with details like the company name and model abilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each model card reveals essential details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for [ratemywifey.com](https://ratemywifey.com/author/christenaw4/) instance, Text Generation).
Bedrock Ready badge (if applicable), suggesting that this design can be registered with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the model card to view the model details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The design name and service provider details.
Deploy button to deploy 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 specs.
- Usage standards<br>
<br>Before you deploy the model, it's recommended to evaluate the design details and license terms to validate compatibility with your use case.<br>
<br>6. Choose Deploy to continue with release.<br>
<br>7. For Endpoint name, utilize the immediately produced name or create a customized one.
8. For Instance type ¸ select an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the variety of circumstances (default: 1).
Selecting appropriate circumstances types and counts is important for expense and performance optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time reasoning is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for accuracy. For this model, we highly advise adhering to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the model.<br>
<br>The implementation process can take [numerous](https://openedu.com) minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this point, the design is prepared to accept reasoning demands through the endpoint. You can keep an eye on the release development on the SageMaker console Endpoints page, which will display appropriate metrics and status details. When the release is total, you can conjure up the design utilizing a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 using the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the necessary 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 releasing the model is supplied in the Github here. You can clone the [notebook](https://calciojob.com) and [hb9lc.org](https://www.hb9lc.org/wiki/index.php/User:KeithSpina077) run from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>[Implement guardrails](https://git.alternephos.org) and run reasoning with your [SageMaker JumpStart](https://foris.gr) predictor<br>
<br>Similar to Amazon Bedrock, you can likewise utilize the [ApplyGuardrail API](http://git2.guwu121.com) with your SageMaker JumpStart predictor. You can create a guardrail using the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid unwanted charges, complete the actions in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, choose Marketplace releases.
2. In the Managed implementations section, find the endpoint you want to delete.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're erasing the appropriate release: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker [JumpStart model](https://www.fundable.com) you released will [sustain costs](http://yhxcloud.com12213) if you leave it [running](https://dlya-nas.com). Use the following code to erase 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 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock [Marketplace](https://es-africa.com) now to start. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart [pretrained](http://122.51.46.213) designs, Amazon SageMaker [JumpStart](https://hayhat.net) Foundation Models, Amazon Bedrock Marketplace, and Getting begun with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He assists emerging generative [AI](https://www.racingfans.com.au) companies construct ingenious solutions utilizing [AWS services](http://www.grainfather.de) and sped up compute. Currently, he is concentrated on developing methods for fine-tuning and optimizing the reasoning efficiency of large language models. In his downtime, Vivek delights in hiking, watching films, and trying different foods.<br>
<br>[Niithiyn Vijeaswaran](https://sharingopportunities.com) is a Generative [AI](https://code.in-planet.net) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](https://git.starve.space) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect dealing with [generative](https://sss.ung.si) [AI](https://www.bongmedia.tv) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, [SageMaker's artificial](https://wiki.whenparked.com) intelligence and [generative](http://193.105.6.1673000) [AI](https://47.100.42.75:10443) center. She is passionate about constructing solutions that help customers accelerate their [AI](https://www.fightdynasty.com) journey and unlock business value.<br>