Today, we are delighted to reveal that DeepSeek R1 distilled Llama and 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, larsaluarna.se DeepSeek-R1, in addition to the distilled versions varying from 1.5 to 70 billion criteria to construct, experiment, and responsibly scale your generative AI ideas on AWS.
In this post, we show how to get begun with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to release the distilled variations of the models also.
Overview of DeepSeek-R1

DeepSeek-R1 is a big language design (LLM) established by DeepSeek AI that utilizes support finding out to improve reasoning capabilities through a multi-stage training process from a DeepSeek-V3-Base structure. A key differentiating function is its support knowing (RL) step, which was used to fine-tune the model's reactions beyond the standard pre-training and fine-tuning procedure. By integrating RL, DeepSeek-R1 can adjust better to user feedback and objectives, pipewiki.org eventually improving both relevance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, indicating it's geared up to break down complex queries and factor through them in a detailed manner. This assisted thinking process enables the design to produce more accurate, transparent, and detailed answers. This model combines RL-based fine-tuning with CoT abilities, aiming to generate structured responses while focusing on interpretability and user interaction. With its comprehensive abilities DeepSeek-R1 has captured the market's attention as a versatile text-generation design that can be integrated into numerous workflows such as agents, rational reasoning and data interpretation tasks.
DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion specifications in size. The MoE architecture allows activation of 37 billion specifications, enabling effective reasoning by routing queries to the most relevant specialist "clusters." This technique permits the design to concentrate on different issue domains while maintaining total efficiency. DeepSeek-R1 requires at least 800 GB of HBM memory 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 supplying 1128 GB of GPU memory.
DeepSeek-R1 distilled designs bring the thinking capabilities of the main R1 model 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, more effective models to simulate the habits and systemcheck-wiki.de thinking patterns of the larger DeepSeek-R1 design, engel-und-waisen.de using it as a teacher design.
You can release DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we advise releasing this model with guardrails in location. In this blog site, we will use Amazon Bedrock Guardrails to present safeguards, avoid harmful material, surgiteams.com and assess designs against essential safety requirements. At the time of writing this blog, for DeepSeek-R1 deployments 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, improving user experiences and standardizing safety controls across your generative AI applications.
Prerequisites
To deploy the DeepSeek-R1 model, you require access to an ml.p5e circumstances. To examine 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 circumstances in the AWS Region you are deploying. To ask for a limit boost, create a limit boost request and connect to your account team.
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 utilize Amazon Bedrock Guardrails. For directions, see Set up approvals to use guardrails for material filtering.
Implementing guardrails with the ApplyGuardrail API
Amazon Bedrock Guardrails allows you to present safeguards, prevent hazardous material, and evaluate designs against crucial security criteria. You can implement safety procedures for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to apply guardrails to examine user inputs and design responses 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 basic circulation includes the following steps: First, the system receives 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 reasoning. After getting the model'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 indicating the nature of the intervention and whether it occurred at the input or output stage. The examples showcased in the following areas show inference using this API.
Deploy DeepSeek-R1 in Amazon Bedrock Marketplace
Amazon Bedrock Marketplace provides you access to over 100 popular, emerging, and specialized foundation designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:
1. On the Amazon Bedrock console, choose Model catalog under Foundation designs 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 company and pick the DeepSeek-R1 model.
The design detail page offers necessary details about the model's capabilities, pricing structure, and execution guidelines. You can discover detailed usage instructions, consisting of sample API calls and code bits for combination. The model supports various text generation tasks, including content production, code generation, and concern answering, using its support learning optimization and CoT thinking abilities.
The page likewise includes deployment alternatives and licensing details to assist you begin with DeepSeek-R1 in your applications.
3. To begin utilizing DeepSeek-R1, choose Deploy.
You will be prompted to configure the release details for DeepSeek-R1. The design ID will be pre-populated.
4. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
5. For Variety of instances, enter a variety of instances (between 1-100).
6. For example type, select your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is recommended.
Optionally, you can set up advanced security and facilities settings, consisting of virtual private cloud (VPC) networking, service role approvals, and encryption settings. For most utilize cases, the default settings will work well. However, for production implementations, you might want to review these settings to line up with your company's security and compliance requirements.
7. Choose Deploy to start utilizing the model.
When the deployment is total, you can check DeepSeek-R1's capabilities straight in the Amazon Bedrock playground.
8. Choose Open in playground to access an interactive interface where you can try out various prompts and change model parameters like temperature level and maximum length.
When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for optimum results. For instance, <|begin▁of▁sentence|><|User|>material for inference<|Assistant|>.
This is an exceptional method to check out the design's thinking and text generation capabilities before incorporating it into your applications. The play area offers immediate feedback, assisting you comprehend how the design reacts to different inputs and letting you fine-tune your triggers for optimal results.
You can rapidly test the design in the playground through the UI. However, to invoke the released model 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 demonstrates how to carry out inference using a released DeepSeek-R1 model through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can develop a guardrail using 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, utilize the following code to execute guardrails. The script initializes the bedrock_runtime client, sets up inference parameters, and sends out a request to create text based on a user timely.
Deploy DeepSeek-R1 with SageMaker JumpStart
SageMaker JumpStart is an artificial intelligence (ML) hub with FMs, built-in algorithms, and prebuilt ML services that you can deploy with simply a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained designs to your usage case, with your data, and release them into production utilizing either the UI or SDK.
Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 hassle-free approaches: using the intuitive SageMaker JumpStart UI or carrying out programmatically through the SageMaker Python SDK. Let's explore both approaches to assist you choose the approach that finest matches your requirements.
Deploy DeepSeek-R1 through SageMaker JumpStart UI
Complete the following steps to deploy DeepSeek-R1 using SageMaker JumpStart:
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, choose JumpStart in the navigation pane.
The model internet browser displays available designs, with details like the service provider name and model abilities.

