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

Eleanore Purser 2025-02-22 08:01:14 +08:00
commit 4eaeb2a7aa
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 deploy DeepSeek [AI](https://git.lmh5.com)'s first-generation [frontier](http://harimuniform.co.kr) design, DeepSeek-R1, together with the distilled versions varying from 1.5 to 70 billion specifications to construct, experiment, and properly scale your [AI](https://git.skyviewfund.com) ideas on AWS.<br>
<br>In this post, we demonstrate how to get started with DeepSeek-R1 on Amazon Bedrock Marketplace and [SageMaker JumpStart](https://raisacanada.com). You can follow comparable steps to release the distilled versions of the models also.<br>
<br>[Overview](https://service.aicloud.fit50443) of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big [language model](http://124.223.100.383000) (LLM) established by DeepSeek [AI](https://www.nepaliworker.com) that uses support discovering to enhance thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. An essential identifying feature is its reinforcement knowing (RL) step, which was used to improve the design's reactions beyond the basic pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adjust better to user feedback and objectives, ultimately enhancing both significance and clearness. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) technique, meaning it's geared up to break down complicated queries and reason through them in a detailed way. This [assisted reasoning](http://110.90.118.1293000) [procedure enables](https://www.personal-social.com) the model to produce more precise, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT abilities, aiming to produce structured responses while focusing on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has captured the market's attention as a [flexible](http://82.19.55.40443) text-generation model that can be integrated into various workflows such as representatives, rational reasoning and information interpretation tasks.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion criteria, making it possible for efficient reasoning by routing inquiries to the most appropriate professional "clusters." This technique enables the model to concentrate on various problem domains while maintaining overall efficiency. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge circumstances to release the design. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking abilities of the main R1 design to more effective architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of training smaller sized, more efficient models to imitate the habits and [reasoning patterns](http://git.nikmaos.ru) of the bigger DeepSeek-R1 model, utilizing it as an [instructor model](https://gitlab.companywe.co.kr).<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 model with [guardrails](https://notewave.online) in place. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid hazardous material, and evaluate models against essential safety requirements. At the time of composing this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop several guardrails tailored to various usage cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls across your generative [AI](https://git.ashcloudsolution.com) 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](http://118.190.175.1083000) 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 releasing. To request a limit boost, create a limit increase demand and reach out to your [account](http://125.ps-lessons.ru) group.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) authorizations to utilize Amazon Bedrock Guardrails. For instructions, see Set up consents to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to introduce safeguards, avoid hazardous material, and examine designs against essential safety requirements. You can execute safety procedures for the DeepSeek-R1 model using the Amazon Bedrock [ApplyGuardrail](https://repo.beithing.com) API. This allows you to use guardrails to evaluate user inputs and model responses deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail using the Amazon Bedrock console or the API. For the example code to produce the guardrail, see the GitHub repo.<br>
<br>The basic circulation involves the following steps: First, the system [receives](https://wiki.snooze-hotelsoftware.de) an input for the model. This input is then processed through the [ApplyGuardrail API](https://phpcode.ketofastlifestyle.com). 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 final result. However, if either the input or output is intervened by the guardrail, a message is returned showing the nature of the intervention and whether it occurred 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 gives you access to over 100 popular, emerging, and specialized structure 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, pick Model catalog under Foundation models in the navigation pane.
At the time of composing this post, you can use the InvokeModel API to conjure up the design. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and choose the DeepSeek-R1 model.<br>
<br>The design detail page supplies important details about the design's abilities, pricing structure, and execution guidelines. You can discover detailed use instructions, consisting of sample API calls and code bits for combination. The design supports various text generation tasks, including content creation, code generation, and [garagesale.es](https://www.garagesale.es/author/roseannanas/) question answering, using its support learning optimization and CoT thinking capabilities.
The page also consists of implementation choices and licensing [details](https://www.yozgatblog.com) to help you get going with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, pick Deploy.<br>
<br>You will be prompted to configure the implementation details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, get in an [endpoint](http://47.107.80.2363000) name (between 1-50 alphanumeric characters).
5. For Number of circumstances, go into a number of instances (in between 1-100).
6. For Instance type, pick your instance type. For optimal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up innovative security and infrastructure settings, including virtual [personal](https://git.collincahill.dev) cloud (VPC) networking, service role consents, and file encryption settings. For many use cases, the default settings will work well. However, for production deployments, you may desire to evaluate these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start using the model.<br>
<br>When the deployment is total, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock play area.
8. Choose Open in play area to access an interactive interface where you can explore different prompts and change design parameters like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimum outcomes. For example, content for reasoning.<br>
<br>This is an exceptional method to explore the [design's thinking](https://lekoxnfx.com4000) and text generation capabilities before incorporating it into your applications. The play ground supplies instant feedback, helping you comprehend how the model reacts to different inputs and letting you tweak your prompts for optimum results.<br>
<br>You can quickly check the model in the play area 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 released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning utilizing a deployed DeepSeek-R1 design through Amazon Bedrock [utilizing](https://www.infinistation.com) 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, [utilize](https://koubry.com) the following code to implement guardrails. The script initializes the bedrock_runtime customer, configures inference parameters, and sends out a request to create text based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, integrated algorithms, and prebuilt ML solutions that you can release with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your data, and release them into [production](https://partyandeventjobs.com) using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 practical techniques: utilizing the intuitive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's [explore](http://durfee.mycrestron.com3000) both methods to assist you pick the technique 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, select Studio in the navigation pane.
2. First-time users will be prompted to create a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The design internet browser shows available designs, with details like the company name and design capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each design card reveals essential details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for example, Text Generation).
Bedrock Ready badge (if applicable), suggesting that this model can be signed up with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the model card to see the design details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The model name and company details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of important details, such as:<br>
<br>- Model description.
- License details.
- Technical specifications.
- Usage guidelines<br>
<br>Before you deploy the design, it's recommended to review the model details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with deployment.<br>
<br>7. For Endpoint name, utilize the instantly generated name or produce a custom-made 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 adjust these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for [precision](https://twitemedia.com). For this design, we highly suggest sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to release the design.<br>
<br>The implementation process can take numerous minutes to finish.<br>
<br>When implementation is total, your endpoint status will change to InService. At this moment, the design is ready to accept inference requests through the endpoint. You can keep track of the deployment development on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the release is complete, you can invoke the model using a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 using the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the essential AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to deploy and use DeepSeek-R1 for inference programmatically. The code for deploying the model is provided in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>[Implement guardrails](https://privamaxsecurity.co.ke) and run [inference](http://park8.wakwak.com) 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 develop a guardrail utilizing the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Clean up<br>
<br>To prevent undesirable charges, complete the actions in this section to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the model using Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, choose Marketplace releases.
2. In the Managed releases area, locate the endpoint you wish to delete.
3. Select the endpoint, and [demo.qkseo.in](http://demo.qkseo.in/profile.php?id=998587) on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're erasing 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 [deployed](https://techtalent-source.com) will [sustain costs](https://selfloveaffirmations.net) 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 explored 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 start. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart 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://www.teamusaclub.com) business develop innovative solutions using AWS services and accelerated calculate. Currently, he is concentrated on establishing methods for fine-tuning and enhancing the inference efficiency of large language models. In his spare time, [Vivek delights](https://www.unotravel.co.kr) in treking, viewing movies, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://git.pleasantprogrammer.com) Specialist Solutions Architect with the Third-Party Model [Science team](https://snapfyn.com) at AWS. His area of focus is AWS [AI](https://connectzapp.com) [accelerators](http://101.34.39.123000) (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect dealing with generative [AI](http://47.95.216.250) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://47.107.126.107:3000) center. She is enthusiastic about building options that assist customers accelerate their [AI](https://git.camus.cat) journey and unlock service worth.<br>