Skip to main content

Run prompts against LLMs hosted by https://lambdalabs.com/

Project description

llm-lambda-labs

PyPI Changelog Tests License

Run prompts against LLMs hosted by https://lambdalabs.com/

Installation

Install this plugin in the same environment as LLM.

llm install llm-lambda-labs

Usage

First, obtain an API key for Lambda Labs and set it like this:

llm keys set lambdalabs
# Paste key here

To see a list of available models, run this:

llm models

Run prompts like this:

llm -m lambdalabs/hermes3-405b 'short poem about a pelican with a twist'

The list of available models is fetched the first time the plugin is run. You can refresh that cached list by running:

llm lambdalabs refresh

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-lambda-labs
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

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_lambda_labs-0.1a0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

llm_lambda_labs-0.1a0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_lambda_labs-0.1a0.tar.gz.

File metadata

  • Download URL: llm_lambda_labs-0.1a0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_lambda_labs-0.1a0.tar.gz
Algorithm Hash digest
SHA256 efe570c5a24a92782bbbf65081a656295d53af5bebbda4c8a22c3152ef34605f
MD5 63779f128ee4f5f2d578eca7978f4528
BLAKE2b-256 2c07f060de1a388d53b220ab17b6137d1417ff75f4e372f28919e5d83231b8f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_lambda_labs-0.1a0.tar.gz:

Publisher: publish.yml on simonw/llm-lambda-labs

Attestations:

File details

Details for the file llm_lambda_labs-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_lambda_labs-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 68b8be4f60e05c41093c6301d360499ceb2fb33a4d34df2732996eb1b8b073ec
MD5 c444389b072c7679fb5ebd48a63f6fe4
BLAKE2b-256 1f3d142b80780249aaaa67e76ecbfc88058f61cd608022b262f171b5423b17f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_lambda_labs-0.1a0-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-lambda-labs

Attestations:

Supported by

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