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

master
Arlen Haddon 2025-02-16 16:00:41 +00:00
parent 8b2afa006c
commit 050a73aba4
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are [excited](https://social.ppmandi.com) to reveal that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](https://heartbeatdigital.cn)'s first-generation frontier design, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion parameters to develop, experiment, and properly scale your generative [AI](https://scienetic.de) ideas on AWS.<br>
<br>In this post, we demonstrate how to start with DeepSeek-R1 on Amazon Bedrock [Marketplace](https://video.lamsonsaovang.com) and SageMaker JumpStart. You can follow similar actions to release the distilled variations of the models as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](https://kennetjobs.com) that uses support finding out to enhance thinking capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. A crucial identifying feature is its [support learning](https://git.adminkin.pro) (RL) step, which was used to refine the model's reactions beyond the standard pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adapt better to user feedback and objectives, eventually boosting both significance and clearness. In addition, [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:Princess3594) DeepSeek-R1 uses a chain-of-thought (CoT) method, indicating it's equipped to break down [complex queries](http://www.scitqn.cn3000) and factor through them in a detailed manner. This directed reasoning process enables the design to produce more precise, transparent, and detailed answers. This design integrates RL-based [fine-tuning](https://lets.chchat.me) with CoT capabilities, aiming to generate structured actions while focusing on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has captured the industry's attention as a versatile text-generation model that can be incorporated into various workflows such as representatives, sensible [reasoning](http://chkkv.cn3000) and [data interpretation](http://101.33.234.2163000) tasks.<br>
<br>DeepSeek-R1 utilizes a Mixture of [Experts](https://www.e-vinil.ro) (MoE) architecture and is 671 billion criteria in size. The MoE architecture enables activation of 37 billion specifications, making it possible for effective reasoning by routing inquiries to the most appropriate professional "clusters." This [technique permits](http://sehwaapparel.co.kr) the model to concentrate on different issue domains while maintaining total efficiency. DeepSeek-R1 needs 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 supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking abilities of the main R1 design to more [effective architectures](https://timviecvtnjob.com) based on popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller sized, more efficient models to mimic the behavior and thinking patterns of the bigger DeepSeek-R1 model, utilizing it as an instructor model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an [emerging](https://xhandler.com) design, we suggest releasing this design with guardrails in [location](http://120.24.186.633000). In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid hazardous content, and evaluate designs against key security requirements. At the time of writing this blog, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails [supports](https://gitlab.payamake-sefid.com) only the ApplyGuardrail API. You can produce several guardrails tailored to different use cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing security controls across your generative [AI](https://repo.maum.in) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you require access to an ml.p5e instance. To inspect if you have quotas for P5e, open the Service Quotas console and [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:ChantalKopsen2) under AWS Services, select Amazon SageMaker, and confirm you're utilizing 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 releasing. To request a limitation increase, create a limitation boost demand and [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11860868) connect to your account group.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) consents to use Amazon Bedrock Guardrails. For guidelines, see Establish permissions to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, prevent harmful material, and assess models against essential security requirements. You can implement precaution for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and model reactions released 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 general circulation includes the following steps: First, the system gets 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 model for inference. After getting the design'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 showing the nature of the [intervention](http://47.96.131.2478081) and whether it happened at the input or output stage. The examples showcased in the following sections demonstrate reasoning utilizing this API.<br>
<br>Deploy DeepSeek-R1 in 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, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, choose Model catalog 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 does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and select the DeepSeek-R1 design.<br>
<br>The model detail page provides necessary details about the design's abilities, prices structure, and execution standards. You can find detailed usage instructions, consisting of sample API calls and code snippets for combination. The [model supports](http://kuma.wisilicon.com4000) different text generation tasks, consisting of content creation, code generation, and question answering, utilizing its reinforcement discovering optimization and CoT reasoning capabilities.
The page also includes implementation options and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, choose Deploy.<br>
<br>You will be triggered to set up the deployment 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 [wavedream.wiki](https://wavedream.wiki/index.php/User:DannieSalter0) Number of instances, enter a number of instances (in between 1-100).
6. For Instance type, select your circumstances type. For optimal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can configure advanced security and facilities settings, including virtual personal cloud (VPC) networking, service role permissions, and encryption settings. For the majority of use cases, the default settings will work well. However, for production deployments, you may wish to examine these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start utilizing the design.<br>
<br>When the implementation is complete, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in playground to access an interactive interface where you can explore different triggers and adjust model parameters like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimum outcomes. For instance, content for reasoning.<br>
<br>This is an outstanding method to check out the design's reasoning and text generation abilities before integrating it into your applications. The play ground offers instant feedback, assisting you understand how the model reacts to various inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can rapidly check the model in the play area through the UI. However, to conjure up the deployed model programmatically with any Amazon Bedrock APIs, you require to get the [endpoint ARN](http://dibodating.com).<br>
<br>Run inference using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out inference using a released DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can produce 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 produced the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, configures reasoning parameters, and sends a demand to produce text based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>[SageMaker JumpStart](https://supardating.com) is an artificial intelligence (ML) hub with FMs, built-in algorithms, and prebuilt ML options 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 release them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 convenient techniques: using the instinctive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both approaches to assist you pick the approach that best matches your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to deploy DeepSeek-R1 utilizing SageMaker JumpStart:<br>
<br>1. On the SageMaker console, choose Studio in the navigation pane.
2. First-time users will be prompted to create a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The design web browser displays available designs, with details like the service provider name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each [model card](https://theindietube.com) shows crucial details, including:<br>
<br>- Model name
- Provider name
- Task category (for example, Text Generation).
[Bedrock Ready](http://admin.youngsang-tech.com) badge (if relevant), showing that this model can be registered with Amazon Bedrock, permitting you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the design 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 the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes essential details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you deploy the design, it's suggested to evaluate the model details and license terms to validate compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, utilize the instantly produced name or develop a customized one.
8. For [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11880731) example type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of circumstances (default: 1).
Selecting proper circumstances types and counts is essential for cost and performance optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time reasoning is picked by [default](https://www.paknaukris.pro). This is [enhanced](https://maram.marketing) for sustained traffic and low latency.
10. Review all setups for [wiki.whenparked.com](https://wiki.whenparked.com/User:CarenWertheim53) precision. For this model, we strongly recommend adhering to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the design.<br>
<br>The release process can take several minutes to finish.<br>
<br>When implementation is complete, your endpoint status will alter to InService. At this moment, the design is all set to accept reasoning requests through the endpoint. You can monitor the implementation development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the deployment is total, you can invoke the model using a SageMaker runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the necessary AWS approvals and environment setup. The following is a detailed code example that demonstrates how to release and use DeepSeek-R1 for inference programmatically. The code for releasing the design is provided in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run additional demands against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also utilize the ApplyGuardrail API with your SageMaker [JumpStart predictor](http://120.24.213.2533000). You can create a guardrail using the Amazon Bedrock console or the API, and execute it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent unwanted charges, finish the actions in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the model utilizing Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, select Marketplace implementations.
2. In the Managed releases section, locate the [endpoint](http://47.111.72.13001) you wish 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 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 deployed 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.<br>
<br>Conclusion<br>
<br>In this post, [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) we explored how you can access and deploy the DeepSeek-R1 model utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get begun. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting started 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](http://220.134.104.92:8088) business build ingenious solutions using AWS services and accelerated calculate. Currently, he is concentrated on establishing methods for fine-tuning and enhancing the reasoning performance of big language designs. In his spare time, Vivek enjoys hiking, seeing films, and trying various foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://wamc1950.com) Specialist Solutions [Architect](https://4stour.com) with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://pioneercampus.ac.in) accelerators (AWS Neuron). He holds a [Bachelor's degree](https://church.ibible.hk) in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect dealing with generative [AI](http://101.34.66.244:3000) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://kronfeldgit.org) hub. She is passionate about constructing services that help clients accelerate their [AI](https://git.iws.uni-stuttgart.de) journey and unlock organization value.<br>