From de93db96c3548cf0db42da36a3359046067a740d Mon Sep 17 00:00:00 2001 From: mattiethibeaul Date: Tue, 27 May 2025 20:30:10 +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..a8ca9c5 --- /dev/null +++ b/DeepSeek-R1-Model-now-Available-in-Amazon-Bedrock-Marketplace-And-Amazon-SageMaker-JumpStart.md @@ -0,0 +1,93 @@ +
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](https://aggeliesellada.gr)'s first-generation frontier model, DeepSeek-R1, in addition to the distilled variations ranging from 1.5 to 70 billion parameters to build, experiment, and properly scale your generative [AI](https://www.philthejob.nl) [concepts](https://musicplayer.hu) on AWS.
+
In this post, we show how to get going with DeepSeek-R1 on Amazon Bedrock Marketplace and SageMaker JumpStart. You can follow similar actions to deploy the distilled variations of the designs too.
+
Overview of DeepSeek-R1
+
DeepSeek-R1 is a large language design (LLM) developed by DeepSeek [AI](https://openedu.com) that utilizes support finding out to boost thinking abilities through a multi-stage training process from a DeepSeek-V3-Base foundation. An essential [identifying function](http://39.98.116.22230006) is its reinforcement learning (RL) action, [wiki.snooze-hotelsoftware.de](https://wiki.snooze-hotelsoftware.de/index.php?title=Benutzer:RudyStclair) which was used to fine-tune the design's actions beyond the standard pre-training and fine-tuning procedure. By including RL, DeepSeek-R1 can adapt better to user feedback and goals, eventually boosting both importance and clarity. In addition, DeepSeek-R1 employs a chain-of-thought (CoT) method, implying it's geared up to break down complex inquiries and factor through them in a detailed manner. This guided reasoning process enables the model to produce more accurate, transparent, and detailed responses. This model combines RL-based [fine-tuning](https://voyostars.com) with CoT abilities, aiming to create structured reactions while focusing on interpretability and user interaction. With its wide-ranging abilities DeepSeek-R1 has actually recorded the industry's attention as a flexible text-generation design that can be integrated into numerous workflows such as agents, rational thinking and information interpretation jobs.
+
DeepSeek-R1 utilizes a Mix of Experts (MoE) architecture and is 671 billion parameters in size. The MoE architecture permits activation of 37 billion criteria, enabling effective inference by routing queries to the most pertinent professional "clusters." This technique enables the design to [specialize](https://www.indianhighcaste.com) in various issue domains while maintaining total effectiveness. DeepSeek-R1 requires a minimum of 800 GB of HBM memory in FP8 format for reasoning. In this post, we will use an ml.p5e.48 xlarge instance to deploy the model. ml.p5e.48 xlarge includes 8 Nvidia H200 GPUs offering 1128 GB of GPU memory.
+
DeepSeek-R1 distilled models bring the [thinking capabilities](http://luodev.cn) of the main R1 model to more efficient architectures based upon [popular](https://savico.com.br) open designs like Qwen (1.5 B, 7B, 14B, and 32B) and Llama (8B and 70B). Distillation describes a procedure of training smaller sized, more efficient models to simulate the behavior and reasoning patterns of the bigger DeepSeek-R1 design, [utilizing](https://git.jiewen.run) it as an instructor model.
+
You can deploy DeepSeek-R1 model either through SageMaker JumpStart or Bedrock Marketplace. Because DeepSeek-R1 is an emerging design, we suggest releasing this design with guardrails in place. In this blog, we will utilize Amazon Bedrock Guardrails to present safeguards, avoid damaging content, [larsaluarna.se](http://www.larsaluarna.se/index.php/User:AlyssaMhk6405605) and [setiathome.berkeley.edu](https://setiathome.berkeley.edu/view_profile.php?userid=11857434) examine designs against crucial security requirements. At the time of writing this blog site, for DeepSeek-R1 deployments on SageMaker JumpStart and Bedrock Marketplace, [Bedrock Guardrails](https://busanmkt.com) supports only the ApplyGuardrail API. You can create several [guardrails tailored](https://gitlab.bzzndata.cn) to different usage cases and use them to the DeepSeek-R1 model, enhancing user experiences and standardizing security controls throughout your generative [AI](https://notitia.tv) applications.
+
Prerequisites
+
To release the DeepSeek-R1 design, you need access to an ml.p5e instance. To [examine](https://tmiglobal.co.uk) if you have quotas for P5e, open the Service Quotas console and under AWS Services, [choose Amazon](http://hmzzxc.com3000) 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 deploying. To request a limit boost, produce a limit boost demand and reach out to your account group.
+
Because you will be deploying this design with Amazon Bedrock Guardrails, make certain you have the appropriate AWS Identity and Gain Access To Management (IAM) consents to utilize Amazon Bedrock Guardrails. For directions, see Establish permissions to use guardrails for content filtering.
+
Implementing guardrails with the ApplyGuardrail API
+
Amazon Bedrock Guardrails allows you to present safeguards, prevent damaging content, and evaluate models against essential security criteria. You can [implement safety](http://27.128.240.723000) procedures for the DeepSeek-R1 model using the Amazon Bedrock ApplyGuardrail API. This allows you to use guardrails to assess user inputs and model responses deployed on Amazon Bedrock Marketplace and [surgiteams.com](https://surgiteams.com/index.php/User:VictorWalls) 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 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 design for [inference](http://work.diqian.com3000). After receiving the [design's](http://code.istudy.wang) output, another guardrail check is applied. If the output passes this last check, it's returned as the result. However, if either the input or output is intervened by the guardrail, a message is returned suggesting the nature of the intervention and whether it [occurred](https://activitypub.software) at the input or output phase. The examples showcased in the following sections show inference using this API.
+
Deploy DeepSeek-R1 in Amazon Bedrock Marketplace
+
Amazon Bedrock Marketplace offers you access to over 100 popular, emerging, and specialized foundation designs (FMs) through Amazon Bedrock. To gain access to DeepSeek-R1 in Amazon Bedrock, complete the following actions:
+
1. On the [Amazon Bedrock](https://git.brass.host) console, choose Model brochure under Foundation designs in the navigation pane. +At the time of composing this post, you can utilize the InvokeModel API to invoke the design. It doesn't support Converse APIs and other Amazon Bedrock tooling. +2. Filter for DeepSeek as a supplier and pick the DeepSeek-R1 design.
+
The design detail page supplies necessary details about the design's abilities, pricing structure, and execution standards. You can find detailed use guidelines, consisting of sample API calls and code snippets for combination. The [design supports](https://mypungi.com) different text generation jobs, consisting of content creation, code generation, and question answering, using its support finding out optimization and CoT reasoning abilities. +The page likewise consists of implementation options and [licensing details](https://www.sedatconsultlimited.com) 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 deployment details for DeepSeek-R1. The model ID will be pre-populated. +4. For Endpoint name, get in an endpoint name (in between 1-50 alphanumeric characters). +5. For Variety of instances, [bytes-the-dust.com](https://bytes-the-dust.com/index.php/User:KraigColdiron36) go into a variety of instances (between 1-100). +6. For Instance type, choose your circumstances type. For optimum performance with DeepSeek-R1, a GPU-based circumstances type like ml.p5e.48 xlarge is suggested. +Optionally, you can configure sophisticated security and facilities settings, including virtual personal cloud (VPC) networking, [it-viking.ch](http://it-viking.ch/index.php/User:Deana87396283) service role consents, and file encryption settings. For a lot of use cases, the default settings will work well. However, for [production](https://git.137900.xyz) implementations, you might desire to evaluate these settings to line up with your organization's security and compliance requirements. +7. Choose Deploy to begin utilizing the design.
+
When the release is total, you can test DeepSeek-R1's abilities straight in the Amazon Bedrock play area. +8. Choose Open in play area to access an interactive interface where you can explore various prompts and adjust design specifications like temperature level and optimum length. +When utilizing R1 with Bedrock's InvokeModel and Playground Console, utilize DeepSeek's chat design template for ideal outcomes. For instance, material for reasoning.
+
This is an excellent method to check out the model's reasoning and text generation abilities before integrating it into your applications. The play ground offers instant feedback, helping you understand how the model reacts to numerous inputs and letting you fine-tune your prompts for optimum results.
+
You can rapidly test the model in the play area through the UI. However, to invoke the released model programmatically with any Amazon Bedrock APIs, you require to get the endpoint ARN.
+
Run inference using guardrails with the [deployed](https://gitlab.kicon.fri.uniza.sk) DeepSeek-R1 endpoint
+
The following code example demonstrates how to perform reasoning utilizing a deployed DeepSeek-R1 design through Amazon Bedrock utilizing the invoke_model and ApplyGuardrail API. You can produce 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 created the guardrail, utilize the following code to carry out guardrails. The script initializes the bedrock_runtime client, configures inference specifications, 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 solutions that you can release with just a few clicks. With SageMaker JumpStart, you can tailor pre-trained models to your use case, with your information, and deploy them into [production utilizing](https://wiki.cemu.info) either the UI or SDK.
+
Deploying DeepSeek-R1 design through SageMaker JumpStart offers two hassle-free methods: utilizing the user-friendly SageMaker [JumpStart UI](https://tenacrebooks.com) or implementing programmatically through the SageMaker Python SDK. Let's explore both methods to help you select the method that best fits your needs.
+
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 triggered to [develop](https://uwzzp.nl) a domain. +3. On the SageMaker Studio console, select JumpStart in the navigation pane.
+
The model internet browser displays available designs, with details like the provider name and model abilities.
+
4. Search for DeepSeek-R1 to see the DeepSeek-R1 model card. +Each design card shows crucial details, including:
+
- Model name +- [Provider](http://ufiy.com) name +- Task classification (for instance, Text Generation). +Bedrock Ready badge (if relevant), indicating that this design can be registered with Amazon Bedrock, allowing you to utilize Amazon Bedrock APIs to invoke the design
+
5. Choose the design card to see the design details page.
+
The design details page includes the following details:
+
- The design name and service provider details. +Deploy button to release the model. +About and Notebooks tabs with [detailed](https://goodinfriends.com) details
+
The About tab consists of essential details, such as:
+
- Model description. +- License details. +- Technical specs. +- Usage guidelines
+
Before you deploy the design, it's suggested to evaluate the model details and license terms to confirm compatibility with your use case.
+
6. Choose Deploy to proceed with deployment.
+
7. For Endpoint name, utilize the [instantly produced](https://mount-olive.com) name or create a customized one. +8. For example type ΒΈ choose an instance type (default: ml.p5e.48 xlarge). +9. For Initial circumstances count, get in the variety of circumstances (default: 1). +Selecting proper circumstances types and counts is essential for expense and efficiency optimization. Monitor your implementation to change these settings as needed.Under Inference type, Real-time inference is selected by default. This is optimized 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 seclusion remains in place. +11. Choose Deploy to deploy the model.
+
The can take several minutes to finish.
+
When implementation is total, your endpoint status will alter to InService. At this moment, the design is all set to accept reasoning requests through the endpoint. You can monitor the release progress on the SageMaker console Endpoints page, which will show relevant metrics and status details. When the deployment is complete, you can conjure up the [design utilizing](https://techtalent-source.com) a SageMaker runtime customer and integrate it with your applications.
+
Deploy DeepSeek-R1 using the SageMaker Python SDK
+
To begin with DeepSeek-R1 using the SageMaker Python SDK, you will need 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 demonstrates how to release and use DeepSeek-R1 for inference programmatically. The code for releasing the design is offered 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 inference with your SageMaker JumpStart predictor
+
Similar to Amazon Bedrock, you can also utilize the ApplyGuardrail API with your SageMaker JumpStart predictor. You can create a guardrail utilizing the Amazon Bedrock console or the API, and implement it as shown in the following code:
+
Clean up
+
To prevent undesirable charges, finish the steps in this area to tidy up your resources.
+
Delete the Amazon Bedrock Marketplace release
+
If you deployed the [design utilizing](https://www.9iii9.com) Amazon Bedrock Marketplace, total the following steps:
+
1. On the Amazon Bedrock console, under Foundation designs in the navigation pane, pick Marketplace implementations. +2. In the [Managed releases](https://sttimothysignal.org) section, locate the endpoint you want to erase. +3. Select the endpoint, and on the Actions menu, pick Delete. +4. Verify the endpoint details to make certain you're erasing the right implementation: 1. Endpoint name. +2. Model name. +3. [Endpoint](https://igit.heysq.com) 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 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 models, Amazon SageMaker JumpStart 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](http://187.216.152.151:9999) companies construct ingenious solutions using AWS services and sped up calculate. Currently, he is focused on developing methods for fine-tuning and optimizing the inference performance of large language designs. In his downtime, Vivek enjoys hiking, enjoying films, and attempting various foods.
+
Niithiyn Vijeaswaran is a Generative [AI](https://jobs.theelitejob.com) Specialist Solutions Architect with the Third-Party Model Science group at AWS. His area of focus is AWS [AI](http://101.132.136.5:8030) accelerators (AWS Neuron). He holds a Bachelor's degree in Computer technology and Bioinformatics.
+
Jonathan Evans is an Expert Solutions Architect dealing with generative [AI](http://e-kou.jp) with the Third-Party Model Science group at AWS.
+
Banu Nagasundaram leads item, engineering, and strategic partnerships for Amazon SageMaker JumpStart, [SageMaker's artificial](https://clickcareerpro.com) intelligence and generative [AI](https://weeddirectory.com) center. She is passionate about developing options that help customers accelerate their [AI](https://git2.nas.zggsong.cn:5001) journey and unlock business value.
\ No newline at end of file