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

Alonzo Searcy 2025-04-09 21:17:28 +08:00
commit 5c71a812e3
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are excited 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 release DeepSeek [AI](http://120.24.213.253:3000)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled versions ranging from 1.5 to 70 billion criteria to build, experiment, and properly scale your generative [AI](http://xunzhishimin.site:3000) concepts on AWS.<br>
<br>In this post, we demonstrate how to get begun with DeepSeek-R1 on Amazon Bedrock Marketplace and [SageMaker JumpStart](http://120.26.108.2399188). You can follow similar steps to deploy the distilled variations of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) [established](https://amigomanpower.com) by DeepSeek [AI](https://ideezy.com) that uses support finding out to enhance thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. An essential identifying [function](https://duyurum.com) is its reinforcement knowing (RL) action, which was used to fine-tune the design's reactions beyond the standard pre-training and fine-tuning procedure. By integrating RL, DeepSeek-R1 can adapt better to user feedback and objectives, eventually enhancing both relevance and [clearness](https://itheadhunter.vn). In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, implying it's equipped to break down complex inquiries and factor through them in a detailed manner. This directed reasoning procedure enables the model to produce more accurate, transparent, and detailed answers. This design integrates RL-based [fine-tuning](https://kennetjobs.com) with CoT capabilities, aiming to generate structured reactions while focusing on interpretability and user interaction. With its wide-ranging capabilities DeepSeek-R1 has captured the market's attention as a versatile text-generation design that can be integrated into various workflows such as agents, sensible thinking and information analysis jobs.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture allows activation of 37 billion parameters, making it possible for efficient inference by routing questions to the most relevant professional "clusters." This approach permits the model to focus on various issue domains while maintaining general efficiency. DeepSeek-R1 requires a minimum of 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](https://git.andert.me).<br>
<br>DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model to more based on popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller, more efficient models to imitate the behavior and reasoning patterns of the bigger DeepSeek-R1 design, using it as a teacher model.<br>
<br>You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we suggest deploying this model with guardrails in place. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid damaging material, and examine designs against key safety requirements. At the time of composing this blog site, [demo.qkseo.in](http://demo.qkseo.in/profile.php?id=1096769) for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can create several guardrails tailored to different use cases and use them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls throughout your [generative](http://sdongha.com) [AI](https://avicii.blog) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you require access to an ml.p5e instance. To examine if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and validate 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 releasing. To ask for a limit boost, create a limit boost [request](https://igita.ir) and reach out to your account group.<br>
<br>Because you will be deploying this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) permissions to utilize Amazon Bedrock Guardrails. For instructions, see Establish approvals to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, avoid damaging material, and assess models against key security criteria. You can execute precaution for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to examine user inputs and model reactions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop 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 basic circulation includes 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 to the design for reasoning. After receiving the design's output, another guardrail check is used. If the output passes this final 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 occurred at the input or output phase. The examples showcased in the following areas demonstrate reasoning utilizing 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 structure models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following actions:<br>
<br>1. On the [Amazon Bedrock](https://gitlab.profi.travel) console, select Model catalog under Foundation models in the navigation pane.
At the time of writing this post, you can utilize the InvokeModel API to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and choose the DeepSeek-R1 model.<br>
<br>The design detail page supplies vital details about the design's abilities, prices structure, and implementation standards. You can find detailed use instructions, including sample API calls and code snippets for integration. The design supports various text generation jobs, consisting of content creation, code generation, and question answering, using its reinforcement learning optimization and CoT reasoning capabilities.
The page likewise consists of implementation alternatives and licensing details to assist you begin with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to set up the implementation details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, enter a variety of instances (between 1-100).
6. For Instance type, select your circumstances type. For ideal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up sophisticated security and infrastructure settings, consisting of virtual personal cloud (VPC) networking, [service role](https://reklama-a5.by) permissions, and file encryption settings. For most utilize cases, the default settings will work well. However, for production implementations, you might wish to examine these [settings](https://www.noagagu.kr) to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the deployment is complete, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive user interface where you can explore different triggers and adjust model criteria like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat template for ideal outcomes. For instance, content for reasoning.<br>
<br>This is an excellent way to explore the model's reasoning and text generation capabilities before incorporating it into your applications. The play ground offers instant feedback, helping you comprehend how the design reacts to different inputs and letting you fine-tune your prompts for optimum outcomes.<br>
<br>You can rapidly test the design in the play ground through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference utilizing a deployed DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can develop a guardrail utilizing 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](https://git.kawen.site) the following code to carry out guardrails. The script initializes the bedrock_runtime customer, configures reasoning specifications, and sends out a request to produce text based upon a user timely.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial intelligence (ML) center 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](https://support.mlone.ai) designs to your use case, with your data, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart uses 2 hassle-free approaches: using the intuitive SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's check out both techniques to help you pick the approach 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, select Studio in the navigation pane.
2. First-time users will be prompted to produce a domain.
3. On the [SageMaker Studio](https://ugit.app) console, select JumpStart in the navigation pane.<br>
<br>The design internet browser displays available models, with details like the provider name and design capabilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each model card reveals crucial details, including:<br>
<br>- Model name
- Provider name
- Task [category](https://yourrecruitmentspecialists.co.uk) (for instance, Text Generation).
Bedrock Ready badge (if applicable), [suggesting](http://revoltsoft.ru3000) that this design can be signed up with Amazon Bedrock, permitting you to utilize Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the design card to see the design details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The model name and supplier details.
Deploy button to deploy the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you deploy the design, it's suggested to evaluate the model details and license terms to verify compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, use the instantly generated name or develop a custom one.
8. For example type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the number of instances (default: 1).
Selecting suitable [instance](https://git.electrosoft.hr) types and counts is vital for cost and performance optimization. Monitor your [implementation](http://git.r.tender.pro) to change these settings as needed.Under Inference type, Real-time inference is selected by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for precision. For this design, we highly suggest sticking to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the design.<br>
<br>The release process can take several minutes to complete.<br>
<br>When deployment is complete, your endpoint status will change to InService. At this point, the model is prepared to accept reasoning requests through the endpoint. You can keep an eye on the implementation development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the implementation is total, you can invoke the model using a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To get started with DeepSeek-R1 utilizing the SageMaker Python SDK, you will require to set up the SageMaker Python SDK and make certain you have the required 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](http://128.199.175.1529000) the design is provided 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](https://lubuzz.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 create a guardrail using the Amazon Bedrock console or the API, and implement it as [displayed](https://www.imdipet-project.eu) in the following code:<br>
<br>Clean up<br>
<br>To [prevent unwanted](http://dev.catedra.edu.co8084) charges, finish the steps in this section to tidy up your [resources](https://gitlab01.avagroup.ru).<br>
<br>Delete the Amazon Bedrock [Marketplace](https://southwales.com) implementation<br>
<br>If you deployed the design utilizing Amazon Bedrock Marketplace, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace deployments.
2. In the Managed deployments area, find the endpoint you wish to delete.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're deleting the appropriate deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The [SageMaker JumpStart](https://lms.digi4equality.eu) design you deployed will sustain expenses 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 checked out how you can access and release the DeepSeek-R1 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker [JumpStart](https://youslade.com) in SageMaker Studio or Amazon Bedrock Marketplace now to get going. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, 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 assists emerging generative [AI](https://sadegitweb.pegasus.com.mx) business build ingenious options using AWS services and sped up compute. Currently, he is focused on developing strategies for fine-tuning and enhancing the reasoning performance of large language models. In his complimentary time, Vivek delights in treking, viewing movies, and attempting different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://128.199.161.91:3000) Specialist Solutions Architect with the Third-Party Model [Science](http://www.jedge.top3000) group at AWS. His location of focus is AWS [AI](https://redsocial.cl) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect working on generative [AI](http://okosg.co.kr) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://59.56.92.34:13000) center. She is passionate about building services that assist consumers accelerate their [AI](https://jobsscape.com) journey and unlock service value.<br>