Skip to main content

LLM plugin for Mistral on AWS Bedrock

Project description

llm-bedrock-mistral

PyPI Changelog License

Plugin for LLM adding support for Mistral models in Amazon Bedrock

Installation

Install this plugin in the same environment as LLM. From the current directory

llm install llm-bedrock-mistral

Configuration

You will need to specify AWS Configuration with the normal boto3 and environment variables.

For example, to use the region us-east-1 and AWS credentials under the personal profile, set the environment variables

export AWS_DEFAULT_REGION=us-east-1
export AWS_PROFILE=personal

Usage

This plugin adds model called bedrock-mistral-7b-instruct and bedrock-mixtral-8x7b-instruct. You can also use it with the alias bm7 or bm8.

You can query them like this:

llm -m bedrock-mistral-7b-instruct "Ten great names for a new space station"
llm -m bm7 "Ten great names for a new space station"

You can also chat with the model:

llm chat -m bm8

Options

  • -o max_tokens, Specify the maximum number of tokens to use in the generated response.
  • -o temperature, Controls the randomness of predictions made by the model.
  • -o top_p, Controls the diversity of text that the model generates by setting the percentage.
  • -o top_k, Controls the number of most-likely candidates that the model considers for the next token.

Use like this:

llm -m bm7 -o max_tokens 20 -o temperature 0 "Return the alphabet. Be succinct."
 Here is the alphabet in English: A, B, C, D, E, F,

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_bedrock_mistral-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_bedrock_mistral-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_bedrock_mistral-0.1.0.tar.gz.

File metadata

  • Download URL: llm_bedrock_mistral-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llm_bedrock_mistral-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75260048291966386bc870b0a18f0d1fcb9257fb81036fa45b8f22be632149ac
MD5 6c6bf212757cba4d963b0e79ac236d5e
BLAKE2b-256 3ed31ce111baf1dba95a6619839df80d2492d4af30da9824297d87b60af0067e

See more details on using hashes here.

File details

Details for the file llm_bedrock_mistral-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_bedrock_mistral-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27b01ef3e7f6fa583a6b7f6edee13636d3c3d24a99acd7c7b7b10ee03113e16a
MD5 84b30d2a3eab576803ab767650482fdb
BLAKE2b-256 35b4ed4dc7660c3fa5d8efcd6713ed35e77342eb5d885c38c6c43bda6ebf75e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page