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

Natasha Brauer 2025-05-30 01:22:20 +08:00
commit d5a5f83729
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled 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://evertonfcfansclub.com)'s first-generation frontier design, DeepSeek-R1, together with the distilled versions ranging from 1.5 to 70 billion specifications to construct, experiment, and properly scale your [generative](http://internetjo.iwinv.net) [AI](https://vagas.grupooportunityrh.com.br) ideas on AWS.<br>
<br>In this post, we show how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to deploy the distilled variations of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) established by DeepSeek [AI](https://git.rggn.org) that uses support finding out to enhance thinking capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. A key distinguishing function is its reinforcement learning (RL) step, which was used to improve the model's responses beyond the standard pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adjust more effectively to user feedback and objectives, eventually enhancing both significance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) approach, [meaning](http://fcgit.scitech.co.kr) it's geared up to break down intricate queries and reason through them in a detailed manner. This guided reasoning process allows the design to produce more precise, transparent, and detailed responses. This model integrates RL-based fine-tuning with CoT capabilities, aiming to generate structured responses while concentrating on [interpretability](https://167.172.148.934433) and user interaction. With its extensive abilities DeepSeek-R1 has actually recorded the market's attention as a versatile text-generation design that can be [incorporated](http://106.52.242.1773000) into different workflows such as agents, sensible thinking and information analysis jobs.<br>
<br>DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion criteria, allowing efficient reasoning by routing queries to the most relevant specialist "clusters." This approach enables the model to concentrate on different 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](http://115.29.48.483000) to release the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking capabilities of the main R1 model to more effective architectures based on [popular](https://soucial.net) open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). [Distillation describes](http://114.115.218.2309005) a procedure of training smaller, more efficient models to simulate the habits and reasoning patterns of the bigger DeepSeek-R1 model, using it as a teacher design.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we advise releasing this design with guardrails in place. In this blog, we will utilize Amazon Bedrock Guardrails to present safeguards, prevent hazardous material, and evaluate models against essential security criteria. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce multiple guardrails tailored to different usage cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls across your generative [AI](http://47.100.72.85:3000) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you need access to an ml.p5e instance. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:CornellRosensten) validate 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 deploying. To ask for a limit boost, create a limitation increase demand and connect to your account team.<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the correct AWS Identity and Gain Access To Management (IAM) approvals to use Amazon Bedrock [Guardrails](https://www.mapsisa.org). For guidelines, [wiki.myamens.com](http://wiki.myamens.com/index.php/User:CarinStrachan9) see Establish permissions to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, prevent damaging material, and examine designs against crucial security requirements. You can carry out precaution for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This permits you to apply guardrails to evaluate user inputs and model reactions released 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 develop the guardrail, see the [GitHub repo](https://git.gocasts.ir).<br>
<br>The basic circulation includes the following steps: First, the system receives 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 model's output, another guardrail check is applied. 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 happened at the input or output phase. The examples showcased in the following sections demonstrate reasoning using 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 foundation designs (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 brochure under Foundation designs in the navigation pane.
At the time of composing this post, you can use the InvokeModel API to invoke the design. It does not support Converse APIs and other [Amazon Bedrock](http://repo.bpo.technology) tooling.
2. Filter for DeepSeek as a [supplier](https://git.fracturedcode.net) and select the DeepSeek-R1 design.<br>
<br>The model detail page supplies important details about the model's capabilities, rates structure, and application standards. You can find detailed usage guidelines, consisting of sample API calls and code snippets for combination. The [design supports](https://www.genbecle.com) various text generation tasks, consisting of material development, code generation, and question answering, using its support learning optimization and CoT thinking capabilities.
The page likewise consists of implementation alternatives and licensing details to help you begin with DeepSeek-R1 in your applications.
3. To start using DeepSeek-R1, pick Deploy.<br>
<br>You will be prompted to configure the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (in between 1-50 alphanumeric characters).
5. For Number of instances, get in a number of circumstances (in between 1-100).
6. For example type, pick your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure innovative security and facilities settings, consisting of virtual private cloud (VPC) networking, service role consents, and encryption settings. For the majority of use cases, the default settings will work well. However, for production releases, you might wish to review these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the release is complete, you can test DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive interface where you can explore various triggers and change model criteria like temperature level and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for optimal results. For instance, content for inference.<br>
<br>This is an exceptional method to check out the design's reasoning and text generation capabilities before integrating it into your applications. The play area offers instant feedback, helping you understand how the model reacts to numerous inputs and [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:MelanieSchwindt) letting you tweak your triggers for optimum outcomes.<br>
<br>You can quickly test the design in the playground through the UI. However, to conjure up the deployed design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run [reasoning](https://kahkaham.net) using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform reasoning utilizing a released DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. 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. After you have developed the guardrail, use the following code to implement guardrails. The script initializes the bedrock_runtime client, configures reasoning specifications, and sends a request to [produce text](http://wrs.spdns.eu) based on a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center with FMs, built-in algorithms, and prebuilt ML services that you can release with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your information, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through [SageMaker JumpStart](https://careers.indianschoolsoman.com) uses two hassle-free methods: using the instinctive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's explore both to assist you pick the method that best suits 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, pick Studio in the [navigation](https://git.sortug.com) pane.
2. First-time users will be triggered to create a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The model web browser shows available models, with details like the supplier name and design capabilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 [model card](https://blog.giveup.vip).
Each design card shows crucial details, including:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if suitable), indicating that this design can be signed up with Amazon Bedrock, permitting you to utilize Amazon [Bedrock](http://xn--vk1b975azoatf94e.com) APIs to invoke the model<br>
<br>5. Choose the design card to view the model 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 includes crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you deploy the model, it's [advised](https://heatwave.app) to review the design details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, use the automatically created name or produce a custom-made one.
8. For example [type ¸](http://112.74.93.6622234) pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, get in the number of circumstances (default: 1).
Selecting suitable instance types and counts is important for expense and efficiency optimization. Monitor your implementation to adjust these settings as needed.Under Inference type, Real-time reasoning is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all configurations for precision. For this design, we strongly advise adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. Choose Deploy to deploy the design.<br>
<br>The deployment process can take [numerous](https://acetamide.net) minutes to complete.<br>
<br>When implementation is total, your endpoint status will change to InService. At this point, the model is prepared to accept reasoning demands through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the deployment is total, you can invoke the design using a SageMaker runtime customer and incorporate 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 require to install the SageMaker Python SDK and make certain you have the needed AWS consents 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 model is offered in the Github here. You can clone the notebook and [forum.altaycoins.com](http://forum.altaycoins.com/profile.php?id=1078448) run from SageMaker Studio.<br>
<br>You can run additional 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 produce a guardrail using the Amazon Bedrock console or the API, and implement it as shown in the following code:<br>
<br>Clean up<br>
<br>To [prevent undesirable](https://securityjobs.africa) charges, finish the actions in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the model utilizing Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, [select Marketplace](http://103.140.54.203000) releases.
2. In the Managed releases section, find the endpoint you want to erase.
3. Select the endpoint, and on the Actions menu, [pick Delete](https://git.danomer.com).
4. Verify the endpoint details to make certain you're deleting the proper release: 1. [Endpoint](https://media.motorsync.co.uk) name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you deployed will sustain costs if you leave it [running](https://git.iovchinnikov.ru). 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 explored 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 begin. For [it-viking.ch](http://it-viking.ch/index.php/User:LatishaElizondo) more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, [gratisafhalen.be](https://gratisafhalen.be/author/deedelgado/) SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting begun 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://kryza.network) companies develop ingenious solutions utilizing AWS services and sped up calculate. Currently, he is concentrated on establishing techniques for fine-tuning and enhancing the inference efficiency of large [language](https://healthcarejob.cz) models. In his downtime, Vivek delights in treking, viewing films, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://www.laciotatentreprendre.fr) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His location of focus is AWS [AI](https://www.opentx.cz) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect dealing with generative [AI](http://47.98.226.240:3000) with the Third-Party Model [Science](https://thankguard.com) 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://www.rozgar.site) center. She is enthusiastic about developing services that help consumers accelerate their [AI](https://theindietube.com) journey and [unlock organization](http://8.141.83.2233000) value.<br>