Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Command R & R+ on Amazon Bedrock #3362

Closed
Manouchehri opened this issue Apr 30, 2024 · 0 comments · Fixed by #3586
Closed

[Feature]: Command R & R+ on Amazon Bedrock #3362

Manouchehri opened this issue Apr 30, 2024 · 0 comments · Fixed by #3586
Labels
enhancement New feature or request new model

Comments

@Manouchehri
Copy link
Collaborator

The Feature

https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-cohere-command-r-plus.html

Chat model:

aws bedrock-runtime invoke-model-with-messages \
--model-id "cohere.command-r-plus-v1:0" \
--messages '[{"role":"user","content":[{"text":"what'\''s up?"}]},{"role":"assistant","content":[{"text":"Not much, what can I help you with today?"}]},{"role":"user","content":[{"text":"how are you today?"}]}]' \
--inference-config '{"maxTokens":400,"temperature":0.75,"topP":0.01,"stopSequences":[]}' \
--additional-model-request-fields '{"k":0}' \
--region us-east-1

Text interface:

aws bedrock-runtime invoke-model \
--model-id cohere.command-r-plus-v1:0 \
--body "{\"message\":\"what's up?\\nNot much, what can I help you with today?\",\"max_tokens\":400,\"temperature\":0.75,\"p\":0.01,\"k\":0,\"stop_sequences\":[]}" \
--cli-binary-format raw-in-base64-out \
--region us-east-1 \
invoke-model-output.txt

Motivation, pitch

https://aws.amazon.com/about-aws/whats-new/2024/04/cohere-command-r-r-plus-amazon-bedrock/

Twitter / LinkedIn details

https://twitter.com/DaveManouchehri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new model
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant