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

2025-02-15 17:37:01 +09:00
parent 1e28410a64
commit c037eb6d5f

@ -0,0 +1,93 @@
<br>Today, we are delighted to announce 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://pelangideco.com)'s first-generation frontier model, DeepSeek-R1, along with the distilled variations ranging from 1.5 to 70 billion specifications to construct, experiment, and responsibly scale your generative [AI](https://git.micahmoore.io) concepts on AWS.<br>
<br>In this post, we show how to start with DeepSeek-R1 on Amazon Bedrock [Marketplace](http://118.190.145.2173000) and SageMaker JumpStart. You can follow similar actions to deploy the distilled versions of the models too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) established by DeepSeek [AI](https://complete-jobs.co.uk) that utilizes support discovering to enhance reasoning capabilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A key identifying function is its support learning (RL) step, which was utilized to improve the model's reactions beyond the basic pre-training and fine-tuning procedure. By integrating RL, DeepSeek-R1 can adjust more efficiently to user feedback and objectives, ultimately boosting both relevance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, [systemcheck-wiki.de](https://systemcheck-wiki.de/index.php?title=Benutzer:ClaraKimbrell) meaning it's geared up to break down [complicated questions](https://arbeitswerk-premium.de) and reason through them in a detailed way. This directed reasoning process permits the model to produce more accurate, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT capabilities, aiming to generate structured responses while [concentrating](http://101.34.228.453000) on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has caught the market's attention as a versatile text-generation model that can be incorporated into different workflows such as representatives, sensible thinking and data analysis tasks.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture permits activation of 37 billion specifications, allowing effective reasoning by routing queries to the most pertinent specialist "clusters." This technique permits the design to specialize in different issue domains while maintaining general performance. DeepSeek-R1 requires at least 800 GB of HBM memory in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge circumstances to deploy the model. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model to more effective architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller sized, more effective designs to simulate the habits and [wiki.rolandradio.net](https://wiki.rolandradio.net/index.php?title=User:FernandoKinross) reasoning patterns of the larger DeepSeek-R1 design, using it as an instructor [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:DonWickens347) model.<br>
<br>You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we recommend deploying this design with guardrails in . In this blog site, we will use Amazon Bedrock Guardrails to present safeguards, avoid damaging material, and examine models against essential safety [requirements](http://221.131.119.210030). At the time of composing this blog, for DeepSeek-R1 [deployments](https://www.jobsires.com) on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create several [guardrails tailored](https://bytes-the-dust.com) to different usage cases and use them to the DeepSeek-R1 design, improving user experiences and standardizing safety controls throughout your generative [AI](https://git.antonshubin.com) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, 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 confirm you're utilizing 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 request a [limitation](https://hortpeople.com) increase, create a limit boost request and connect to your account team.<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) permissions to utilize Amazon Bedrock Guardrails. For directions, see Set up permissions to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to present safeguards, prevent hazardous content, and evaluate models against key safety criteria. You can carry out precaution for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to evaluate user inputs and model responses released on Amazon Bedrock Marketplace and SageMaker JumpStart. 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.<br>
<br>The general circulation includes the following actions: 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 out to the design 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 stepped in by the guardrail, a message is returned indicating the nature of the intervention and whether it occurred at the input or output stage. The [examples showcased](http://201.17.3.963000) in the following areas [demonstrate inference](http://218.17.2.1033000) using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock [Marketplace](https://git.jackyu.cn) offers 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 steps:<br>
<br>1. On the Amazon Bedrock console, pick Model catalog under Foundation designs in the navigation pane.
At the time of writing this post, you can utilize the InvokeModel API to conjure up the design. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a supplier and select the DeepSeek-R1 design.<br>
<br>The design detail page offers essential details about the design's capabilities, prices structure, and implementation standards. You can find detailed usage instructions, consisting of [sample API](https://diskret-mote-nodeland.jimmyb.nl) calls and code bits for combination. The design supports different text generation tasks, including material development, code generation, and concern answering, utilizing its reinforcement finding out optimization and CoT thinking abilities.
The page likewise includes implementation alternatives and licensing details to help you begin with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be triggered to configure the implementation details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, get in a number of instances (in between 1-100).
6. For example type, pick your circumstances type. For optimal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested.
Optionally, you can set up sophisticated security and infrastructure settings, including virtual personal cloud (VPC) networking, service role permissions, and file encryption settings. For the majority of use cases, the default settings will work well. However, for production implementations, you may want to evaluate these settings to align with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the model.<br>
<br>When the implementation is total, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in playground to access an interactive interface where you can explore different triggers and change design criteria like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for ideal outcomes. For example, content for inference.<br>
<br>This is an outstanding way to explore the design's reasoning and text generation abilities before incorporating it into your applications. The playground provides instant feedback, assisting you comprehend how the model reacts to different inputs and [letting](https://www.e-vinil.ro) you tweak your prompts for optimum outcomes.<br>
<br>You can rapidly evaluate the model in the play ground through the UI. However, to conjure up the deployed design programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning utilizing a deployed DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can produce a [guardrail utilizing](http://www.amrstudio.cn33000) the Amazon [Bedrock console](https://www.anetastaffing.com) or the API. For the example code to develop the guardrail, see the GitHub repo. After you have actually developed the guardrail, use the following code to execute guardrails. The script [initializes](http://globalk-foodiero.com) the bedrock_runtime client, sets up reasoning criteria, [raovatonline.org](https://raovatonline.org/author/angelicadre/) 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](http://git.jzcure.com3000) ML services that you can deploy with simply 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 utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart uses 2 convenient approaches: utilizing the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's explore both techniques to assist you select the approach that best matches your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, pick 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 model browser shows available models, with details like the provider name and design abilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each design card reveals crucial details, consisting of:<br>
<br>- Model name
- Provider name
- Task classification (for example, [raovatonline.org](https://raovatonline.org/author/antoniocope/) Text Generation).
Bedrock Ready badge (if applicable), indicating that this model can be signed up with Amazon Bedrock, permitting you to utilize Amazon [Bedrock APIs](https://healthcarestaff.org) to conjure up the model<br>
<br>5. Choose the model card to view the design details page.<br>
<br>The design details page includes the following details:<br>
<br>- The design name and service provider details.
Deploy button to [release](https://ivebo.co.uk) the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes important details, such as:<br>
<br>- Model description.
- License details.
[- Technical](http://101.43.151.1913000) specs.
- Usage guidelines<br>
<br>Before you release the design, it's advised to review the design details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with release.<br>
<br>7. For Endpoint name, use the instantly produced name or develop a custom one.
8. For Instance type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of circumstances (default: 1).
Selecting appropriate instance types and counts is essential for cost and efficiency optimization. Monitor your deployment to adjust these settings as needed.Under Inference type, Real-time inference is picked by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for precision. For this model, we highly advise sticking to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to deploy the design.<br>
<br>The deployment process can take numerous minutes to finish.<br>
<br>When implementation is complete, your endpoint status will alter to InService. At this point, the design is prepared to accept reasoning requests through the [endpoint](https://www.jobsires.com). You can keep track of the release development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the release is complete, you can conjure up the design utilizing a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using 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 essential AWS consents 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 design is offered in the Github here. You can clone the note pad 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 also utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the Amazon Bedrock console or the API, and implement it as [displayed](https://oyotunji.site) in the following code:<br>
<br>Clean up<br>
<br>To prevent undesirable charges, finish the [actions](https://arbeitswerk-premium.de) 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 models in the navigation pane, pick Marketplace releases.
2. In the Managed deployments area, locate the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're [deleting](https://sowjobs.com) the correct implementation: 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 costs 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, we checked out how you can access and release the DeepSeek-R1 model using 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 models, Amazon [SageMaker JumpStart](https://beta.hoofpick.tv) Foundation Models, Amazon Bedrock Marketplace, and Starting 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](https://youtubegratis.com) companies develop innovative options utilizing AWS services and sped up calculate. Currently, he is concentrated on establishing techniques for fine-tuning and enhancing the reasoning efficiency of large language designs. In his leisure time, Vivek delights in treking, viewing movies, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://ja7ic.dxguy.net) Specialist Solutions Architect with the [Third-Party Model](http://peterlevi.com) [Science](http://109.195.52.923000) group at AWS. His area of focus is AWS [AI](http://47.103.29.129:3000) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect dealing with generative [AI](https://www.anetastaffing.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://moojijobs.com) hub. She is enthusiastic about building services that help clients accelerate their [AI](https://job.da-terascibers.id) journey and unlock organization value.<br>