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

master
Zack Karpinski 2025-02-18 04:01:59 +00:00
commit 1ebababc35
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 deploy DeepSeek [AI](https://intgez.com)'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://wrs.spdns.eu) ideas on AWS.<br>
<br>In this post, we show how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can [follow comparable](http://www.grainfather.eu) actions to release the distilled versions of the models as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) established by DeepSeek [AI](http://133.242.131.226:3003) that utilizes support finding out to [boost thinking](http://47.108.182.667777) capabilities through a multi-stage training procedure from a DeepSeek-V3[-Base structure](https://www.allclanbattles.com). A key distinguishing function is its reinforcement knowing (RL) action, which was utilized to fine-tune the design's responses beyond the basic pre-training and fine-tuning procedure. By incorporating RL, DeepSeek-R1 can adjust better to user feedback and objectives, ultimately boosting both relevance and clearness. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) method, meaning it's geared up to break down complicated inquiries and reason through them in a detailed way. This guided reasoning process enables the model to produce more accurate, transparent, and detailed responses. This model combines RL-based fine-tuning with CoT abilities, aiming to produce structured actions while concentrating on interpretability and user interaction. With its comprehensive capabilities DeepSeek-R1 has recorded the industry's attention as a versatile text-generation model that can be incorporated into different workflows such as representatives, logical reasoning and data analysis jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion parameters, allowing effective reasoning by routing questions to the most pertinent expert "clusters." This approach enables the model to concentrate on different issue domains while maintaining general efficiency. DeepSeek-R1 needs 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 release the design. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking abilities 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 refers to a process of training smaller, more effective designs to simulate the behavior and thinking patterns of the larger DeepSeek-R1 model, utilizing it as a teacher model.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we suggest releasing this design with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid damaging material, and assess models against key security requirements. At the time of composing this blog site, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can create multiple guardrails tailored to different use cases and apply them to the DeepSeek-R1 design, improving user experiences and standardizing safety controls across your generative [AI](https://glhwar3.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 [wavedream.wiki](https://wavedream.wiki/index.php/User:LanSeyler65095) P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and confirm 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 [deploying](http://109.195.52.923000). To ask for a limit increase, develop a limitation increase demand and reach out to your account team.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the proper AWS Identity and Gain Access To Management (IAM) authorizations to use Amazon Bedrock Guardrails. For guidelines, see Set up consents to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, prevent harmful material, and evaluate models against essential safety criteria. You can execute precaution for the DeepSeek-R1 model utilizing the [Amazon Bedrock](https://www.noagagu.kr) ApplyGuardrail API. This enables you to use guardrails to examine user inputs and design actions released on [Amazon Bedrock](http://124.16.139.223000) 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 flow involves the following steps: First, the system [receives](https://bahnreise-wiki.de) an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the model for reasoning. After [receiving](https://www.fundable.com) the design's output, another guardrail check is used. If the output passes this last check, it's returned as the final result. However, if either the input or output is intervened by the guardrail, a message is returned suggesting the nature of the intervention and whether it took place at the input or [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:Kenny57356) output stage. The examples showcased in the following sections demonstrate inference using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, emerging, and specialized foundation models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:<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 invoke the design. 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 capabilities, pricing structure, and application guidelines. You can find detailed usage guidelines, including sample API calls and code snippets for [integration](https://igita.ir). The model supports numerous text generation tasks, including material production, code generation, and [concern](http://internetjo.iwinv.net) answering, utilizing its reinforcement learning optimization and CoT reasoning abilities.
The page likewise includes release choices and licensing details to assist you begin with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, pick 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 (between 1-50 alphanumeric characters).
5. For Number of circumstances, enter a number of instances (in between 1-100).
6. For example type, select your circumstances type. For ideal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can set up sophisticated security and facilities settings, consisting of virtual personal cloud (VPC) networking, service function consents, and file encryption settings. For the majority of use cases, the default settings will work well. However, for production releases, you may wish to review these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the release is complete, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive user interface where you can experiment with different prompts and change design parameters like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal outcomes. For example, content for reasoning.<br>
<br>This is an outstanding way to check out the model's reasoning and [it-viking.ch](http://it-viking.ch/index.php/User:ConnieHebert) text generation capabilities before incorporating it into your applications. The play area offers instant feedback, helping you understand how the model responds to various inputs and letting you tweak your prompts for ideal outcomes.<br>
<br>You can quickly test the design in the playground through the UI. However, to invoke the released model programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform inference utilizing a deployed DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. 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. After you have actually developed the guardrail, utilize the following code to implement guardrails. The script initializes the bedrock_runtime customer, sets up [inference](https://dalilak.live) criteria, and sends a request to [produce text](https://git.mista.ru) based on a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial [intelligence](https://vhembedirect.co.za) (ML) center with FMs, integrated algorithms, and [prebuilt](https://gitea.mierzala.com) ML solutions that you can deploy with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained [designs](https://nerm.club) to your usage case, with your data, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 hassle-free methods: using the intuitive SageMaker JumpStart UI or carrying out programmatically through the [SageMaker Python](https://git.joystreamstats.live) SDK. Let's check out both methods to help you select the method that best fits your requirements.<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, 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 displays available designs, with details like the company name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each design card shows essential details, including:<br>
<br>- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if appropriate), indicating that this design can be registered with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the model card to see the model details page.<br>
<br>The design details page includes the following details:<br>
<br>- The model name and [company details](https://www.50seconds.com).
Deploy button to deploy the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you deploy the design, it's advised to evaluate the model details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, utilize the immediately created name or [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:MaeLinderman7) produce a custom one.
8. For example type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For [Initial](https://miderde.de) circumstances count, get in the variety of circumstances (default: 1).
Selecting appropriate instance types and counts is crucial for cost and performance optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time reasoning is picked by default. This is enhanced for sustained traffic and low .
10. Review all setups for accuracy. For this model, we strongly advise sticking to [SageMaker JumpStart](https://rocksoff.org) default settings and making certain that network isolation remains in location.
11. Choose Deploy to release the model.<br>
<br>The implementation process can take numerous minutes to finish.<br>
<br>When deployment is complete, your endpoint status will alter to InService. At this point, the design is ready to accept reasoning demands through the endpoint. You can keep an eye on the deployment progress on the SageMaker console Endpoints page, [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:VCEElizabet) which will display pertinent metrics and status details. When the deployment is complete, you can invoke the design utilizing a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get begun with DeepSeek-R1 using the SageMaker Python SDK, you will require 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 shows how to release and utilize DeepSeek-R1 for reasoning programmatically. The code for releasing the design is provided in the Github here. You can clone the notebook and range from SageMaker Studio.<br>
<br>You can run additional demands against the predictor:<br>
<br>Implement guardrails and run reasoning 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 using the Amazon Bedrock console or the API, and execute it as shown in the following code:<br>
<br>Tidy up<br>
<br>To prevent unwanted charges, finish the steps in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the model using Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, pick Marketplace releases.
2. In the Managed deployments area, locate the [endpoint](https://atomouniversal.com.br) you wish to erase.
3. Select the endpoint, and on the Actions menu, [select Delete](https://lekoxnfx.com4000).
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 released will sustain costs if you leave it [running](https://gogs.lnart.com). Use the following code to erase the endpoint if you want 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 deploy the DeepSeek-R1 model utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to begin. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker [JumpStart Foundation](http://wcipeg.com) 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://www.fionapremium.com) [companies construct](http://120.55.164.2343000) ingenious options using AWS services and sped up calculate. Currently, he is concentrated on [developing techniques](https://www.shopes.nl) for fine-tuning and optimizing the [reasoning efficiency](https://coding.activcount.info) of big language designs. In his spare time, Vivek takes pleasure in hiking, enjoying motion pictures, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://dandaelitetransportllc.com) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](http://code.bitahub.com) 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](http://omkie.com:3000) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://gkpjobs.com) hub. She is passionate about constructing solutions that help [consumers accelerate](https://visualchemy.gallery) their [AI](http://git.thinkpbx.com) journey and unlock service worth.<br>