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

Athena Trumper 2025-02-18 19:55:12 +08:00
commit eb44390d8f
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are thrilled 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 deploy DeepSeek [AI](https://rassi.tv)'s first-generation frontier model, DeepSeek-R1, together with the distilled versions [ranging](https://www.kukustream.com) from 1.5 to 70 billion parameters to build, experiment, and responsibly scale your generative [AI](http://101.43.135.234:9211) ideas on AWS.<br>
<br>In this post, we demonstrate how to begin with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable steps to deploy the distilled variations of the models too.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](https://elit.press) that [utilizes reinforcement](https://suomalaistajalkapalloa.com) discovering to improve reasoning abilities through a multi-stage training process from a DeepSeek-V3-Base structure. A crucial differentiating feature is its reinforcement learning (RL) action, which was utilized to refine the model's responses beyond the basic pre-training and tweak process. By including RL, DeepSeek-R1 can adjust better to user feedback and objectives, eventually enhancing both importance and clarity. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, meaning it's geared up to break down intricate queries and reason through them in a detailed way. This assisted reasoning process enables the design to produce more accurate, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT capabilities, aiming to generate structured reactions while focusing on interpretability and user interaction. With its extensive abilities DeepSeek-R1 has recorded the industry's attention as a versatile text-generation design that can be incorporated into various [workflows](https://library.kemu.ac.ke) such as agents, logical thinking and information interpretation jobs.<br>
<br>DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture permits activation of 37 billion specifications, enabling efficient inference by routing inquiries to the most appropriate expert "clusters." This technique permits the design to focus on different problem domains while maintaining general performance. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for inference. In this post, we will use an ml.p5e.48 xlarge instance to release the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled designs bring the reasoning capabilities of the main R1 model to more effective architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller, more efficient designs to mimic the behavior and reasoning patterns of the larger DeepSeek-R1 design, using it as a teacher design.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we [advise releasing](http://ncdsource.kanghehealth.com) this design with guardrails in location. In this blog, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent harmful material, and examine designs against key security requirements. At the time of [writing](https://vsbg.info) this blog site, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, [Bedrock Guardrails](http://yijichain.com) supports only the ApplyGuardrail API. You can produce [numerous guardrails](https://cvmobil.com) tailored to different usage cases and use them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls throughout your generative [AI](http://39.99.158.114:10080) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 model, you need access to an ml.p5e circumstances. To examine if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and validate you're using ml.p5e.48 xlarge for endpoint usage. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are releasing. To ask for a limitation increase, develop a limit increase request and reach out to your account team.<br>
<br>Because you will be releasing this model with Amazon Bedrock Guardrails, make certain you have the right AWS Identity and Gain Access To Management (IAM) authorizations to utilize Amazon Bedrock Guardrails. For guidelines, see Establish permissions to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails enables you to present safeguards, avoid hazardous material, and assess designs against crucial safety criteria. You can implement security measures for the DeepSeek-R1 design using the [Amazon Bedrock](https://familytrip.kr) ApplyGuardrail API. This enables you to use guardrails to assess user inputs and design responses released on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail using the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.<br>
<br>The basic circulation 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](https://caringkersam.com) the guardrail check, it's sent to the design for inference. After getting the model's output, another guardrail check is used. If the output passes this last check, it's returned as the final result. However, if either the input or output is intervened by the guardrail, a [message](http://rm.runfox.com) is returned suggesting the nature of the intervention and whether it took place at the input or output phase. The examples showcased in the following areas demonstrate inference using 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 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](http://43.136.54.67) console, select Model catalog under Foundation designs in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to invoke the model. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a service provider and select the DeepSeek-R1 model.<br>
<br>The model detail page supplies necessary details about the model's capabilities, pricing structure, and implementation guidelines. You can find detailed usage instructions, including sample API calls and code bits for integration. The model supports various text generation tasks, including material development, code generation, and question answering, utilizing its support learning optimization and CoT reasoning abilities.
The page likewise consists of deployment choices and licensing details to assist you get going with DeepSeek-R1 in your [applications](https://earthdailyagro.com).
3. To begin using DeepSeek-R1, select 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, get in an endpoint name (in between 1-50 alphanumeric characters).
5. For Variety of instances, enter a variety of circumstances (between 1-100).
6. For example type, select your circumstances type. For optimal efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure advanced security and facilities settings, including virtual personal cloud (VPC) networking, service function authorizations, and encryption settings. For most utilize cases, the default settings will work well. However, for production implementations, you may wish to examine these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin utilizing the model.<br>
<br>When the deployment is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in play area to access an interactive user interface where you can try out different triggers and adjust design parameters like temperature and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for ideal outcomes. For example, material for inference.<br>
<br>This is an excellent method to explore the design's reasoning and text generation capabilities before integrating it into your applications. The play ground provides immediate feedback, assisting you understand how the design reacts to various inputs and letting you tweak your triggers for ideal outcomes.<br>
<br>You can rapidly test the model in the play ground through the UI. However, to conjure up the deployed design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.<br>
<br>Run inference [utilizing guardrails](http://94.110.125.2503000) with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning using a released DeepSeek-R1 design through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can create a [guardrail utilizing](https://m1bar.com) the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo. After you have actually created the guardrail, [utilize](https://iadgroup.co.uk) the following code to carry out guardrails. The script initializes the bedrock_runtime customer, sets up inference specifications, and sends a request to [generate text](http://101.200.220.498001) based upon 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 [surgiteams.com](https://surgiteams.com/index.php/User:MapleFairfax220) prebuilt ML services that you can release with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained models to your usage case, with your data, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart offers two hassle-free techniques: using the instinctive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both techniques to help you pick the [technique](https://emplealista.com) that finest suits your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following steps 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 triggered to produce a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The model internet browser displays available models, with details like the service provider name and design abilities.<br>
<br>4. Look for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each [design card](https://git.dev.advichcloud.com) reveals crucial details, [consisting](https://gitlab.informicus.ru) of:<br>
<br>- Model name
- [Provider](http://www.andreagorini.it) name
- Task [category](https://pioneercampus.ac.in) (for instance, Text Generation).
Bedrock Ready badge (if applicable), showing that this design can be registered with Amazon Bedrock, enabling you to utilize Amazon Bedrock APIs to invoke 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 design name and supplier details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of important details, [wavedream.wiki](https://wavedream.wiki/index.php/User:CharaLamontagne) such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage guidelines<br>
<br>Before you release the model, it's suggested to review the model details and license terms to verify compatibility with your use case.<br>
<br>6. Choose Deploy to continue with implementation.<br>
<br>7. For Endpoint name, use the automatically produced name or create a custom-made one.
8. For [Instance type](https://gitlab.damage.run) ¸ choose a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the variety of instances (default: 1).
Selecting suitable circumstances types and counts is essential for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time reasoning is selected by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for precision. For this model, we strongly recommend adhering to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to release the design.<br>
<br>The deployment process can take numerous minutes to finish.<br>
<br>When release is total, your endpoint status will alter to InService. At this point, the model is ready to accept reasoning demands through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the deployment is total, you can invoke the model utilizing a SageMaker runtime customer and integrate it with your applications.<br>
<br>Deploy DeepSeek-R1 using the SageMaker Python SDK<br>
<br>To get going with DeepSeek-R1 [utilizing](https://www.bjs-personal.hu) the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the needed AWS approvals and environment setup. The following is a detailed code example that demonstrates how to release and utilize DeepSeek-R1 for inference programmatically. The code for releasing the design is offered in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run extra [demands](https://cambohub.com3000) 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. 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 unwanted charges, complete the actions in this area to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace deployment<br>
<br>If you released the design utilizing Amazon Bedrock Marketplace, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, under Foundation models in the navigation pane, select Marketplace implementations.
2. In the Managed implementations area, find the endpoint you want to erase.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're deleting the right release: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The [SageMaker JumpStart](https://tweecampus.com) 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 explored 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 begun. For more details, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting going with Amazon SageMaker JumpStart.<br>
<br>About the Authors<br>
<br>Vivek Gangasani is a Lead Specialist Solutions Architect for [Inference](http://b-ways.sakura.ne.jp) at AWS. He helps emerging generative [AI](http://101.36.160.140:21044) business develop ingenious solutions using AWS services and sped up calculate. Currently, he is concentrated on establishing methods for fine-tuning and enhancing the reasoning efficiency of big language designs. In his leisure time, Vivek delights in hiking, [watching](https://source.lug.org.cn) films, and trying different cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://gitlab.damage.run) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His location of focus is AWS [AI](https://www.liveactionzone.com) accelerators (AWS Neuron). He holds a [Bachelor's degree](https://siman.co.il) in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect working on generative [AI](http://101.132.136.5:8030) with the Third-Party Model Science group at AWS.<br>
<br> leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://www.scitqn.cn:3000) hub. She is passionate about constructing options that help clients [accelerate](https://www.videochatforum.ro) their [AI](https://www.freeadzforum.com) journey and unlock business value.<br>