Skip to main content

llm-bedrock-meta

PyPI Changelog Tests License

Plugin for LLM adding support for Meta LLama 2 and 3 models in Amazon Bedrock

Installation

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

llm install llm-bedrock-meta

Configuration

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

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

export AWS_DEFAULT_REGION=us-west-2
export AWS_PROFILE=personal

Usage

This plugin adds models called bedrock-llama2-13b, bedrock-llama2-70b, bedrock-llama3-8b-instruct, and bedrock-llama3-70b-instruct. You can also use it with the aliases like bl2 or bl2-70.

You can query them like this:

llm -m bl3-70-i "Ten great names for a new space station"
llm -m bl3-70-i "Ten great names for a new space station"

You can also chat with the model:

llm chat -m bl3-70-i

Options

  • -o max_gen_len 1024, default 2_048: The maximum number of tokens to generate before stopping.
  • -o verbose 1, default 0: Output more verbose logging.
  • -o temperature 0.8, default 0.6: Use a lower value to decrease randomness in the response.
  • top_p, default 0.9: Use a lower value to ignore less probable options. Set to 0 or 1.0 to disable.

Use like this:

llm -m bl3-70-i -o max_gen_len 20 "Sing me the alphabet"
 Ah, ah, ah! Here's the alphabet song for you:


A, B, C, D, E, F, G,
H, I, J, K, L, M, N, O,
P, Q, R, S, T, U, V, W,
X, Y, Z,
Now I know my ABCs,
Next time won't you sing with me?


Hope that brought a smile to your face!

Metadata

Release files for llm-bedrock-meta 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-bedrock-meta 0.1.8
File Size Uploaded Provenance
llm_bedrock_meta-0.1.8.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-bedrock-meta 0.1.8
File Interpreter ABI Platform
llm_bedrock_meta-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / llm_bedrock_meta-0.1.8.tar.gz

Download URL llm_bedrock_meta-0.1.8.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4e6099d98b44af26d684094c03c58bffc81eeb66d60258bc815c971095d08361
BLAKE2b-256 checksum
How to use checksums
0b8865c39214d409fefb63f2f188b9d6f37bbb441549c6f93bc2e339827ab322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / llm_bedrock_meta-0.1.8-py3-none-any.whl

Download URL llm_bedrock_meta-0.1.8-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
418b01a238accabfb6e258abb04e6bc7a0e8cc202904c474a06836f50af8fa54
BLAKE2b-256 checksum
How to use checksums
66aacbd2ac2c7e33bcc682e8a2cf6b2c08f2724468d5a6d1776c858b34cdebaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Security for llm-bedrock-meta 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page