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

Alexis Hesson 2025-02-21 09:05:28 +08:00
parent a1f0e132fe
commit b46b25aa96
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 designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek [AI](http://121.40.114.127:9000)'s first-generation frontier design, DeepSeek-R1, in addition to the distilled variations varying from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](https://thisglobe.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 release the [distilled variations](https://rpcomm.kr) of the designs also.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) developed by DeepSeek [AI](https://git.jerrita.cn) that utilizes reinforcement discovering to enhance reasoning abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A crucial differentiating function is its support knowing (RL) step, which was used to refine the design's responses beyond the basic pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adjust better to user feedback and goals, eventually boosting both importance and clarity. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, implying it's equipped to break down complex queries and reason through them in a detailed way. This assisted reasoning procedure permits the design to produce more accurate, transparent, and [detailed responses](https://amore.is). This model integrates [RL-based fine-tuning](https://it-storm.ru3000) with CoT abilities, aiming to create structured reactions while focusing on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has actually captured the market's attention as a flexible text-generation design that can be incorporated into various workflows such as agents, sensible thinking and [data analysis](https://www.jobzalerts.com) tasks.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture enables activation of 37 billion criteria, making it possible for effective inference by routing questions to the most pertinent specialist "clusters." This approach enables the design to concentrate on different problem domains while maintaining general [performance](http://www.vmeste-so-vsemi.ru). DeepSeek-R1 requires at least 800 GB of [HBM memory](http://www.thynkjobs.com) in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge instance to release the design. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 [distilled](http://encocns.com30001) models bring the thinking capabilities of the main R1 design 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 sized, [genbecle.com](https://www.genbecle.com/index.php?title=Utilisateur:ErinKershner5) more effective models to imitate the habits and reasoning patterns of the bigger DeepSeek-R1 design, using it as an instructor model.<br>
<br>You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise deploying this model with guardrails in place. In this blog site, we will use Amazon Bedrock Guardrails to introduce safeguards, prevent hazardous material, and [assess models](https://trulymet.com) against key security requirements. At the time of writing this blog site, for DeepSeek-R1 implementations on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can create multiple guardrails tailored to various use cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls across your generative [AI](https://gitlab.mnhn.lu) applications.<br>
<br>Prerequisites<br>
<br>To deploy the DeepSeek-R1 design, you require access to an ml.p5e instance. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, select Amazon SageMaker, and validate you're utilizing ml.p5e.48 xlarge for endpoint use. 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, develop a limitation increase [request](http://51.222.156.2503000) and [trademarketclassifieds.com](https://trademarketclassifieds.com/user/profile/2684771) connect to your account team.<br>
<br>Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the correct AWS Identity and Gain Access To Management (IAM) consents to use Amazon Bedrock Guardrails. For instructions, see Establish authorizations to use guardrails for material filtering.<br>
<br>Implementing guardrails with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails allows you to present safeguards, prevent harmful material, and assess models against [essential security](https://it-storm.ru3000) criteria. You can execute security measures for the DeepSeek-R1 model utilizing the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to examine user inputs and design actions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can develop 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 gets an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the [guardrail](https://git.hichinatravel.com) check, it's sent to the model for reasoning. After receiving the model's output, another guardrail check is applied. If the output passes this last check, it's returned as the outcome. 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 phase. The examples showcased in the following areas show reasoning using this API.<br>
<br>Deploy DeepSeek-R1 in Amazon Bedrock Marketplace<br>
<br>Amazon Bedrock Marketplace gives you access to over 100 popular, emerging, and specialized structure designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following actions:<br>
<br>1. On the Amazon Bedrock console, select Model brochure under Foundation designs in the navigation pane.
At the time of composing this post, you can utilize the InvokeModel API to conjure up the design. It doesn't support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a provider and choose the DeepSeek-R1 design.<br>
<br>The model detail page supplies vital details about the model's abilities, prices structure, and application guidelines. You can find detailed usage instructions, consisting of sample API calls and code snippets for combination. The design supports numerous text generation jobs, consisting of material production, code generation, and question answering, using its reinforcement finding out optimization and CoT reasoning abilities.
The page also includes release choices and licensing details to help you begin with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, select Deploy.<br>
<br>You will be prompted to set up the implementation details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
5. For Number of instances, enter a number of circumstances (in between 1-100).
6. For Instance type, choose your circumstances type. For ideal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can configure advanced security and facilities settings, including virtual personal cloud (VPC) networking, service role approvals, and encryption settings. For a lot of use cases, the default settings will work well. However, for production deployments, you may want to examine 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 release is total, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive user interface where you can experiment with various prompts and adjust model parameters like temperature and optimum length.
When using R1 with Bedrock's InvokeModel and Playground Console, use DeepSeek's chat design template for ideal outcomes. For instance, material for reasoning.<br>
<br>This is an [exceptional method](https://ec2-13-237-50-115.ap-southeast-2.compute.amazonaws.com) to explore the model's reasoning and text generation capabilities before incorporating it into your applications. The play area offers instant 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 evaluate the design in the playground 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 utilizing guardrails with the [released](https://ready4hr.com) DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to perform inference using a released DeepSeek-R1 design through Amazon Bedrock using the invoke_model and [kousokuwiki.org](http://kousokuwiki.org/wiki/%E5%88%A9%E7%94%A8%E8%80%85:MoniqueMerrick7) ApplyGuardrail API. You can develop a guardrail using the Amazon Bedrock [console](https://moontube.goodcoderz.com) or the API. For the example code to develop the guardrail, see the GitHub repo. After you have produced the guardrail, use the following code to implement guardrails. The script initializes the bedrock_runtime customer, configures reasoning parameters, and sends a request to create text based upon a user prompt.<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 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 2 practical methods: utilizing the intuitive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both techniques to assist you pick the approach that best suits your needs.<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, choose Studio in the navigation pane.
2. First-time users will be prompted to produce a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.<br>
<br>The design internet browser shows available models, with details like the provider name and model capabilities.<br>
<br>4. Search for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each model card reveals essential details, including:<br>
<br>- Model name
- Provider name
- Task [category](https://git.bluestoneapps.com) (for example, Text Generation).
Bedrock Ready badge (if relevant), indicating that this design can be registered with Amazon Bedrock, enabling you to use Amazon Bedrock APIs to conjure up the design<br>
<br>5. Choose the design card to view the design details page.<br>
<br>The model details page consists of the following details:<br>
<br>- The model name and supplier details.
Deploy button to the model.
About and Notebooks tabs with detailed details<br>
<br>The About tab consists of essential details, such as:<br>
<br>- Model description.
- License details.
- Technical requirements.
- Usage standards<br>
<br>Before you release the model, it's advised to evaluate the design details and license terms to validate compatibility with your usage case.<br>
<br>6. Choose Deploy to proceed with deployment.<br>
<br>7. For Endpoint name, utilize the immediately created name or develop a custom one.
8. For example type ¸ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, go into the number of circumstances (default: 1).
Selecting suitable [instance types](https://www.jobassembly.com) and counts is essential for cost and performance optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time inference is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all [configurations](https://gogs.yaoxiangedu.com) for accuracy. For this design, we strongly [recommend sticking](https://edu.shpl.ru) to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to deploy the design.<br>
<br>The implementation procedure can take several minutes to complete.<br>
<br>When release is complete, your endpoint status will change to InService. At this moment, the design is all set to accept reasoning requests through the endpoint. You can monitor the [release development](https://medifore.co.jp) on the SageMaker console Endpoints page, which will show pertinent metrics and status details. When the deployment is complete, you can invoke 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 get going with DeepSeek-R1 using the SageMaker Python SDK, you will require to install the SageMaker Python SDK and make certain you have the needed 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 design is provided in the Github here. You can clone the note pad and range from SageMaker Studio.<br>
<br>You can run extra requests 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](https://www.pakgovtnaukri.pk) predictor. You can develop a guardrail utilizing the Amazon Bedrock console or the API, and execute it as shown in the following code:<br>
<br>Clean up<br>
<br>To avoid [undesirable](https://wik.co.kr) charges, complete the steps in this area to clean up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace release<br>
<br>If you deployed the design using 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 releases section, find the [endpoint](http://www5a.biglobe.ne.jp) you wish to delete.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're erasing the proper deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status<br>
<br>Delete the SageMaker JumpStart predictor<br>
<br>The SageMaker JumpStart design you released will [sustain costs](http://geoje-badapension.com) if you leave it running. Use the following code to delete the [endpoint](http://jobpanda.co.uk) 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, 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 at AWS. He assists emerging generative [AI](https://ashawo.club) business develop ingenious services utilizing AWS services and accelerated calculate. Currently, he is concentrated on establishing techniques for fine-tuning and enhancing the inference efficiency of large language designs. In his free time, Vivek takes pleasure in treking, viewing motion pictures, and trying different foods.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](http://woorichat.com) Specialist Solutions Architect with the Third-Party Model [Science](https://9miao.fun6839) group at AWS. His area of focus is AWS [AI](https://yeetube.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is an Expert Solutions Architect dealing with generative [AI](https://git.mhurliman.net) with the Third-Party Model Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://219.150.88.234:33000) center. She is [enthusiastic](http://colorroom.net) about developing options that help consumers accelerate their [AI](https://git.phyllo.me) journey and unlock organization worth.<br>