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

master
Aleisha Vesely 2025-02-22 11:53:23 +08:00
parent 20d554b1e2
commit a7df253163
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted 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://phdjobday.eu)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled variations ranging from 1.5 to 70 billion specifications to build, experiment, and properly scale your generative [AI](http://47.90.83.132:3000) ideas on AWS.<br>
<br>In this post, we show how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps 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](http://39.101.160.11:8099) that uses support finding out to [enhance](https://moztube.com) thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. A crucial identifying function is its [reinforcement](https://www.klaverjob.com) knowing (RL) action, which was used to refine the model's responses beyond the standard pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adapt more successfully to user feedback and objectives, eventually improving both relevance and clearness. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) method, suggesting it's geared up to break down complicated queries and factor through them in a detailed manner. This assisted thinking procedure permits the model to produce more accurate, transparent, [systemcheck-wiki.de](https://systemcheck-wiki.de/index.php?title=Benutzer:FlorianHoutz6) and detailed responses. This design combines RL-based fine-tuning with CoT capabilities, aiming to [generate structured](https://careers.express) responses while concentrating on interpretability and user interaction. With its [wide-ranging abilities](https://alllifesciences.com) DeepSeek-R1 has actually caught the industry's attention as a flexible text-generation model that can be integrated into various workflows such as representatives, rational thinking and data analysis jobs.<br>
<br>DeepSeek-R1 utilizes a [Mixture](http://t93717yl.bget.ru) of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture permits activation of 37 billion parameters, making it possible for effective inference by routing inquiries to the most relevant specialist "clusters." This technique allows the design to focus on various issue domains while maintaining total effectiveness. DeepSeek-R1 requires at least 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning 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 refers to a procedure of training smaller, more effective models to mimic the behavior and thinking patterns of the bigger DeepSeek-R1 model, using it as an instructor model.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we suggest releasing this design with guardrails in place. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid hazardous material, and examine designs against [crucial](https://newborhooddates.com) safety criteria. At the time of writing this blog site, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the [ApplyGuardrail API](https://gitlab.zogop.com). You can create [numerous guardrails](http://www.lucaiori.it) tailored to different use cases and use them to the DeepSeek-R1 design, enhancing user experiences and standardizing security controls throughout your generative [AI](http://httelecom.com.cn:3000) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 model, you require access to an ml.p5e circumstances. To check 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 deploying. To ask for a limitation boost, develop a limit increase request and connect to your account team.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) authorizations to use Amazon Bedrock Guardrails. For instructions, see Establish permissions to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to introduce safeguards, avoid damaging material, and assess models against crucial security requirements. You can execute precaution for the DeepSeek-R1 design utilizing the Amazon Bedrock [ApplyGuardrail API](https://mobidesign.us). This enables you to apply guardrails to evaluate user inputs and design reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop a guardrail utilizing the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The basic circulation involves the following steps: First, the system gets an input for the design. This input is then [processed](https://www.codple.com) through the ApplyGuardrail API. If the input passes the guardrail check, it's sent out to the design for inference. After receiving the design's output, another guardrail check is used. If the output passes this final check, it's returned as the [final outcome](https://hylpress.net). 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](https://houseimmo.com) in the following [sections](https://git.valami.giize.com) show reasoning utilizing 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, 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 use the InvokeModel API to conjure up the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and choose the DeepSeek-R1 design.<br>
<br>The design detail page offers vital details about the design's capabilities, pricing structure, and implementation standards. You can discover detailed usage directions, including sample API calls and [engel-und-waisen.de](http://www.engel-und-waisen.de/index.php/Benutzer:FabianQ0253599) code bits for integration. The design supports numerous text generation tasks, consisting of content production, code generation, and concern answering, utilizing its support learning optimization and CoT thinking [capabilities](https://www.iwatex.com).
The page likewise consists of implementation alternatives and licensing details to assist you get begun with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, choose Deploy.<br>
<br>You will be triggered to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of circumstances, enter a number of instances (between 1-100).
6. For example type, choose your circumstances type. For optimal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure advanced security and infrastructure settings, [consisting](https://tageeapp.com) of virtual private cloud (VPC) networking, service function consents, and encryption settings. For most utilize cases, the default settings will work well. However, for production releases, you may want to evaluate these settings to align with your company's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the implementation is complete, you can test DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive user interface where you can try out different triggers and change design specifications like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum outcomes. For instance, material for reasoning.<br>
<br>This is an outstanding way to check out the model's thinking and text generation abilities before incorporating it into your applications. The play ground offers immediate feedback, assisting you comprehend how the model reacts to different inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can quickly evaluate the model in the play ground 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 using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning utilizing 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 develop the guardrail, see the GitHub repo. After you have actually created the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, sets up reasoning criteria, and sends out a request to produce 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 deploy with simply a couple of 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](http://103.197.204.1633025) DeepSeek-R1 design through SageMaker JumpStart uses two practical approaches: using the instinctive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's explore both techniques to assist you choose the approach that finest fits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps to deploy DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, select Studio in the navigation pane.
2. First-time users will be [triggered](http://47.92.109.2308080) to create a domain.
3. On the SageMaker Studio console, pick JumpStart in the [navigation](https://93.177.65.216) pane.<br>
<br>The model internet browser shows available designs, with details like the supplier name and model abilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 [model card](http://www.raverecruiter.com).
Each design card reveals essential details, including:<br>
<br>- Model name
[- Provider](https://bantooplay.com) name
- Task category (for instance, Text Generation).
badge (if suitable), showing that this design can be signed up with Amazon Bedrock, permitting you to utilize Amazon Bedrock APIs to [conjure](https://tageeapp.com) up the design<br>
<br>5. Choose the model card to see the design details page.<br>
<br>The model details page includes the following details:<br>
<br>- The design name and supplier details.
Deploy button to [release](http://it-viking.ch) the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of essential details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the model, it's advised to examine the design details and license terms to validate compatibility with your use case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, use the immediately generated name or produce a custom one.
8. For Instance type ¸ choose a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the variety of circumstances (default: 1).
Selecting suitable instance types and counts is vital for expense and performance optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time reasoning is [selected](https://remnantstreet.com) by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for precision. For this design, we highly advise sticking to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to deploy the model.<br>
<br>The release procedure can take several minutes to finish.<br>
<br>When release is complete, your [endpoint status](https://gitea.nafithit.com) will alter to InService. At this point, the model is prepared to accept inference requests through the endpoint. You can keep track of the release progress on the SageMaker console Endpoints page, which will display pertinent metrics and status details. When the release is total, you can invoke the design using a [SageMaker runtime](https://gogs.koljastrohm-games.com) client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the [SageMaker Python](https://villahandle.com) SDK<br>
<br>To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will require to set up the SageMaker Python SDK and make certain you have the needed AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to release and utilize DeepSeek-R1 for inference programmatically. The code for releasing the model is provided in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run extra requests against the predictor:<br>
<br>Implement guardrails and run reasoning 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 develop a guardrail using the Amazon Bedrock console or the API, and [execute](http://27.154.233.18610080) it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, complete the actions in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed the design utilizing Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace releases.
2. In the Managed deployments area, locate the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're deleting the right release: 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 costs 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 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, refer to Use Amazon Bedrock [tooling](https://git.tx.pl) 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 [trademarketclassifieds.com](https://trademarketclassifieds.com/user/profile/2774581) Inference at AWS. He assists emerging generative [AI](https://gl.cooperatic.fr) companies construct innovative solutions using AWS services and sped up compute. Currently, he is concentrated on developing techniques for fine-tuning and enhancing the inference efficiency of big language designs. In his downtime, Vivek enjoys hiking, watching films, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://175.6.40.68:8081) Specialist Solutions Architect with the Third-Party Model [Science](https://www.hirecybers.com) group at AWS. His area of focus is AWS [AI](http://42.192.14.135:3000) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](https://peekz.eu) 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://ouptel.com) hub. She is enthusiastic about building options that assist clients accelerate their [AI](http://metis.lti.cs.cmu.edu:8023) journey and unlock business worth.<br>