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

Alan Digby 2025-02-16 12:57:31 +08:00
commit 22afc45411

@ -0,0 +1,93 @@
<br>Today, we are excited to reveal that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](https://itconsulting.millims.com)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled variations varying from 1.5 to 70 billion parameters to develop, experiment, and properly scale your generative [AI](https://jamboz.com) concepts on AWS.<br>
<br>In this post, we show how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable actions to deploy the distilled variations of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) developed by DeepSeek [AI](https://git.peaksscrm.com) that uses reinforcement learning to improve reasoning capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. A key distinguishing feature is its reinforcement knowing (RL) action, which was used to fine-tune the model's reactions beyond the basic pre-training and tweak procedure. By including RL, DeepSeek-R1 can adjust more successfully to user feedback and objectives, ultimately enhancing both significance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, suggesting it's geared up to break down complex queries and reason through them in a detailed way. This guided thinking process allows the model to produce more precise, transparent, and detailed responses. This design integrates RL-based fine-tuning with CoT abilities, aiming to create structured reactions while concentrating on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has actually captured the market's attention as a flexible text-generation design that can be integrated into numerous workflows such as agents, rational reasoning and information interpretation tasks.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion specifications, making it possible for effective inference by routing queries to the most pertinent expert "clusters." This technique permits the design to focus on different problem domains while maintaining general performance. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for [reasoning](https://git.j4nis05.ch). In this post, we will use an ml.p5e.48 [xlarge instance](https://www.klaverjob.com) to deploy the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking abilities of the main R1 model to more efficient architectures based upon popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a process of training smaller sized, more effective designs to simulate the habits and thinking patterns of the bigger DeepSeek-R1 model, using it as an instructor model.<br>
<br>You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we recommend releasing this design with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid damaging content, and evaluate models against essential security criteria. At the time of writing this blog, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop numerous guardrails tailored to various usage cases and use them to the DeepSeek-R1 design, improving user experiences and standardizing security controls throughout your generative [AI](https://138.197.71.160) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and confirm you're utilizing 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 limitation boost, create a limitation boost demand and connect to your account group.<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For guidelines, see Set up permissions to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to introduce safeguards, avoid hazardous content, and evaluate designs against essential security criteria. You can execute security procedures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to assess user inputs and design responses released on Amazon Bedrock Marketplace and SageMaker JumpStart. 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.<br>
<br>The general flow includes the following actions: 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 to the design for inference. After receiving the model's output, another guardrail check is used. If the output passes this final check, it's returned as the 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 areas demonstrate reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace provides 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 utilize the [InvokeModel API](http://101.34.228.453000) to conjure up the model. It doesn't support Converse APIs and other Amazon Bedrock [tooling](https://xtragist.com).
2. Filter for DeepSeek as a company and pick the DeepSeek-R1 model.<br>
<br>The design detail page offers necessary details about the model's abilities, pricing structure, and application guidelines. You can discover [detailed usage](https://owangee.com) directions, consisting of sample API calls and code bits for combination. The model supports different text generation tasks, consisting of content production, code generation, and question answering, using its reinforcement finding out optimization and CoT reasoning capabilities.
The page likewise consists of implementation choices and licensing details to assist you get going with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, choose Deploy.<br>
<br>You will be prompted to configure the deployment details for DeepSeek-R1. The design 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 Instance type, pick your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up innovative security and facilities settings, including virtual private cloud (VPC) networking, service function approvals, and file encryption settings. For the majority of utilize cases, the default settings will work well. However, for production releases, you may wish to evaluate these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to begin using the model.<br>
<br>When the release is total, you can check 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 explore different triggers and change model parameters like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimal results. For example, material for inference.<br>
<br>This is an [exceptional](https://datemyfamily.tv) way to explore the design's reasoning and text generation abilities before incorporating it into your applications. The play ground offers instant feedback, [helping](http://47.103.112.133) you understand how the design reacts to numerous inputs and letting you fine-tune your prompts for optimum results.<br>
<br>You can quickly check the design in the playground 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 [guardrails](http://www.gz-jj.com) with the [deployed](https://jobs.askpyramid.com) DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference utilizing a deployed DeepSeek-R1 design through [Amazon Bedrock](http://124.129.32.663000) using the invoke_model and ApplyGuardrail API. You can produce a guardrail utilizing the Amazon Bedrock [console](http://sdongha.com) or the API. For the example code to create the guardrail, see the GitHub repo. After you have actually developed the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_runtime customer, [configures inference](https://aubameyangclub.com) specifications, and sends a demand to create text based on a user prompt.<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 services that you can deploy with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your information, and release them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 hassle-free approaches: using the intuitive SageMaker JumpStart UI or [systemcheck-wiki.de](https://systemcheck-wiki.de/index.php?title=Benutzer:SoonWinfrey7778) carrying out programmatically through the SageMaker Python SDK. Let's check out both methods to help you choose the approach that finest suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions 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 [triggered](https://www.hijob.ca) to produce a domain.
3. On the SageMaker Studio console, [choose JumpStart](https://git.morenonet.com) in the navigation pane.<br>
<br>The design internet [browser](http://code.hzqykeji.com) shows available models, with details like the provider name and design capabilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card shows essential details, consisting of:<br>
<br>- Model name
- Provider name
- [Task classification](https://www.myjobsghana.com) (for example, Text Generation).
Bedrock Ready badge (if relevant), indicating that this model can be registered with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the design card to view the model details page.<br>
<br>The [design details](https://bihiring.com) page includes the following details:<br>
<br>- The design 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](http://47.106.228.1133000).
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you deploy the design, it's suggested to review the design details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with [implementation](https://interconnectionpeople.se).<br>
<br>7. For Endpoint name, use the immediately generated name or create a customized one.
8. For example type ¸ choose a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the variety of circumstances (default: 1).
Selecting suitable [instance](https://nkaebang.com) types and counts is vital for expense and efficiency optimization. Monitor your implementation to change 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. For this model, we highly suggest sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to deploy the model.<br>
<br>The [deployment procedure](http://git.permaviat.ru) can take a number of minutes to finish.<br>
<br>When release is complete, your endpoint status will alter to InService. At this moment, the model is prepared to accept reasoning demands through the endpoint. You can monitor the release progress on the SageMaker console Endpoints page, which will display pertinent metrics and status details. When the [release](http://39.101.134.269800) is total, you can conjure up the model utilizing a SageMaker runtime client and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To begin with DeepSeek-R1 utilizing the [SageMaker Python](https://nailrada.com) SDK, you will need to install the SageMaker Python SDK and make certain you have the necessary AWS authorizations and [environment setup](https://divsourcestaffing.com). The following is a detailed code example that demonstrates how to deploy and [wavedream.wiki](https://wavedream.wiki/index.php/User:AdanMealmaker1) use DeepSeek-R1 for reasoning programmatically. The code for releasing the model is offered in the Github here. You can clone the notebook and run from SageMaker Studio.<br>
<br>You can run extra demands against the predictor:<br>
<br>Implement guardrails and run reasoning with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker [JumpStart predictor](https://www.kukustream.com). You can create a guardrail utilizing the Amazon Bedrock console or the API, and execute it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To [prevent undesirable](https://probando.tutvfree.com) charges, complete the steps in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the design using Amazon Bedrock Marketplace, total the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, pick Marketplace releases.
2. In the Managed implementations area, locate the [endpoint](https://ideezy.com) you desire to erase.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the correct deployment: 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. 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 explored how you can access and deploy the DeepSeek-R1 design utilizing 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 designs, Amazon SageMaker JumpStart Foundation Models, [Amazon Bedrock](https://git.bubblesthebunny.com) Marketplace, and Getting started 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://git.sicom.gov.co) business develop ingenious options utilizing AWS services and accelerated compute. Currently, he is focused on establishing strategies for fine-tuning and enhancing the reasoning efficiency of big language models. In his complimentary time, Vivek enjoys treking, watching films, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://younivix.com) Specialist Solutions Architect with the Third-Party Model [Science team](http://www.haimimedia.cn3001) at AWS. His location of focus is AWS [AI](https://kollega.by) [accelerators](https://wavedream.wiki) (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](https://social.stssconstruction.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and [tactical partnerships](https://adventuredirty.com) for JumpStart, [SageMaker's artificial](https://www.mafiscotek.com) intelligence and generative [AI](https://uwzzp.nl) hub. She is passionate about building options that help consumers accelerate their [AI](http://shop.neomas.co.kr) journey and unlock company value.<br>