1 DeepSeek R1 Model now Available in Amazon Bedrock Marketplace And Amazon SageMaker JumpStart
Alex Burgoyne edited this page 1 month ago


Today, we are delighted to announce that DeepSeek R1 distilled Llama and Qwen models are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now release DeepSeek AI’s first-generation frontier design, DeepSeek-R1, together with the distilled variations ranging from 1.5 to 70 billion criteria to construct, experiment, and properly scale your generative AI ideas 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 models as well.

Overview of DeepSeek-R1

DeepSeek-R1 is a big language design (LLM) developed by DeepSeek AI that uses support finding out to enhance thinking abilities through a multi-stage training procedure from a DeepSeek-V3-Base foundation. A key differentiating feature is its support learning (RL) step, which was utilized to refine the model’s actions beyond the basic pre-training and fine-tuning process. By including RL, DeepSeek-R1 can adjust better to user feedback and objectives, ultimately boosting both importance and clearness. In addition, DeepSeek-R1 utilizes a chain-of-thought (CoT) method, suggesting it’s geared up to break down intricate queries and wakewiki.de reason through them in a detailed way. This assisted thinking process allows the model to produce more accurate, transparent, and detailed answers. This model combines RL-based fine-tuning with CoT abilities, aiming to produce structured responses while concentrating on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has captured the industry’s attention as a flexible text-generation design that can be incorporated into numerous workflows such as agents, logical reasoning and information interpretation tasks.

DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion criteria in size. The MoE architecture permits activation of 37 billion parameters, allowing effective reasoning by routing questions to the most pertinent expert “clusters.” This technique permits the design to specialize in various issue domains while maintaining overall performance. DeepSeek-R1 needs at least 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge features 8 Nvidia H200 GPUs supplying 1128 GB of GPU memory.

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 process of training smaller sized, more efficient designs to imitate the behavior and reasoning patterns of the larger DeepSeek-R1 design, using it as an instructor model.

You can deploy DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging model, we recommend deploying this model with guardrails in location. In this blog site, we will use Amazon Bedrock Guardrails to present safeguards, avoid damaging material, and examine models against key safety requirements. At the time of composing this blog, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports only the ApplyGuardrail API. You can develop multiple guardrails tailored to different usage cases and apply them to the DeepSeek-R1 design, enhancing user experiences and standardizing security controls throughout your generative AI applications.

Prerequisites

To release the DeepSeek-R1 design, you require access to an ml.p5e circumstances. To check if you have quotas for P5e, open the Service Quotas console and under AWS Services, choose Amazon SageMaker, and confirm 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 releasing. To ask for a limitation increase, create a limit increase demand and reach out to your account team.

Because you will be deploying this model 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 utilize guardrails for material filtering.

Implementing guardrails with the ApplyGuardrail API

Amazon Bedrock Guardrails enables you to introduce safeguards, prevent harmful material, and evaluate models against essential security requirements. You can execute precaution for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This enables you to use guardrails to examine user inputs and design responses deployed 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.

The basic circulation includes the following steps: First, the system gets 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 design for inference. After getting the model’s output, another guardrail check is used. If the output passes this final check, it’s returned as the last 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 happened at the input or output phase. The examples showcased in the following areas 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 models (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following steps:

1. On the Amazon Bedrock console, choose Model brochure under Foundation models in the navigation pane. At the time of writing this post, you can use the InvokeModel API to conjure up the design. It does not support Converse APIs and other Amazon Bedrock tooling.

  1. Filter for DeepSeek as a company and choose the DeepSeek-R1 model.

    The model detail page offers vital details about the design’s abilities, prices structure, and execution standards. You can find detailed use guidelines, consisting of sample API calls and code bits for combination. The model supports different text generation jobs, consisting of content creation, code generation, and concern answering, using its reinforcement learning optimization and CoT thinking abilities. The page likewise consists of deployment choices and licensing details to assist you begin with DeepSeek-R1 in your applications.
  2. To start utilizing DeepSeek-R1, select Deploy.

    You will be triggered to set up the release details for DeepSeek-R1. The model ID will be pre-populated.
  3. For Endpoint name, enter an endpoint name (between 1-50 alphanumeric characters).
  4. For Variety of circumstances, go into a number of instances (between 1-100).
  5. For Instance type, pick your circumstances type. For optimum efficiency with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested. Optionally, you can set up innovative security and facilities settings, including virtual private cloud (VPC) networking, service function permissions, and file encryption settings. For most utilize cases, the default settings will work well. However, for production deployments, you may want to review these settings to align with your company’s security and compliance requirements.
  6. Choose Deploy to start utilizing the model.

    When the implementation is total, you can evaluate DeepSeek-R1’s capabilities straight in the Amazon Bedrock playground.
  7. Choose Open in play ground to access an interactive user interface where you can explore different triggers and change model parameters like temperature level and optimum length. When using R1 with Bedrock’s InvokeModel and Playground Console, use DeepSeek’s chat template for optimum results. For example, material for reasoning.

    This is an excellent method to explore the design’s reasoning and [forum.batman.gainedge.org](https://forum.batman.gainedge.org/index.php?action=profile