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

코멘트 · 464 견해

Today, we are delighted to announce that DeepSeek R1 distilled Llama and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart.

Today, we are delighted to reveal that DeepSeek R1 distilled Llama and archmageriseswiki.com Qwen models are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek AI's first-generation frontier design, DeepSeek-R1, along with the distilled versions varying from 1.5 to 70 billion specifications to build, experiment, and properly scale your generative AI ideas on AWS.


In this post, we show how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow comparable actions to deploy the distilled versions of the designs also.


Overview of DeepSeek-R1


DeepSeek-R1 is a big language model (LLM) established by DeepSeek AI that utilizes reinforcement learning to enhance reasoning abilities through a multi-stage training process from a DeepSeek-V3-Base structure. A crucial differentiating function is its reinforcement knowing (RL) step, which was utilized to improve the design's actions beyond the standard pre-training and tweak process. By integrating RL, DeepSeek-R1 can adjust better to user feedback and goals, ultimately improving both importance and clearness. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) approach, implying it's geared up to break down intricate questions and factor through them in a detailed manner. This directed thinking procedure allows the model to produce more accurate, transparent, and mediawiki.hcah.in detailed responses. This model combines RL-based fine-tuning with CoT capabilities, aiming to produce structured responses while concentrating on interpretability and user interaction. With its comprehensive 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, logical reasoning and information analysis jobs.


DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture allows activation of 37 billion specifications, allowing effective inference by routing queries to the most pertinent expert "clusters." This technique allows the design to focus on various problem domains while maintaining overall efficiency. 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 design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.


DeepSeek-R1 distilled models bring the thinking abilities of the main R1 model to more efficient architectures based upon popular open models like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation refers to a procedure of training smaller, more efficient designs to mimic the habits and reasoning patterns of the bigger DeepSeek-R1 design, utilizing it as a teacher design.


You can release 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 location. In this blog site, we will utilize Amazon Bedrock Guardrails to introduce safeguards, avoid harmful material, and assess models against crucial security requirements. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can create several guardrails tailored to various usage cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing safety controls across your generative AI applications.


Prerequisites


To deploy the DeepSeek-R1 design, you need access to an ml.p5e circumstances. To inspect if you have quotas for P5e, open the Service Quotas console and under AWS Services, select Amazon SageMaker, and confirm 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 deploying. To ask for a limit boost, create a limitation boost request and reach out to your account group.


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) authorizations to use Amazon Bedrock Guardrails. For instructions, see Set up authorizations to use guardrails for material filtering.


Implementing guardrails with the ApplyGuardrail API


Amazon Bedrock Guardrails enables you to present safeguards, prevent damaging content, and examine models against key safety criteria. You can carry out precaution for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This allows you to apply guardrails to evaluate user inputs and model actions deployed on Amazon Bedrock Marketplace and SageMaker JumpStart. You can produce a guardrail utilizing the Amazon Bedrock console or the API. For the example code to create the guardrail, see the GitHub repo.


The basic flow involves the following steps: 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 model for fishtanklive.wiki reasoning. After receiving the design's output, wiki.myamens.com 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 indicating the nature of the intervention and whether it took place at the input or output phase. The examples showcased in the following areas show inference utilizing this API.


Deploy DeepSeek-R1 in Amazon Bedrock Marketplace


Amazon Bedrock Marketplace offers you access to over 100 popular, emerging, and specialized structure models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:


1. On the Amazon Bedrock console, select Model brochure under Foundation models in the navigation pane.
At the time of writing this post, you can utilize the InvokeModel API to invoke the design. It does not support Converse APIs and other Amazon Bedrock tooling.
2. Filter for DeepSeek as a supplier and choose the DeepSeek-R1 model.


The design detail page provides vital details about the model's abilities, rates structure, and execution standards. You can find detailed use directions, including sample API calls and code bits for integration. The design supports various text generation tasks, consisting of content development, code generation, and question answering, using its support discovering optimization and CoT thinking abilities.
The page likewise includes implementation choices and licensing details to assist you start with DeepSeek-R1 in your applications.
3. To start utilizing DeepSeek-R1, pick Deploy.


You will be prompted to configure the release details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, get in an endpoint name (between 1-50 alphanumeric characters).
5. For Number of instances, get in a number of circumstances (between 1-100).
6. For Instance type, select your circumstances type. For ideal performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is advised.
Optionally, you can configure innovative security and infrastructure settings, including virtual private cloud (VPC) networking, service function permissions, and file encryption settings. For most use cases, the default settings will work well. However, forum.altaycoins.com for production deployments, you might wish to evaluate these settings to line up with your organization's security and compliance requirements.
7. Choose Deploy to begin utilizing the model.


When the release is total, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play ground.
8. Choose Open in playground to access an interactive user interface where you can try out different prompts and change model specifications like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for optimal results. For instance, <|begin▁of▁sentence|><|User|>content for reasoning<|Assistant|>.


This is an outstanding way to explore the design's thinking and text generation capabilities before integrating it into your applications. The play area provides immediate feedback, helping you understand how the model reacts to numerous inputs and letting you fine-tune your triggers for ideal results.


