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

master
Janet Bickford 2025-02-07 05:50:21 +07:00
parent e414a9a260
commit 67637c262b
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 designs are available through Amazon Bedrock Marketplace and [Amazon SageMaker](http://git.attnserver.com) JumpStart. With this launch, you can now deploy DeepSeek [AI](https://fmstaffingsource.com)'s first-generation frontier design, DeepSeek-R1, together with the distilled versions ranging from 1.5 to 70 billion criteria to develop, experiment, and responsibly scale your generative [AI](https://corvestcorp.com) concepts on AWS.<br>
<br>In this post, we demonstrate how to start with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to release the [distilled versions](https://barbersconnection.com) of the designs as well.<br>
<br>Overview of DeepSeek-R1<br>
<br>DeepSeek-R1 is a large language design (LLM) developed by DeepSeek [AI](https://www.chinami.com) that utilizes reinforcement discovering to boost thinking capabilities through a multi-stage training [process](https://www.keyfirst.co.uk) from a DeepSeek-V3-Base foundation. A crucial distinguishing feature is its reinforcement learning (RL) action, which was used to improve the design's reactions beyond the standard pre-training and [engel-und-waisen.de](http://www.engel-und-waisen.de/index.php/Benutzer:JuniorBowser22) fine-tuning procedure. By integrating RL, DeepSeek-R1 can adjust better to user feedback and goals, eventually improving both relevance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) technique, indicating it's equipped to break down complex questions and factor through them in a detailed manner. This assisted reasoning process enables the design to produce more precise, transparent, and detailed responses. This model integrates RL-based fine-tuning with CoT abilities, aiming to produce structured reactions while focusing on interpretability and user interaction. With its extensive abilities DeepSeek-R1 has captured the market's attention as a versatile text-generation model that can be incorporated into various workflows such as representatives, sensible reasoning and information analysis tasks.<br>
<br>DeepSeek-R1 uses a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion criteria, enabling efficient reasoning by routing questions to the most pertinent specialist "clusters." This technique permits the design to specialize in different issue domains while maintaining total efficiency. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for [reasoning](https://gitea.cisetech.com). In this post, we will utilize an ml.p5e.48 xlarge circumstances to release the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.<br>
<br>DeepSeek-R1 distilled models bring the thinking abilities of the main R1 design to more effective architectures based on 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, more effective designs to mimic the behavior and reasoning patterns of the bigger DeepSeek-R1 model, utilizing it as a teacher design.<br>
<br>You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise deploying this design with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, [prevent hazardous](https://heyanesthesia.com) material, and assess models against key security criteria. At the time of composing this blog site, for DeepSeek-R1 releases 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](http://betterlifenija.org.ng) [applications](https://app.joy-match.com).<br>
<br>Prerequisites<br>
<br>To release the DeepSeek-R1 design, you require access to an ml.p5e circumstances. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, pick Amazon SageMaker, and verify you're utilizing ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 xlarge circumstances in the AWS Region you are deploying. To ask for a limit boost, develop a limit boost demand and reach out to your account group.<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) permissions to use Amazon Bedrock Guardrails. For directions, see Set up authorizations to use guardrails for material filtering.<br>
<br>Implementing [guardrails](http://81.71.148.578080) with the ApplyGuardrail API<br>
<br>Amazon Bedrock Guardrails permits you to introduce safeguards, avoid harmful content, and evaluate designs against key safety criteria. You can execute security steps for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and design actions 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 produce the guardrail, see the GitHub repo.<br>
<br>The general flow involves the following actions: First, the system gets an input for the design. 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 last check, it's returned as the result. However, if either the input or output is stepped in 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 demonstrate reasoning 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. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:<br>
<br>1. On the Amazon Bedrock console, pick [Model brochure](http://175.178.199.623000) under [Foundation models](http://49.234.213.44) 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 service provider and pick the DeepSeek-R1 model.<br>
<br>The model detail page provides vital details about the model's abilities, prices structure, [wavedream.wiki](https://wavedream.wiki/index.php/User:ClaireSparling1) and application standards. You can find detailed use directions, including sample [API calls](https://gigen.net) and code snippets for combination. The design supports various text generation jobs, including content production, code generation, and question answering, using its reinforcement finding out optimization and CoT reasoning capabilities.
The page likewise includes deployment choices and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To start using 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, get in an endpoint name (between 1-50 alphanumeric characters).
5. For [forum.altaycoins.com](http://forum.altaycoins.com/profile.php?id=1073113) Variety of instances, get in a variety of instances (between 1-100).
6. For example type, select your instance type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up innovative security and facilities settings, including virtual personal cloud (VPC) networking, service role authorizations, and file encryption settings. For many utilize cases, the default settings will work well. However, for production implementations, you might desire to [examine](http://code.chinaeast2.cloudapp.chinacloudapi.cn) these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to start utilizing the design.<br>
<br>When the deployment is complete, you can check DeepSeek-R1's abilities straight in the Amazon Bedrock play ground.
8. Choose Open in play ground to access an interactive interface where you can explore various prompts and change model parameters like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for ideal outcomes. For example, content for inference.<br>
<br>This is an outstanding way to explore the design's thinking and text [generation capabilities](https://git.eugeniocarvalho.dev) before integrating it into your applications. The [play ground](https://gitea.dusays.com) provides immediate feedback, assisting you comprehend how the design reacts to numerous inputs and letting you fine-tune your prompts for optimum outcomes.<br>
<br>You can quickly check the model in the play area through the UI. However, to invoke the deployed model programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.<br>
<br>Run inference using guardrails with the released DeepSeek-R1 endpoint<br>
<br>The following code example demonstrates how to carry out reasoning using a [released](https://complete-jobs.co.uk) DeepSeek-R1 model through Amazon Bedrock using the invoke_model and ApplyGuardrail API. 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. After you have produced the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime client, configures inference parameters, and sends a demand to create text based upon a user prompt.<br>
<br>Deploy DeepSeek-R1 with SageMaker JumpStart<br>
<br>SageMaker JumpStart is an artificial [intelligence](https://vooxvideo.com) (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](http://geoje-badapension.com) designs to your use case, with your information, and deploy them into production utilizing either the UI or SDK.<br>
<br>Deploying DeepSeek-R1 design through SageMaker JumpStart uses two practical approaches: using the intuitive SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's check out both methods to assist you choose the method that best matches your requirements.<br>
<br>Deploy DeepSeek-R1 through SageMaker JumpStart UI<br>
<br>Complete the following actions to deploy 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, pick JumpStart in the navigation pane.<br>
<br>The model browser displays available models, with details like the provider name and design abilities.<br>
<br>4. Search for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card reveals crucial details, consisting of:<br>
<br>- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if appropriate), indicating that this design can be registered with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to invoke the design<br>
<br>5. Choose the design card to view the model details page.<br>
<br>The design details page consists of the following details:<br>
<br>- The model name and supplier details.
Deploy button to release the design.
About and Notebooks tabs with detailed details<br>
<br>The About [tab consists](http://59.110.125.1643062) of important details, such as:<br>
<br>- Model description.
- License details.
- Technical [requirements](http://code.qutaovip.com).
- Usage guidelines<br>
<br>Before you [release](http://wiki.pokemonspeedruns.com) the model, it's suggested to examine the design details and license terms to confirm compatibility with your usage case.<br>
<br>6. Choose Deploy to continue with deployment.<br>
<br>7. For Endpoint name, utilize the immediately generated name or produce a custom-made one.
8. For example type ¸ pick an instance type (default: ml.p5e.48 xlarge).
9. For Initial instance count, go into the number of circumstances (default: 1).
Selecting suitable circumstances types and counts is vital for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time inference is chosen by default. This is enhanced for [sustained traffic](https://www.ndule.site) and low latency.
10. Review all [configurations](http://deve.work3000) for accuracy. For this design, we highly advise sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in location.
11. [Choose Deploy](https://git.j.co.ua) to deploy the design.<br>
<br>The release process can take numerous minutes to complete.<br>
<br>When deployment is total, your endpoint status will alter to InService. At this point, the design is prepared to accept inference demands through the [endpoint](http://git.9uhd.com). You can monitor the implementation progress on the SageMaker console Endpoints page, which will show pertinent metrics and status details. When the implementation is total, you can [conjure](http://hulaser.com) up the design using a SageMaker runtime client and incorporate it with your applications.<br>
<br>Deploy DeepSeek-R1 utilizing the SageMaker Python SDK<br>
<br>To start 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 authorizations and environment setup. The following is a detailed code example that demonstrates how to release and use DeepSeek-R1 for reasoning programmatically. The code for deploying the model is supplied in the Github here. You can clone the note pad and range from [SageMaker Studio](https://corevacancies.com).<br>
<br>You can run extra demands against the predictor:<br>
<br>Implement guardrails and run [reasoning](https://hr-2b.su) with your SageMaker JumpStart predictor<br>
<br>Similar to Amazon Bedrock, you can likewise utilize the ApplyGuardrail API with your [SageMaker JumpStart](https://projectblueberryserver.com) predictor. You can produce a guardrail utilizing the Amazon Bedrock console or the API, and it as shown in the following code:<br>
<br>Clean up<br>
<br>To avoid undesirable charges, finish the actions in this section to tidy up your resources.<br>
<br>Delete the Amazon Bedrock Marketplace implementation<br>
<br>If you deployed the design utilizing Amazon Bedrock Marketplace, total the following steps:<br>
<br>1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, pick Marketplace deployments.
2. In the Managed deployments section, find the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the [endpoint details](https://fcschalke04fansclub.com) to make certain you're deleting the correct release: 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 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.<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 begin. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained models, 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 helps emerging generative [AI](https://git.7vbc.com) companies develop ingenious options utilizing AWS services and sped up compute. Currently, he is focused on developing strategies for fine-tuning and optimizing the [inference efficiency](https://git.j.co.ua) of big language designs. In his leisure time, Vivek delights in treking, seeing motion pictures, and attempting various cuisines.<br>
<br>Niithiyn Vijeaswaran is a Generative [AI](https://heyanesthesia.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS [AI](https://code.jigmedatse.com) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.<br>
<br>Jonathan Evans is a Professional Solutions Architect working on generative [AI](https://projobfind.com) with the [Third-Party Model](http://39.106.8.2463003) Science group at AWS.<br>
<br>Banu Nagasundaram leads item, engineering, and strategic partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](http://www.radioavang.org) center. She is passionate about constructing options that help [customers](https://www.designxri.com) accelerate their [AI](http://62.178.96.192:3000) journey and unlock organization worth.<br>