From a4711d74a4d2d9f0aedab89ad6f851bfc4cbb9b0 Mon Sep 17 00:00:00 2001 From: marloneades020 Date: Wed, 9 Apr 2025 06:40:58 +0000 Subject: [PATCH] Add 'DeepSeek-R1 Model now Available in Amazon Bedrock Marketplace And Amazon SageMaker JumpStart' --- ...ketplace-And-Amazon-SageMaker-JumpStart.md | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md diff --git a/DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md b/DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md new file mode 100644 index 0000000..8b74b7d --- /dev/null +++ b/DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md @@ -0,0 +1,93 @@ +
Today, we are thrilled to announce that DeepSeek R1 [distilled Llama](http://connect.lankung.com) and Qwen designs are available through Amazon Bedrock Marketplace and Amazon SageMaker JumpStart. With this launch, you can now deploy DeepSeek [AI](http://106.55.3.105:20080)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled variations varying from 1.5 to 70 billion parameters to develop, experiment, and responsibly scale your generative [AI](http://115.124.96.179:3000) ideas on AWS.
+
In this post, we demonstrate how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to [release](http://042.ne.jp) the distilled variations of the models too.
+
Overview of DeepSeek-R1
+
DeepSeek-R1 is a big language model (LLM) established by DeepSeek [AI](https://forum.batman.gainedge.org) that utilizes support finding out to boost thinking abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. A crucial distinguishing function is its reinforcement learning (RL) step, which was utilized to refine the [design's responses](http://47.105.162.154) beyond the basic pre-training and tweak process. By incorporating RL, DeepSeek-R1 can adapt more efficiently to user feedback and objectives, ultimately enhancing both importance and clarity. In addition, DeepSeek-R1 uses a chain-of-thought (CoT) technique, indicating it's geared up to break down complicated inquiries and reason through them in a detailed manner. This assisted thinking [process](https://git.easytelecoms.fr) allows the design to produce more precise, transparent, and detailed responses. This model combines RL-based fine-tuning with CoT abilities, aiming to produce structured actions while concentrating on [interpretability](https://bootlab.bg-optics.ru) and user interaction. With its extensive capabilities DeepSeek-R1 has recorded the market's attention as a versatile text-generation design that can be incorporated into numerous workflows such as representatives, rational reasoning and data analysis jobs.
+
DeepSeek-R1 utilizes a Mixture of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture enables activation of 37 billion specifications, making it possible for efficient inference by routing queries to the most relevant specialist "clusters." This method enables the design to concentrate on different issue domains while maintaining general efficiency. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for inference. In this post, we will utilize an ml.p5e.48 xlarge circumstances to release the design. ml.p5e.48 xlarge comes with 8 Nvidia H200 GPUs providing 1128 GB of GPU memory.
+
DeepSeek-R1 distilled models bring the reasoning capabilities of the main R1 model to more efficient 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, more efficient designs to mimic the behavior and reasoning patterns of the larger DeepSeek-R1 model, using it as a teacher model.
+
You can release DeepSeek-R1 design either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we advise releasing this model with guardrails in location. In this blog, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid damaging content, and evaluate models against crucial security requirements. At the time of writing this blog site, for DeepSeek-R1 releases on SageMaker JumpStart and Bedrock Marketplace, Bedrock Guardrails supports just the ApplyGuardrail API. You can develop several guardrails tailored to various use cases and apply them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls across your generative [AI](https://work-ofie.com) applications.
+
Prerequisites
+
To deploy the DeepSeek-R1 design, 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, pick Amazon SageMaker, and confirm you're using ml.p5e.48 xlarge for endpoint use. Make certain that you have at least one ml.P5e.48 xlarge instance in the AWS Region you are releasing. To ask for a limitation boost, produce a limit boost request and connect to your account group.
+
Because you will be releasing this design with Amazon Bedrock Guardrails, make certain you have the proper AWS Identity and [Gain Access](http://steriossimplant.com) To [Management](https://git.caraus.tech) (IAM) approvals to utilize Amazon Bedrock Guardrails. For guidelines, see Establish permissions to utilize guardrails for content filtering.
+
Implementing guardrails with the ApplyGuardrail API
+
Amazon Bedrock [Guardrails](https://streaming.expedientevirtual.com) permits you to present safeguards, prevent damaging content, and examine models against crucial safety criteria. You can implement precaution for the DeepSeek-R1 design utilizing the Amazon Bedrock ApplyGuardrail API. This permits you to use guardrails to evaluate 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 develop the guardrail, see the GitHub repo.
+
The basic flow includes the following actions: First, the system receives an input for the model. This input is then processed through the [ApplyGuardrail API](http://128.199.175.1529000). If the input passes the guardrail check, it's sent to the model for inference. After receiving the model's output, [archmageriseswiki.com](http://archmageriseswiki.com/index.php/User:CodyWayne60360) another guardrail check is used. If the output passes this final check, it's returned as the result. 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 sections demonstrate reasoning using this API.
+
Deploy DeepSeek-R1 in Amazon Bedrock Marketplace
+
Amazon Bedrock Marketplace offers you access to over 100 popular, emerging, and specialized structure designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, total the following steps:
+
1. On the Amazon Bedrock console, select Model brochure under Foundation designs in the navigation pane. +At the time of composing this post, you can use 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 provider and select the DeepSeek-R1 design.
+
The model detail page offers important details about the design's capabilities, pricing structure, and application standards. You can discover detailed usage guidelines, including sample API calls and code snippets for combination. The design supports numerous text generation tasks, consisting of content development, code generation, and question answering, using its support learning optimization and CoT thinking abilities. +The page likewise includes implementation options and licensing details to help you begin with DeepSeek-R1 in your applications. +3. To begin using DeepSeek-R1, pick Deploy.
+
You will be triggered to configure the release details for DeepSeek-R1. The design ID will be pre-populated. +4. For Endpoint name, enter an endpoint name (in between 1-50 alphanumeric characters). +5. For Number of circumstances, enter a variety of circumstances (in between 1-100). +6. For Instance type, pick your instance type. For ideal efficiency with DeepSeek-R1, a GPU-based instance type like ml.p5e.48 xlarge is suggested. +Optionally, you can set up advanced security and facilities settings, including virtual private cloud (VPC) networking, service function consents, and file encryption settings. For most utilize cases, the default settings will work well. However, for production deployments, you might wish to review these settings to align with your company's security and compliance requirements. +7. Choose Deploy to begin utilizing the design.
+
When the deployment is complete, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock playground. +8. Choose Open in play ground to access an interactive user interface where you can try out different prompts and adjust design specifications like temperature level and maximum length. +When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat template for optimal results. For instance, material for inference.
+
This is an exceptional method to explore the design's thinking and text generation abilities before incorporating it into your applications. The play area provides instant feedback, helping you comprehend how the design reacts to different inputs and letting you fine-tune your triggers for optimal results.
+
You can quickly evaluate the model in the [playground](https://academy.theunemployedceo.org) through the UI. However, to invoke the released model [programmatically](http://www.localpay.co.kr) with any Amazon Bedrock APIs, you need to get the endpoint ARN.
+
Run reasoning using guardrails with the deployed DeepSeek-R1 endpoint
+
The following code example demonstrates how to perform reasoning utilizing a deployed 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 develop the guardrail, see the GitHub repo. After you have produced the guardrail, use the following code to execute guardrails. The script initializes the bedrock_runtime customer, configures inference specifications, and sends a request to create text based on a user prompt.
+
Deploy DeepSeek-R1 with SageMaker JumpStart
+
SageMaker JumpStart is an artificial intelligence (ML) center with FMs, integrated algorithms, and prebuilt ML solutions that you can deploy with just a couple of clicks. With SageMaker JumpStart, you can tailor pre-trained [designs](https://git.karma-riuk.com) to your use case, with your data, and release them into production utilizing either the UI or SDK.
+
Deploying DeepSeek-R1 model through SageMaker JumpStart provides 2 practical methods: using the intuitive SageMaker JumpStart UI or [carrying](http://39.101.160.118099) out programmatically through the SageMaker Python SDK. Let's check out both methods to help you pick the that finest fits your requirements.
+
Deploy DeepSeek-R1 through [SageMaker JumpStart](https://git.toolhub.cc) UI
+
Complete the following steps to deploy DeepSeek-R1 using [SageMaker](https://www.naukrinfo.pk) JumpStart:
+
1. On the SageMaker console, select Studio in the navigation pane. +2. First-time users will be triggered to create a domain. +3. On the SageMaker Studio console, pick JumpStart in the navigation pane.
+
The model browser displays available designs, with details like the company name and design abilities.
+
4. Search for DeepSeek-R1 to view the DeepSeek-R1 [model card](https://gitea.baxir.fr). +Each model card reveals essential details, including:
+
- Model name +- Provider name +- Task classification (for example, Text Generation). +Bedrock Ready badge (if appropriate), showing that this design can be registered with Amazon Bedrock, permitting you to use Amazon Bedrock APIs to invoke the model
+
5. Choose the model card to see the design details page.
+
The [model details](https://www.ontheballpersonnel.com.au) page includes the following details:
+
- The design name and service provider details. +Deploy button to deploy the design. +About and Notebooks tabs with detailed details
+
The About tab includes important details, such as:
+
- Model description. +- License details. +- Technical [specifications](https://servergit.itb.edu.ec). +- Usage guidelines
+
Before you deploy the design, it's advised to evaluate the design details and license terms to validate compatibility with your use case.
+
6. Choose Deploy to continue with deployment.
+
7. For Endpoint name, utilize the instantly produced name or develop a custom-made one. +8. For example type ΒΈ choose an [instance type](https://git.kuyuntech.com) (default: ml.p5e.48 xlarge). +9. For Initial instance count, enter the variety of circumstances (default: 1). +Selecting proper instance types and counts is crucial for cost and efficiency optimization. Monitor your release to change these settings as needed.Under Inference type, Real-time reasoning is chosen by default. This is optimized for sustained traffic and low latency. +10. Review all setups for precision. For this model, we highly advise adhering to SageMaker JumpStart default settings and making certain that network isolation remains in place. +11. Choose Deploy to deploy the model.
+
The deployment process can take numerous minutes to finish.
+
When [implementation](https://git.dev-store.ru) is total, your endpoint status will alter to [InService](http://203.171.20.943000). At this moment, the design is all set to accept inference requests through the endpoint. You can keep an eye on the deployment development on the SageMaker console Endpoints page, which will display relevant metrics and status details. When the deployment is total, you can conjure up the design using a [SageMaker runtime](http://gitlab.hupp.co.kr) client and [incorporate](https://moyatcareers.co.ke) it with your applications.
+
Deploy DeepSeek-R1 utilizing the SageMaker Python SDK
+
To begin with DeepSeek-R1 using the [SageMaker](http://tv.houseslands.com) Python SDK, you will need to set up the SageMaker Python SDK and make certain you have the necessary AWS permissions and environment setup. The following is a detailed code example that shows how to release 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 range from SageMaker Studio.
+
You can run extra demands against the predictor:
+
Implement guardrails and run reasoning with your [SageMaker JumpStart](https://bgzashtita.es) predictor
+
Similar to Amazon Bedrock, you can likewise utilize the [ApplyGuardrail API](http://www.asystechnik.com) with your SageMaker JumpStart predictor. You can produce a guardrail using the Amazon Bedrock console or the API, and [implement](http://162.14.117.2343000) it as shown in the following code:
+
Clean up
+
To avoid undesirable charges, finish the actions in this section to tidy up your resources.
+
Delete the Amazon Bedrock Marketplace implementation
+
If you deployed 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 implementations. +2. In the Managed implementations section, locate the endpoint you want to delete. +3. Select the endpoint, and on the Actions menu, pick Delete. +4. Verify the endpoint details to make certain you're deleting the correct deployment: 1. Endpoint name. +2. Model name. +3. Endpoint status
+
Delete the SageMaker JumpStart predictor
+
The SageMaker JumpStart model you released 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 explored how you can access and deploy the DeepSeek-R1 design using Bedrock Marketplace and SageMaker JumpStart. Visit SageMaker JumpStart in SageMaker Studio or Amazon Bedrock Marketplace now to get begun. For more details, refer to Use Amazon Bedrock tooling with Amazon SageMaker JumpStart models, SageMaker JumpStart pretrained designs, Amazon SageMaker [JumpStart](http://114.55.171.2313000) Foundation Models, Amazon Bedrock Marketplace, and Getting going with Amazon SageMaker JumpStart.
+
About the Authors
+
Vivek Gangasani is a Lead Specialist Solutions Architect for Inference at AWS. He helps emerging generative [AI](https://www.klaverjob.com) business develop innovative services using AWS services and accelerated calculate. Currently, he is concentrated on establishing techniques for fine-tuning and optimizing the reasoning efficiency of big language models. In his spare time, Vivek enjoys treking, seeing films, and trying different cuisines.
+
Niithiyn Vijeaswaran is a Generative [AI](https://yeetube.com) Specialist Solutions Architect with the Third-Party Model Science team at AWS. His location of focus is AWS [AI](https://eelam.tv) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.
+
Jonathan Evans is a Specialist Solutions Architect dealing with generative [AI](https://thecodelab.online) with the Third-Party Model Science team at AWS.
+
Banu Nagasundaram leads item, engineering, and strategic collaborations for Amazon SageMaker JumpStart, SageMaker's artificial intelligence and generative [AI](https://stroijobs.com) hub. She is enthusiastic about [developing solutions](https://www.belizetalent.com) that assist consumers accelerate their [AI](https://niaskywalk.com) [journey](http://gitlab.lecanal.fr) and unlock business value.
\ No newline at end of file