
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 deploy DeepSeek AI's first-generation frontier model, DeepSeek-R1, along with the distilled variations varying from 1.5 to 70 billion specifications to construct, experiment, and responsibly scale your generative AI concepts on AWS.

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

Overview of DeepSeek-R1
DeepSeek-R1 is a large language model (LLM) developed by DeepSeek AI that utilizes reinforcement learning to enhance thinking capabilities through a multi-stage training procedure from a DeepSeek-V3-Base structure. A key distinguishing feature is its reinforcement knowing (RL) action, which was utilized to refine the model'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 uses a chain-of-thought (CoT) method, suggesting it's geared up to break down intricate inquiries and factor through them in a detailed manner. This directed reasoning process allows the model to produce more accurate, transparent, and detailed answers. This model integrates RL-based fine-tuning with CoT abilities, aiming to produce structured actions while concentrating on interpretability and user interaction. With its comprehensive abilities 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.
DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture enables activation of 37 billion specifications, enabling efficient inference by routing inquiries to the most relevant professional "clusters." This approach enables the model to concentrate on different problem domains while maintaining general effectiveness. DeepSeek-R1 needs a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will utilize an ml.p5e.48 xlarge instance to release the model. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.
DeepSeek-R1 distilled designs bring the thinking capabilities 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 refers to a process of training smaller sized, more efficient models to simulate the habits and reasoning patterns of the larger DeepSeek-R1 model, using it as a teacher model.
You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we suggest deploying this model with guardrails in location. In this blog site, we will utilize Amazon Bedrock Guardrails to present safeguards, prevent damaging content, and evaluate designs against key safety criteria. At the time of writing this blog, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop numerous guardrails tailored to different use cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing safety controls throughout your generative AI applications.
Prerequisites
To release the DeepSeek-R1 model, 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 verify you're using 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 releasing. To ask for a limit increase, create a limitation boost request and reach out to your account team.
Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the proper AWS Identity and gratisafhalen.be Gain Access To Management (IAM) consents to use Amazon Bedrock Guardrails. For instructions, see Set up authorizations to utilize guardrails for content filtering.
Implementing guardrails with the ApplyGuardrail API
Amazon Bedrock Guardrails permits you to present safeguards, prevent damaging content, and evaluate designs against essential safety criteria. You can carry out safety procedures for the DeepSeek-R1 design using the Amazon Bedrock ApplyGuardrail API. This permits you to apply guardrails to evaluate user inputs and design reactions deployed 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 produce the guardrail, see the GitHub repo.
The general flow includes the following steps: First, the system receives an input for the model. This input is then processed through the ApplyGuardrail API. If the input passes the guardrail check, it's sent to the model for reasoning. After receiving the design's output, another guardrail check is applied. If the output passes this last check, it's returned as the final outcome. 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 happened at the input or output phase. The examples showcased in the following sections show reasoning using this API.
Deploy DeepSeek-R1 in Amazon Bedrock Marketplace
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:
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 use 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 important details about the design's abilities, prices structure, and forum.batman.gainedge.org application guidelines. You can discover detailed usage instructions, including sample API calls and code snippets for combination. The design supports various text generation tasks, including content creation, code generation, and concern answering, utilizing its reinforcement learning optimization and CoT reasoning abilities.
The page also consists of deployment alternatives and licensing details to help you get begun with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, choose Deploy.
You will be triggered to set up the implementation details for DeepSeek-R1. The model ID will be pre-populated.
4. For Endpoint name, go into an endpoint name (between 1-50 alphanumeric characters).
5. For Number of circumstances, enter a variety of circumstances (in between 1-100).
6. For example type, choose your instance type. For optimal performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is advised.
Optionally, you can configure advanced security and infrastructure settings, including virtual personal cloud (VPC) networking, service role permissions, and file encryption settings. For many utilize cases, mediawiki.hcah.in the default settings will work well. However, for production deployments, you might wish to review these settings to align with your organization's security and compliance requirements.
7. Choose Deploy to begin using the design.
When the deployment is total, you can evaluate DeepSeek-R1's capabilities straight in the Amazon Bedrock play area.
8. Choose Open in play ground to access an interactive user interface where you can try out various prompts and change model criteria like temperature level and maximum length.
When using R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum results. For example, <๏ฝbeginโofโsentence๏ฝ><๏ฝUser๏ฝ>material for reasoning<๏ฝAssistant๏ฝ>.
This is an outstanding method to explore the model's thinking and text generation capabilities before integrating it into your applications. The play area offers instant feedback, assisting you understand how the design reacts to different inputs and setiathome.berkeley.edu letting you tweak your triggers for optimum results.
You can rapidly test the design in the play area through the UI. However, to invoke the deployed design programmatically with any Amazon Bedrock APIs, you need to get the endpoint ARN.
Run inference using guardrails with the deployed DeepSeek-R1 endpoint
The following code example shows how to carry out 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 developed the guardrail, utilize the following code to implement guardrails. The script initializes the bedrock_runtime client, sets up reasoning criteria, and sends a demand to generate text based on a user prompt.
Deploy DeepSeek-R1 with SageMaker JumpStart
SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, integrated algorithms, and prebuilt ML services that you can release with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and wiki.myamens.com deploy them into production using either the UI or SDK.
Deploying DeepSeek-R1 design through SageMaker JumpStart provides 2 convenient approaches: utilizing the user-friendly SageMaker JumpStart UI or implementing programmatically through the SageMaker Python SDK. Let's explore both methods to help you pick the technique that best suits your needs.
Deploy DeepSeek-R1 through SageMaker JumpStart UI
Complete the following steps to deploy DeepSeek-R1 utilizing SageMaker JumpStart:
1. On the SageMaker console, select 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.
The design web browser shows available designs, with details like the service provider name and model abilities.
4. Search for DeepSeek-R1 to see the DeepSeek-R1 design card.
Each model card shows crucial details, including:
- Model name
- Provider name
- Task classification (for instance, Text Generation).
Bedrock Ready badge (if suitable), trademarketclassifieds.com showing that this design can be signed up with Amazon Bedrock, permitting you to utilize Amazon Bedrock APIs to invoke the design
5. Choose the model card to view the model details page.
The model details page includes the following details:
- The model name and supplier details.
Deploy button to deploy the design.
About and Notebooks tabs with detailed details
The About tab includes essential details, such as:
- Model description.
- License details.
- Technical specifications.
- Usage guidelines
Before you release the model, it's suggested to review the model details and license terms to validate compatibility with your use case.
6. Choose Deploy to proceed with implementation.
7. For Endpoint name, use the automatically created name or produce a custom-made one.
8. For example type ยธ choose an instance type (default: ml.p5e.48 xlarge).
9. For Initial circumstances count, enter the number of circumstances (default: 1).
Selecting suitable instance types and counts is essential for expense and performance optimization. Monitor your deployment to change these settings as needed.Under Inference type, Real-time inference is picked by default. This is optimized for sustained traffic and low latency.
10. Review all setups for precision. For this model, we strongly suggest adhering to SageMaker JumpStart default settings and making certain that network isolation remains in location.
11. Choose Deploy to release the design.
The deployment process can take numerous minutes to finish.
When implementation is complete, your endpoint status will alter to InService. At this point, the model is ready to accept reasoning demands through the endpoint. You can monitor the implementation progress on the SageMaker console Endpoints page, which will display pertinent metrics and status details. When the implementation is complete, you can invoke the design utilizing a SageMaker runtime customer and incorporate it with your applications.
Deploy DeepSeek-R1 utilizing the SageMaker Python SDK
To start with DeepSeek-R1 utilizing the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the essential AWS authorizations and environment setup. The following is a detailed code example that demonstrates how to deploy and utilize DeepSeek-R1 for inference programmatically. The code for deploying the model is provided in the Github here. You can clone the note pad and run from SageMaker Studio.
You can run extra demands against the predictor:
Implement guardrails and run inference with your SageMaker JumpStart predictor

Similar to Amazon Bedrock, you can also use the ApplyGuardrail API with your SageMaker JumpStart predictor. You can produce a guardrail using the Amazon Bedrock console or the API, and implement it as displayed in the following code:
Tidy up
To prevent undesirable charges, complete the steps in this area to clean up your resources.
Delete the Amazon Bedrock Marketplace implementation

If you released the model using Amazon Bedrock Marketplace, complete the following steps:
1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, select Marketplace deployments.
2. In the Managed releases area, locate the endpoint you desire to delete.
3. Select the endpoint, and on the Actions menu, choose Delete.
4. Verify the endpoint details to make certain you're deleting the appropriate deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status
Delete the SageMaker JumpStart predictor
The SageMaker JumpStart design you deployed will sustain costs 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.
Conclusion
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 started. 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 Getting started with Amazon SageMaker JumpStart.
About the Authors
Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He assists emerging generative AI companies construct ingenious services using AWS services and accelerated calculate. Currently, he is concentrated on developing methods for fine-tuning and enhancing the reasoning performance of big language models. In his downtime, Vivek enjoys treking, seeing movies, and attempting different 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 technology 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 product, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative AI center. She is passionate about constructing options that help customers accelerate their AI journey and unlock company value.