4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card.
Each model card reveals crucial details, consisting of:
- Model name
- Provider name
- Task category (for instance, Text Generation).
Bedrock Ready badge (if appropriate), indicating that this model can be signed up with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to conjure up the model
5. Choose the model card to see the design details page.
The model details page consists of the following details:
- The design name and supplier details.
Deploy button to deploy 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 standards
Before you release the design, it's recommended to evaluate the model details and license terms to confirm compatibility with your use case.
6. Choose Deploy to continue with implementation.
7. For Endpoint name, use the immediately created name or create a customized one.
8. For bytes-the-dust.com example type ¸ pick a circumstances type (default: ml.p5e.48 xlarge).
9. For Initial instance count, enter the number of circumstances (default: 1).
Selecting suitable instance types and counts is vital for expense and performance optimization. Monitor your release to adjust these settings as needed.Under Inference type, Real-time reasoning is chosen by default. This is enhanced for sustained traffic and low latency.
10. Review all setups for precision. For this design, we strongly recommend adhering to SageMaker JumpStart default settings and making certain that network isolation remains in place.
11. Choose Deploy to release the model.
The implementation procedure can take several minutes to finish.
When release is total, your endpoint status will change to InService. At this point, the design is prepared to accept reasoning demands through the endpoint. You can monitor the release progress on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the deployment is complete, you can conjure up the design using a SageMaker runtime client and incorporate it with your applications.
Deploy DeepSeek-R1 utilizing the SageMaker Python SDK
To get going with DeepSeek-R1 using the SageMaker Python SDK, you will need to install the SageMaker Python SDK and make certain you have the required AWS approvals and environment setup. The following is a detailed code example that shows how to deploy and utilize DeepSeek-R1 for inference programmatically. The code for releasing the model is provided in the Github here. You can clone the note pad and run from SageMaker Studio.
You can run additional requests against the predictor:
Implement guardrails and run reasoning with your SageMaker JumpStart predictor
Similar to Amazon Bedrock, you can also utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can develop a guardrail utilizing the Amazon Bedrock console or the API, and implement it as displayed in the following code:
Tidy up
To prevent unwanted charges, finish the steps in this area to tidy up your resources.
Delete the Amazon Bedrock Marketplace implementation
If you released the design using Amazon Bedrock Marketplace, total the following steps:
1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, select Marketplace releases.
2. In the Managed deployments section, find the endpoint you desire to erase.
3. Select the endpoint, and on the Actions menu, select Delete.
4. Verify the endpoint details to make certain you're erasing the right deployment: 1. Endpoint name.
2. Model name.
3. Endpoint status
Delete the SageMaker JumpStart predictor
The SageMaker JumpStart model you deployed will sustain expenses 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 checked out 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 start. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart designs, SageMaker JumpStart pretrained designs, Amazon SageMaker JumpStart Foundation Models, Amazon Bedrock Marketplace, and Beginning 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 innovative services using AWS services and sped up compute. Currently, he is concentrated on developing methods for fine-tuning and enhancing the reasoning efficiency of big language designs. In his spare time, Vivek delights in treking, viewing movies, and trying various foods.
Niithiyn Vijeaswaran is a Generative AI Specialist Solutions Architect with the Third-Party Model Science group 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 Specialist Solutions Architect dealing with 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 building solutions that assist customers accelerate their AI journey and unlock business value.