You can quickly evaluate the model in the play area through the UI. However, to conjure up the released model programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.


Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint


The following code example shows how to perform reasoning using a deployed DeepSeek-R1 design through Amazon Bedrock using the invoke_model and ApplyGuardrail API. You can create a guardrail utilizing the Amazon Bedrock console or the API. For the example code to develop the guardrail, see the GitHub repo. After you have created the guardrail, utilize the following code to execute guardrails. The script initializes the bedrock_runtime customer, configures inference parameters, and sends a demand to create text based on a user prompt.


Deploy DeepSeek-R1 with SageMaker JumpStart


SageMaker JumpStart is an artificial intelligence (ML) center with FMs, built-in algorithms, and prebuilt ML options that you can deploy with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and release them into production using either the UI or SDK.


Deploying DeepSeek-R1 design through SageMaker JumpStart provides two hassle-free approaches: using the intuitive SageMaker JumpStart UI or executing programmatically through the SageMaker Python SDK. Let's check out both techniques to help you choose the technique that finest suits your requirements.


Deploy DeepSeek-R1 through SageMaker JumpStart UI


Complete the following steps to release DeepSeek-R1 using SageMaker JumpStart:


1. On the SageMaker console, pick Studio in the navigation pane.
2. First-time users will be triggered to develop a domain.
3. On the SageMaker Studio console, select JumpStart in the navigation pane.


The design web browser shows available models, with details like the company name and design capabilities.


4. Look for DeepSeek-R1 to view the DeepSeek-R1 model card.
Each model card shows key details, consisting of:


- Model name
- Provider name
- Task classification (for example, Text Generation).
Bedrock Ready badge (if suitable), suggesting that this design can be registered with Amazon Bedrock, allowing you to use Amazon Bedrock APIs to conjure up the model


5. Choose the design card to see the model details page.


The design details page consists of the following details:


- The model name and supplier details.
Deploy button to release the design.
About and Notebooks tabs with detailed details


The About tab consists of important details, such as:


- Model description.
- License details.
- Technical specs.
- Usage guidelines


Before you deploy the model, it's advised to evaluate the model details and license terms to confirm compatibility with your use case.


6. Choose Deploy to proceed with implementation.


7. For Endpoint name, use the instantly produced 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, enter the variety of instances (default: 1).
Selecting suitable circumstances types and counts is important for expense and performance optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time reasoning is picked by default. This is optimized for sustained traffic and low latency.
10. Review all setups for precision. For this design, we strongly recommend sticking to SageMaker JumpStart default settings and making certain that network seclusion remains in place.
11. Choose Deploy to release the model.


The release procedure can take numerous minutes to finish.


When release is total, your endpoint status will alter to InService. At this point, the model is ready to accept reasoning requests through the endpoint. You can keep an eye on the implementation development on the SageMaker console Endpoints page, which will display pertinent metrics and it-viking.ch status details. When the release is complete, you can conjure up the design using a SageMaker runtime client and integrate it with your applications.


Deploy DeepSeek-R1 using the SageMaker Python SDK


To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will require 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 deploy and pipewiki.org utilize DeepSeek-R1 for inference programmatically. The code for releasing the design is provided in the Github here. You can clone the note pad and range from SageMaker Studio.


You can run extra demands against the predictor:


Implement guardrails and run reasoning with your SageMaker JumpStart predictor


Similar to Amazon Bedrock, you can likewise utilize 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 revealed in the following code:


Tidy up


To avoid undesirable charges, finish the steps in this area to tidy up your resources.


Delete the Amazon Bedrock Marketplace deployment


If you deployed the model utilizing Amazon Bedrock Marketplace, complete the following steps:


1. On the Amazon Bedrock console, under Foundation models in the navigation pane, pick Marketplace implementations.
2. In the Managed implementations area, locate the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, pick Delete.
4. Verify the endpoint details to make certain you're erasing the proper implementation: 1. Endpoint name.
2. Model name.
3. Endpoint status


Delete the SageMaker JumpStart predictor


The SageMaker JumpStart design you released will sustain costs if you leave it running. Use the following code to delete the endpoint if you wish to stop sustaining charges. For more details, see Delete Endpoints and Resources.


Conclusion


In this post, we explored how you can access and release 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, describe Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained models, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Starting with Amazon SageMaker JumpStart.


About the Authors


Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He assists emerging generative AI business develop ingenious options using AWS services and accelerated calculate. Currently, he is concentrated on establishing methods for fine-tuning and optimizing the inference efficiency of big language models. In his downtime, Vivek enjoys hiking, watching films, and attempting various cuisines.


Niithiyn Vijeaswaran is a Generative AI Specialist Solutions Architect with the Third-Party Model Science team at AWS. His area of focus is AWS AI accelerators (AWS Neuron). He holds a Bachelor's degree in Computer Science and Bioinformatics.


Jonathan Evans is a Professional Solutions Architect working on generative AI with the Third-Party Model Science group at AWS.


Banu Nagasundaram leads item, engineering, and tactical partnerships for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative AI center. She is enthusiastic about building services that help clients accelerate their AI journey and unlock organization worth.

코멘트