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

master
Helen Horowitz 2 months ago
commit 0c306acb2a
  1. 93
      DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md

@ -0,0 +1,93 @@
<br>Today, we are excited to announce that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, [pediascape.science](https://pediascape.science/wiki/User:Tawanna87L) you can now deploy DeepSeek [AI](https://xotube.com)'s first-generation frontier model, DeepSeek-R1, along with the distilled variations ranging from 1.5 to 70 billion parameters to construct, experiment, and properly scale your generative [AI](http://119.29.81.51) 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 steps to release the distilled variations of the designs too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language design (LLM) established by DeepSeek [AI](https://daeshintravel.com) that utilizes support discovering to boost thinking abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A key distinguishing feature is its support learning (RL) action, which was utilized to refine the model's actions beyond the standard pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adapt better to user feedback and goals, eventually boosting both significance and clearness. In addition, DeepSeek-R1 utilizes a [chain-of-thought](http://98.27.190.224) (CoT) method, indicating it's geared up to break down complicated questions and factor through them in a detailed way. This guided reasoning allows the design to produce more accurate, transparent, and detailed responses. This design integrates RL-based fine-tuning with CoT abilities, aiming to create structured responses while concentrating on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has captured the market's attention as a versatile text-generation model that can be integrated into different workflows such as agents, rational thinking and data analysis tasks.<br>
<br>DeepSeek-R1 uses a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture allows activation of 37 billion parameters, enabling effective reasoning by routing queries to the most appropriate professional "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 reasoning. In this post, we will use an ml.p5e.48 xlarge circumstances to deploy the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the [thinking](http://lty.co.kr) 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 procedure of training smaller sized, more effective designs to imitate the behavior and reasoning patterns of the larger DeepSeek-R1 model, using it as a teacher model.<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 location. In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, prevent harmful content, and examine designs against essential security requirements. 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 use them to the DeepSeek-R1 model, improving user experiences and standardizing security controls across your generative [AI](https://nukestuff.co.uk) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, 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 verify you're [utilizing](https://lafffrica.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 limit increase, develop a limitation boost demand and connect to your account team.<br>
<br>Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the proper AWS Identity and Gain Access To Management (IAM) permissions to utilize Amazon Bedrock Guardrails. For directions, see Set up authorizations to utilize guardrails for content filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to introduce safeguards, avoid damaging content, and evaluate designs against crucial safety criteria. You can implement precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to assess user inputs and design responses 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 develop 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 model's output, another guardrail check is used. If the output passes this final check, it's returned as the outcome. However, if either the input or output is intervened by the guardrail, a message is returned showing the nature of the intervention and whether it occurred at the input or output phase. The examples showcased in the following areas show 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 foundation models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following steps:<br>
<br>1. On the Amazon Bedrock console, choose Model brochure under Foundation models in the navigation pane.
At the time of composing this post, you can utilize the InvokeModel API to invoke the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a company and select the DeepSeek-R1 model.<br>
<br>The design detail page provides vital details about the model's abilities, pricing structure, and implementation standards. You can discover detailed usage guidelines, consisting of sample API calls and code snippets for combination. The design supports different text generation jobs, including material development, code generation, and concern answering, utilizing its support discovering optimization and CoT thinking abilities.
The page likewise includes 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 release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Number of circumstances, get in a variety of circumstances (between 1-100).
6. For Instance type, select your instance type. For [ideal performance](https://git.muhammadfahri.com) with DeepSeek-R1, a [GPU-based circumstances](https://gitlab.cloud.bjewaytek.com) type like ml.p5e.48 xlarge is advised.
Optionally, you can set up sophisticated security and infrastructure settings, consisting of virtual private cloud (VPC) networking, service function approvals, and encryption settings. For a lot of use cases, the default settings will work well. However, for production implementations, you might wish to review these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to begin utilizing the model.<br>
<br>When the implementation is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive user interface where you can experiment with different prompts and adjust model criteria like temperature level and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum outcomes. For instance, material for reasoning.<br>
<br>This is an excellent way to explore the design's thinking and text generation capabilities before integrating it into your applications. The play area [supplies instant](http://git.armrus.org) feedback, helping you comprehend how the design reacts to various inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can [rapidly](https://try.gogs.io) [evaluate](https://gitea.gumirov.xyz) the design in the play ground through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint<br>
<br>The following code example shows how to perform reasoning utilizing a deployed 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 execute 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) center with FMs, integrated algorithms, and prebuilt ML solutions that you can deploy with simply a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your use case, with your information, and deploy them into production using either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 model through SageMaker JumpStart offers two hassle-free approaches: utilizing the user-friendly SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both approaches to help you pick the approach that best fits your needs.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to release DeepSeek-R1 using SageMaker JumpStart:<br>
<br>1. On the SageMaker console, pick Studio in the navigation pane.
2. [First-time](http://www.carnevalecommunity.it) users will be [prompted](https://gitlab.profi.travel) to create a domain.
3. On the [SageMaker Studio](http://hanbitoffice.com) console, pick JumpStart in the navigation pane.<br>
<br>The design browser shows available designs, with details like the service provider name and model abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each design card reveals crucial details, including:<br>
<br>- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if suitable), indicating that this model can be signed up with Amazon Bedrock, enabling you to utilize Amazon [Bedrock APIs](https://gitea.cronin.one) to invoke the design<br>
<br>5. Choose the model card to view the model details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The design name and supplier details.
Deploy button to release 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 deploy the design, it's recommended to [evaluate](https://play.uchur.ru) the [model details](https://social-lancer.com) and license terms to [confirm compatibility](http://wiki.iurium.cz) with your use case.<br>
<br>6. Choose Deploy to proceed with implementation.<br>
<br>7. For Endpoint name, utilize the automatically created name or develop a customized one.
8. For Instance type ¸ select a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the variety of circumstances (default: 1).
Selecting suitable circumstances types and counts is important for expense and efficiency optimization. Monitor your implementation to change these settings as needed.Under Inference type, [Real-time inference](https://wiki.roboco.co) is chosen by default. This is optimized for sustained traffic and low latency.
10. Review all configurations for accuracy. For this model, we highly recommend 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 alter to InService. At this point, the design is ready to accept reasoning demands through the endpoint. You can monitor the deployment progress on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the release is complete, you can invoke the model utilizing a SageMaker runtime customer and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To begin with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the essential AWS approvals and environment setup. The following is a detailed code example that shows how to release and utilize DeepSeek-R1 for inference programmatically. The code for deploying the model is provided in the Github here. You can clone the note pad and run from SageMaker Studio.<br>
<br>You can run additional demands against the predictor:<br>
<br>Implement guardrails and run inference with your [SageMaker JumpStart](http://yijichain.com) predictor<br>
<br>Similar to Amazon Bedrock, you can likewise use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the Amazon Bedrock console or the API, and implement it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid unwanted charges, finish the actions in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you released the design utilizing Amazon Bedrock Marketplace, total the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, select Marketplace releases.
2. In the Managed releases section, locate the endpoint you wish to erase.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're [deleting](http://1.94.30.13000) the proper deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model 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 deploy the DeepSeek-R1 model using 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 with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker [JumpStart](https://www.naukrinfo.pk) Foundation Models, [Amazon Bedrock](http://minority2hire.com) Marketplace, and Beginning with Amazon SageMaker [JumpStart](https://namoshkar.com).<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.gz.internal.jumaiyx.cn) business construct [innovative](https://git.joystreamstats.live) options utilizing AWS services and sped up [calculate](https://diskret-mote-nodeland.jimmyb.nl). Currently, he is focused on developing techniques for fine-tuning and optimizing the reasoning efficiency of large language models. In his downtime, Vivek enjoys hiking, watching films, and attempting various foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://code.linkown.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](http://git.attnserver.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](https://ozgurtasdemir.net) with the Third-Party Model [Science team](https://scode.unisza.edu.my) at AWS.<br>
<br>[Banu Nagasundaram](http://wowonder.technologyvala.com) leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://sugarmummyarab.com) hub. She is enthusiastic about constructing solutions that help consumers accelerate their [AI](https://gitea.jessy-lebrun.fr) journey and unlock company value.<br>
Loading…
Cancel
Save