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

Warren Stein 2025-02-22 05:50:20 +08:00
commit 77999d7786
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 designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](http://47.98.190.109)'s first-generation frontier design, DeepSeek-R1, together with the distilled variations varying from 1.5 to 70 billion criteria to build, experiment, and responsibly scale your generative [AI](https://www.klaverjob.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to get begun with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to deploy the distilled variations of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) established by [DeepSeek](https://www.earnwithmj.com) [AI](https://161.97.85.50) that utilizes support learning to enhance thinking [abilities](http://121.37.166.03000) through a multi-stage training procedure from a DeepSeek-V3-Base structure. An essential differentiating function is its support learning (RL) step, which was used to refine the model's responses beyond the standard pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adjust more effectively to user feedback and goals, eventually enhancing both importance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) technique, meaning it's geared up to break down complicated questions and reason through them in a detailed manner. This assisted thinking process permits the design to produce more accurate, transparent, and detailed answers. This design integrates RL-based fine-tuning with CoT capabilities, aiming to create structured responses while concentrating on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has caught the market's attention as a flexible text-generation model that can be integrated into different workflows such as representatives, logical reasoning and data interpretation jobs.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion specifications, enabling effective inference by routing queries to the most relevant specialist "clusters." This method enables the design to [concentrate](https://duniareligi.com) on various problem domains while maintaining total effectiveness. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will use an ml.p5e.48 xlarge circumstances to release the design. ml.p5e.48 xlarge includes 8 Nvidia H200 [GPUs supplying](https://canworkers.ca) 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model to more efficient architectures based upon [popular](https://internship.af) open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of training smaller sized, more [effective models](http://1.14.105.1609211) to mimic the habits and thinking patterns of the larger DeepSeek-R1 model, using it as an instructor design.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we advise deploying this model with guardrails in place. In this blog, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid hazardous content, and evaluate models against crucial security criteria. At the time of composing this blog site, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop several guardrails tailored to different usage cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls throughout your generative [AI](https://git.zyhhb.net) 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 and under AWS Services, choose Amazon SageMaker, and verify you're [utilizing](https://www.yiyanmyplus.com) 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](https://soehoe.id) increase, produce a limit boost request and reach out to your account 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) consents to use Amazon Bedrock Guardrails. For instructions, see Establish consents to use guardrails for [material filtering](http://www.grainfather.com.au).<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, avoid damaging material, and against key security criteria. You can execute security procedures for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This permits you to use guardrails to assess user inputs and model actions released on Amazon Bedrock [Marketplace](https://prantle.com) 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 circulation involves the following steps: First, the system [receives](https://sossphoto.com) 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 getting the model's output, another guardrail check is applied. If the output passes this last check, it's returned as the last result. However, if either the input or output is stepped in by the guardrail, a message is returned indicating the nature of the intervention and whether it occurred at the input or output stage. The examples showcased in the following sections show reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock [Marketplace](http://git.spaceio.xyz) gives you access to over 100 popular, emerging, and specialized structure designs (FMs) through [Amazon Bedrock](http://8.222.247.203000). To gain access to DeepSeek-R1 in Amazon Bedrock, total the following actions:<br>
<br>1. On the Amazon Bedrock console, choose Model catalog under Foundation models in the navigation pane.
At the time of composing this post, you can utilize the [InvokeModel API](http://cwscience.co.kr) to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a supplier and select the DeepSeek-R1 design.<br>
<br>The model detail page provides necessary details about the design's capabilities, rates structure, and execution guidelines. You can find detailed usage directions, including sample API calls and code snippets for combination. The design supports numerous text generation tasks, consisting of material development, code generation, and question answering, using its reinforcement learning optimization and CoT thinking abilities.
The page likewise consists of implementation alternatives and licensing details to assist you get started with DeepSeek-R1 in your applications.
3. To begin using DeepSeek-R1, [select Deploy](https://www.rotaryjobmarket.com).<br>
<br>You will be prompted to set up the deployment details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, go into a variety of [instances](http://124.70.149.1810880) (between 1-100).
6. For example type, choose your instance type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can configure sophisticated security and facilities settings, including virtual personal cloud (VPC) networking, service function approvals, and file encryption settings. For the majority of use cases, the default settings will work well. However, for production deployments, you might desire to evaluate these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the model.<br>
<br>When the implementation is complete, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock playground.
8. Choose Open in play ground to access an interactive interface where you can try out various prompts and change model parameters like temperature and optimum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for ideal results. For example, content for reasoning.<br>
<br>This is an excellent way to explore the design's reasoning and [oeclub.org](https://oeclub.org/index.php/User:RegenaBarlee3) text generation capabilities before [integrating](http://demo.ynrd.com8899) it into your applications. The playground provides immediate feedback, helping you understand how the design reacts to numerous inputs and letting you fine-tune your triggers for ideal results.<br>
<br>You can [rapidly evaluate](https://umindconsulting.com) the design in the playground through the UI. However, to invoke the released design programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run reasoning using [guardrails](https://tuxpa.in) with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning using a released DeepSeek-R1 design through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can develop a guardrail using the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo. After you have actually produced the guardrail, utilize the following code to implement guardrails. The script initializes the bedrock_runtime client, sets up inference criteria, and sends a demand to [generate text](https://signedsociety.com) 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, 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 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 two practical techniques: using the user-friendly SageMaker [JumpStart UI](https://193.31.26.118) or carrying out programmatically through the SageMaker Python SDK. Let's explore both methods to help you pick the approach that finest fits 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, choose Studio in the navigation pane.
2. First-time users will be prompted to develop a domain.
3. On the SageMaker Studio console, pick JumpStart in the navigation pane.<br>
<br>The model web browser displays available models, with details like the company name and model abilities.<br>
<br>4. Look for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each model card reveals key details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if relevant), suggesting that this model can be registered with Amazon Bedrock, [it-viking.ch](http://it-viking.ch/index.php/User:StephaniaFlk) permitting you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the design card to view 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 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 specifications.
- Usage standards<br>
<br>Before you release the design, it's recommended to examine the design details and license terms to validate compatibility with your use case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, use the instantly created name or create a custom one.
8. For example type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the number of circumstances (default: 1).
Selecting suitable circumstances types and counts is vital for expense and efficiency optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time inference is picked by default. This is [enhanced](https://avpro.cc) for sustained traffic and low latency.
10. Review all setups for accuracy. For this design, we strongly recommend adhering to SageMaker JumpStart default settings and making certain that [network isolation](http://busforsale.ae) remains in place.
11. Choose Deploy to deploy the model.<br>
<br>The release procedure can take a number of minutes to complete.<br>
<br>When [implementation](https://iesoundtrack.tv) is complete, your endpoint status will alter to InService. At this moment, the model is ready to accept inference demands through the endpoint. You can keep track of the deployment progress on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the release is total, 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 start with DeepSeek-R1 using 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 demonstrates how to deploy and use DeepSeek-R1 for reasoning programmatically. The code for deploying the model is offered in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run [additional](https://39.98.119.14) 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 utilizing the Amazon Bedrock console or the API, and execute it as revealed in the following code:<br>
<br>Tidy up<br>
<br>To prevent undesirable charges, complete the actions in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you released the [design utilizing](http://193.200.130.1863000) Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, [pipewiki.org](https://pipewiki.org/wiki/index.php/User:Alfie04M080) choose Marketplace deployments.
2. In the Managed deployments section, locate the endpoint you wish to erase.
3. Select the endpoint, and on the Actions menu, [select Delete](http://szfinest.com6060).
4. Verify the [endpoint details](https://phpcode.ketofastlifestyle.com) to make certain you're deleting the proper release: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you [deployed](https://i-medconsults.com) will sustain expenses if you leave it running. Use the following code to delete the endpoint if you want to stop sustaining charges. For more details, see Delete Endpoints and [Resources](http://awonaesthetic.co.kr).<br>
<br>Conclusion<br>
<br>In this post, we [explored](http://118.190.175.1083000) how you can access and deploy the DeepSeek-R1 model using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get going. For more details, refer to Use Amazon Bedrock tooling with [Amazon SageMaker](https://git.brass.host) JumpStart designs, 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://vacaturebank.vrijwilligerspuntvlissingen.nl) business build ingenious solutions utilizing AWS services and accelerated compute. Currently, he is concentrated on establishing strategies for fine-tuning and enhancing the reasoning efficiency of large language models. In his complimentary time, Vivek delights in treking, viewing films, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://gitlab.ideabeans.myds.me:30000) Specialist Solutions Architect with the Third-Party Model [Science](https://customerscomm.com) group at AWS. His area of focus is AWS [AI](https://alllifesciences.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer [Science](https://testgitea.cldevops.de) and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect working on generative [AI](https://csmsound.exagopartners.com) with the Third-Party Model Science team at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://seedvertexnetwork.co.ke) center. She is enthusiastic about building services that assist consumers accelerate their [AI](https://git.thatsverys.us) journey and unlock service value.<br>