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

Ambrose Creech 2025-04-11 07:26:20 +08:00
parent acd4f4ee5a
commit 5a5e5dc856
1 changed files with 93 additions and 0 deletions

@ -0,0 +1,93 @@
<br>Today, we are excited to announce 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](https://www.yohaig.ng)'s first-generation frontier design, DeepSeek-R1, along with the distilled versions varying from 1.5 to 70 billion criteria to construct, experiment, and responsibly scale your generative [AI](https://nextodate.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 [comparable actions](https://videofrica.com) to deploy the distilled versions of the models also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language model (LLM) developed by DeepSeek [AI](https://pandatube.de) that uses reinforcement finding out to enhance thinking capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. A crucial identifying function is its reinforcement knowing (RL) action, which was used to refine the model's reactions beyond the basic pre-training and tweak process. By including RL, DeepSeek-R1 can adjust more efficiently to user feedback and objectives, eventually boosting both significance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, implying it's geared up to break down intricate queries and reason through them in a detailed manner. This guided thinking procedure enables the design to produce more accurate, transparent, and detailed answers. This design combines RL-based fine-tuning with CoT capabilities, [trademarketclassifieds.com](https://trademarketclassifieds.com/user/profile/3074684) aiming to create structured responses while concentrating on interpretability and user interaction. With its extensive capabilities DeepSeek-R1 has caught the industry's attention as a flexible text-generation model that can be incorporated into various workflows such as agents, sensible thinking and information interpretation jobs.<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 parameters, allowing effective inference by routing questions to the most relevant professional "clusters." This method permits the design to focus on different problem [domains](https://younghopestaffing.com) while maintaining total performance. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for [disgaeawiki.info](https://disgaeawiki.info/index.php/User:HQXAntonio) reasoning. In this post, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:JeanetteGgb) 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 designs bring the thinking capabilities of the main R1 model to more efficient architectures based on popular open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a process of training smaller, more efficient models to simulate the habits and [reasoning patterns](http://expertsay.blog) of the larger DeepSeek-R1 design, [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) 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 suggest deploying this design with guardrails in place. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, avoid damaging material, and evaluate models against crucial security criteria. At the time of writing this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can produce numerous guardrails tailored to various use cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls across your generative [AI](http://gitlab.pakgon.com) 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 verify you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 [xlarge instance](https://git.sunqida.cn) in the AWS Region you are deploying. To ask for a limit boost, create a limitation boost request 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](http://47.93.234.49) and Gain Access To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For guidelines, see Set up permissions to utilize guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to present safeguards, prevent hazardous material, and evaluate designs against crucial safety requirements. You can execute precaution for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to evaluate user inputs and model reactions 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](https://music.worldcubers.com).<br>
<br>The general flow 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 out to the model for reasoning. After [receiving](https://privamaxsecurity.co.ke) the design's output, another guardrail check is applied. 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 showing the nature of the intervention and whether it took place at the input or output stage. The [examples showcased](http://124.223.100.383000) in the following sections show [reasoning](http://www.hydrionlab.com) 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 designs (FMs) through [Amazon Bedrock](http://140.125.21.658418). To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:<br>
<br>1. On the Amazon Bedrock console, select Model catalog under Foundation models in the navigation pane.
At the time of writing this post, you can use the InvokeModel API to conjure up the model. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a [supplier](https://meetcupid.in) and choose the DeepSeek-R1 model.<br>
<br>The design detail page supplies vital details about the design's capabilities, rates structure, and application standards. You can find detailed use instructions, including sample API calls and code snippets for combination. The model supports various text generation tasks, including content production, [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:NannetteOdell3) code generation, and question answering, utilizing its reinforcement discovering optimization and CoT reasoning capabilities.
The page also includes implementation choices and licensing details to help you get going with DeepSeek-R1 in your applications.
3. To begin [utilizing](https://git.devinmajor.com) DeepSeek-R1, pick Deploy.<br>
<br>You will be triggered to set up 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 circumstances, get in a number of instances (between 1-100).
6. For example type, choose your [circumstances type](http://wcipeg.com). For ideal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested.
Optionally, you can configure innovative security and facilities settings, consisting of virtual personal cloud (VPC) networking, service function consents, and encryption settings. For many use cases, the default settings will work well. However, for production implementations, you might want to evaluate these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the design.<br>
<br>When the implementation is complete, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in play area to access an interactive user interface where you can try out various prompts and adjust model specifications like temperature level and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for optimal results. For instance, material for reasoning.<br>
<br>This is an outstanding way to explore the design's reasoning and text generation abilities before integrating it into your applications. The play area provides instant feedback, helping you comprehend how the design reacts to numerous inputs and letting you fine-tune your triggers for optimal outcomes.<br>
<br>You can quickly evaluate the design in the play area through the UI. However, to conjure up the deployed model programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run reasoning using guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example shows how to carry out inference using a deployed DeepSeek-R1 design through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. 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. After you have developed the guardrail, use the following code to carry out guardrails. The script initializes the bedrock_runtime customer, configures reasoning parameters, and sends a request to generate 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 services that you can deploy with simply 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 convenient methods: using the instinctive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both techniques to assist you select the method that finest suits your needs.<br>
<br>Deploy DeepSeek-R1 through [SageMaker JumpStart](https://vlogloop.com) UI<br>
<br>Complete the following [actions](http://coastalplainplants.org) to deploy DeepSeek-R1 using 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, select JumpStart in the navigation pane.<br>
<br>The design internet browser displays available designs, with details like the supplier name and design capabilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 design card.
Each design card shows crucial details, including:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if relevant), indicating that this model can be registered with Amazon Bedrock, enabling you to use Amazon Bedrock APIs to invoke the model<br>
<br>5. Choose the design card to view the model details page.<br>
<br>The model details page includes the following details:<br>
<br>- The model name and supplier details.
Deploy button to deploy the design.
About and Notebooks tabs with detailed details<br>
<br>The About tab includes crucial details, such as:<br>
<br>- Model description.
- License details.
- Technical specs.
- Usage guidelines<br>
<br>Before you release the design, it's advised to review the model details and license terms to confirm compatibility with your use case.<br>
<br>6. Choose Deploy to proceed with release.<br>
<br>7. For Endpoint name, use the instantly created name or develop a custom one.
8. For Instance type ¸ pick a [circumstances](http://xn--ok0b74gbuofpaf7p.com) type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the number of instances (default: 1).
Selecting proper circumstances types and counts is essential for expense and efficiency optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time inference is selected by default. This is optimized for and low latency.
10. Review all configurations for accuracy. For this design, we strongly suggest [sticking](http://1024kt.com3000) to SageMaker JumpStart default settings and making certain that [network seclusion](https://paanaakgit.iran.liara.run) remains in place.
11. Choose Deploy to deploy the design.<br>
<br>The deployment procedure can take a number of minutes to complete.<br>
<br>When release is total, your endpoint status will alter to InService. At this moment, the design is ready to accept reasoning [requests](https://www.netrecruit.al) through the endpoint. You can keep track of the implementation progress on the SageMaker console Endpoints page, which will show appropriate metrics and status details. When the release is total, you can conjure up the model using a SageMaker runtime customer and integrate it with your [applications](https://hrvatskinogomet.com).<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To begin with DeepSeek-R1 using the SageMaker Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the essential AWS approvals 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 releasing the model 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 with your [SageMaker JumpStart](https://git.ascarion.org) predictor<br>
<br>Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail utilizing the Amazon Bedrock console or [higgledy-piggledy.xyz](https://higgledy-piggledy.xyz/index.php/User:WinstonNajera5) the API, and implement it as displayed in the following code:<br>
<br>Tidy up<br>
<br>To avoid undesirable charges, finish the steps in this area to tidy up your [resources](https://local.wuanwanghao.top3000).<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, [disgaeawiki.info](https://disgaeawiki.info/index.php/User:ShanaBickford13) pick Marketplace deployments.
2. In the Managed releases area, locate the endpoint you want to erase.
3. Select the endpoint, and on the [Actions](https://library.kemu.ac.ke) menu, choose Delete.
4. Verify the endpoint details to make certain you're deleting the correct release: 1. Endpoint name.
2. Model name.
3. [Endpoint](http://lyo.kr) status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart model you released 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 utilizing Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to begin. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker [JumpStart](https://www.speedrunwiki.com) designs, SageMaker JumpStart [pretrained](http://47.119.175.53000) models, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Getting begun 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](http://hmkjgit.huamar.com) companies build innovative solutions utilizing AWS services and sped up compute. Currently, he is concentrated on developing methods for fine-tuning and optimizing the reasoning efficiency of big language models. In his totally free time, Vivek delights in treking, enjoying movies, and attempting various foods.<br>
<br>Niithiyn Vijeaswaran is a [Generative](https://paanaakgit.iran.liara.run) [AI](https://source.futriix.ru) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](http://www.asiapp.co.kr) [accelerators](https://inktal.com) (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.<br>
<br>Jonathan Evans is a Specialist Solutions Architect working on generative [AI](https://video.invirtua.com) with the Third-Party Model [Science](https://jobiaa.com) team at AWS.<br>
<br>Banu Nagasundaram leads product, engineering, and tactical collaborations for Amazon SageMaker JumpStart, [SageMaker's artificial](https://gigen.net) intelligence and generative [AI](https://streaming.expedientevirtual.com) center. She is passionate about building solutions that assist clients accelerate their [AI](http://47.101.46.124:3000) journey and unlock business worth.<br>