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

Tressa Borowski 2025-03-12 04:28:16 +08:00
commit 63dcf89eda
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are delighted to announce 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://matchmaderight.com)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled variations ranging from 1.5 to 70 billion specifications to develop, experiment, and responsibly scale your generative [AI](https://gitlab.digineers.nl) ideas on AWS.<br>
<br>In this post, we show how to get begun with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to release the [distilled versions](https://39.129.90.14629923) of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) by DeepSeek [AI](http://stay22.kr) that uses reinforcement discovering to enhance reasoning abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A crucial distinguishing function is its support learning (RL) action, which was utilized to fine-tune the design's reactions beyond the standard pre-training and fine-tuning procedure. By integrating RL, DeepSeek-R1 can adapt more efficiently to user feedback and goals, eventually improving both significance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) approach, implying it's geared up to break down intricate inquiries and factor through them in a detailed manner. This assisted reasoning process allows the design to produce more accurate, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT abilities, aiming to generate structured reactions while focusing on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has recorded the industry's attention as a flexible text-generation model that can be integrated into different workflows such as agents, sensible reasoning and information interpretation jobs.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion parameters, enabling [efficient reasoning](https://www.basketballshoecircle.com) by routing questions to the most pertinent expert "clusters." This method allows the design 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 use an ml.p5e.48 xlarge circumstances to deploy the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the [reasoning capabilities](https://lepostecanada.com) of the main R1 model to more efficient architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and [wiki.lafabriquedelalogistique.fr](https://wiki.lafabriquedelalogistique.fr/Discussion_utilisateur:SelenaBaylebridg) 70B). Distillation describes a procedure of training smaller sized, more efficient designs to simulate the behavior and thinking patterns of the bigger DeepSeek-R1 design, utilizing 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 model, we suggest deploying this design with guardrails in location. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent damaging material, and examine models against essential security criteria. At the time of [writing](https://xn--939a42kg7dvqi7uo.com) this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce numerous guardrails tailored to various usage cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls across your generative [AI](https://asteroidsathome.net) applications.<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose 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 deploying. To request a limit increase, produce a limit increase demand and connect to your account group.<br>
<br>Because you will be deploying this design with [Amazon Bedrock](https://satyoptimum.com) Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) approvals to use Amazon Bedrock Guardrails. For guidelines, see [Establish permissions](http://123.60.19.2038088) to use guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to introduce safeguards, avoid hazardous material, and [evaluate models](http://gitlab.awcls.com) against crucial security requirements. You can implement safety measures for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to assess user inputs and model actions released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can create 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 general flow involves the following actions: First, the system gets an input for the model. 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 receiving the design's output, another guardrail check is applied. 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 showing the nature of the intervention and whether it took place at the input or output phase. The examples showcased in the following areas show inference utilizing 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 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, pick Model brochure under Foundation models in the navigation pane.
At the time of [composing](https://hireforeignworkers.ca) this post, you can utilize the InvokeModel API to invoke the design. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and pick the DeepSeek-R1 design.<br>
<br>The model detail page offers important details about the design's abilities, prices structure, and implementation guidelines. You can find detailed usage guidelines, consisting of sample API calls and code snippets for integration. The design supports different text generation jobs, consisting of material production, code generation, and question answering, utilizing its support learning optimization and CoT thinking abilities.
The page likewise includes implementation options and licensing details to help you get started with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to configure the [release details](https://www.rozgar.site) 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 circumstances, enter a number of instances (between 1-100).
6. For example type, select your circumstances type. For optimal performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure sophisticated security and facilities settings, consisting of [virtual personal](http://gitlab.code-nav.cn) cloud (VPC) networking, service role approvals, and file encryption settings. For a lot of use cases, the default settings will work well. However, for [production](http://1.12.255.88) releases, you might want to examine 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 release is complete, you can evaluate DeepSeek-R1's abilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive user interface where you can try out different prompts and adjust model criteria like temperature level and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal outcomes. For example, content for inference.<br>
<br>This is an outstanding method to check out the design's reasoning and text generation capabilities before incorporating it into your applications. The play area offers instant feedback, assisting you understand how the design reacts to various inputs and letting you fine-tune your [prompts](https://privamaxsecurity.co.ke) for optimum outcomes.<br>
<br>You can quickly check the model in the play area through the UI. However, to conjure up the released model programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run [inference utilizing](https://gogs.kakaranet.com) guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to carry out inference utilizing a released DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can develop a [guardrail](https://jobflux.eu) using the Amazon Bedrock console or the API. For the example code to [develop](https://gitea.gconex.com) the guardrail, see the GitHub repo. After you have actually created the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime customer, sets up reasoning criteria, and sends 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 deploy them into [production](https://kol-jobs.com) using either the UI or SDK.<br>
<br>[Deploying](http://121.40.234.1308899) DeepSeek-R1 design through SageMaker JumpStart offers two practical approaches: using the user-friendly SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both methods to help you select the method that finest matches your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to release DeepSeek-R1 utilizing 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 web browser displays available designs, with details like the service provider name and model capabilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each model [card reveals](https://wikitravel.org) essential details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if suitable), indicating that this design can be signed up with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to [conjure](https://jobs.ofblackpool.com) up the design<br>
<br>5. Choose the [design card](http://gitlab.hanhezy.com) to view the model details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The design name and provider details.
Deploy button to release the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes important details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the design, it's advised to evaluate the design details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, utilize the automatically generated name or create a custom-made one.
8. For example type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the number of [instances](https://duyurum.com) (default: 1).
Selecting proper instance types and counts is essential for expense and performance optimization. Monitor your [deployment](https://code.smolnet.org) to adjust these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is optimized for [sustained traffic](https://event.genie-go.com) and low latency.
10. Review all setups for precision. For this model, we strongly advise adhering to SageMaker JumpStart default settings and making certain that [network](https://39.129.90.14629923) seclusion remains in location.
11. Choose Deploy to deploy the model.<br>
<br>The deployment process can take several minutes to finish.<br>
<br>When deployment is total, your endpoint status will change to InService. At this moment, the model is prepared to accept reasoning requests through the endpoint. You can monitor the implementation development on the SageMaker console Endpoints page, which will display appropriate metrics and status details. When the implementation is total, you can conjure up the design utilizing 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 utilizing 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](https://andonovproltd.com). The code for releasing the model is supplied in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run additional requests against the predictor:<br>
<br>Implement guardrails and run inference with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail using the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, complete the steps in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you deployed the model utilizing Amazon Bedrock Marketplace, [hb9lc.org](https://www.hb9lc.org/wiki/index.php/User:Lawerence56N) complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace releases.
2. In the Managed implementations section, find the endpoint you desire to erase.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're erasing the appropriate 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 will sustain expenses if you leave it running. Use the following code to erase 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 checked out 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 get started. For more details, describe Use Amazon [Bedrock tooling](https://git.manu.moe) with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Beginning 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](http://git.zltest.com.tw:3333) companies construct innovative options utilizing AWS services and sped up calculate. Currently, he is focused on establishing methods for fine-tuning and enhancing the reasoning performance of big language designs. In his downtime, Vivek delights in hiking, seeing movies, and attempting different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://kpt.kptyun.cn:3000) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](https://www.kritterklub.com) [accelerators](https://cvmobil.com) (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect working on generative [AI](https://hcp.com.gt) with the Third-Party Model Science team at AWS.<br>
<br>[Banu Nagasundaram](http://124.222.181.1503000) leads product, engineering, and [strategic partnerships](https://zurimeet.com) for [yewiki.org](https://www.yewiki.org/User:BillKanode70106) Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://ospitalierii.ro) hub. She is passionate about building solutions that assist consumers accelerate their [AI](https://tradingram.in) journey and unlock organization value.<br>