AI Cloud Architect

Unlock model insights with log probability support for Amazon Bedrock Custom Model Import

AWSBlog post by Manoj Selvakumar, Lokeshwaran Ravi, Revendra Kumar and Yanyan ZhangAWS Artificial Intelligence Blog

In this post, we explore how log probabilities work with imported models in Amazon Bedrock. You will learn what log probabilities are, how to enable them in your API calls, and how to interpret the returned data. We also highlight practical applications—from detecting potential hallucinations to optimizing RAG systems and evaluating fine-tuned models—that demonstrate how these insights can improve your AI applications, helping you build more trustworthy solutions with your custom models.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Bedrock Custom Model Import now returns token-level log probabilities when return_logprobs is set to true in the InvokeModel request, giving confidence data for prompt and generated tokens.

Who it is for

Teams serving fine-tuned Llama, Mistral or Qwen models on Bedrock that need confidence signals for hallucination checks, RAG filtering or evaluation.

Key points

  • Enabled with "return_logprobs": true; works with InvokeModel and InvokeModelWithResponseStream.
  • Applies only to models imported after July 31, 2025, per the post.
  • Post shows decoding with the model's tokenizer and converting log probabilities to probabilities.

Timeline

Posts about Amazon Bedrock Custom Model Import, oldest first.

  1. This postUnlock model insights with log probability support for Amazon Bedrock Custom Model Import
  2. Customer storyHow Amazon Bedrock Custom Model Import streamlined LLM deployment for Salesforce · AWS · Customer story
  3. How-toDeploy GPT-OSS models with Amazon Bedrock Custom Model Import · AWS · How-to