fix: Token limits for Amazon Bedrock Kimi K2 models#1637
Open
msukmanowsky wants to merge 2 commits intoanomalyco:devfrom
Open
fix: Token limits for Amazon Bedrock Kimi K2 models#1637msukmanowsky wants to merge 2 commits intoanomalyco:devfrom
msukmanowsky wants to merge 2 commits intoanomalyco:devfrom
Conversation
Correct context and output limits for moonshot.kimi-k2-thinking and moonshotai.kimi-k2.5 on Amazon Bedrock: - context: 256_000 → 262_143 - output: 256_000 → 16_000
Collaborator
|
mind linking doc to that? |
Author
|
@rekram1-node added links in the comments but also for your reference: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-moonshot-ai-kimi-k2-5.html Neither actually specify the exact output limit so I've left it at 16k. Context window was validated empirically via manual testing. |
Collaborator
Author
|
@rekram1-node they do, but I was referring to the lack of specificity. I highly doubt it's actually 16,000 and more likely something like 16,384 (2**14). We may be a little conservative here, but better than the status quo where it assumed you can use the full context for output. |
Author
|
@rekram1-node bumping this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Corrects the context window and max output token limits for two Kimi K2 models on Amazon Bedrock:
moonshot.kimi-k2-thinkingmoonshotai.kimi-k2.5Changes
limit.contextlimit.outputThe previous values appeared to be placeholders. The corrected values match the actual limits advertised by Amazon Bedrock for these models.
https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-moonshot-ai-kimi-k2-5.html
https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-moonshot-ai-kimi-k2-thinking.html