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

To see a list of model information that has been stored in the cache, run this:

llm lambdalabs models

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

Run this to capture new recordings of HTTP interactions for the tests:

PYTEST_LAMBDALABS_KEY="$(llm keys get lambdalabs)" pytest --record-mode once

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.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

llm_lambda_labs-0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_lambda_labs-0.2.tar.gz.

File metadata

  • Download URL: llm_lambda_labs-0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_lambda_labs-0.2.tar.gz
Algorithm Hash digest
SHA256 2e677c180b9a24001123c8dd4ae6bb597c97d49bc78ece650f0c0838ee714265
MD5 47a7382b72554ddb88aa39cd0f89acd8
BLAKE2b-256 6c7de7c2a496cd42edffc07c40970d1b0aa22641abdd40c22072861ee7d2da78

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_lambda_labs-0.2-py3-none-any.whl.

File metadata

  • Download URL: llm_lambda_labs-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_lambda_labs-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d3f15d75c1e3b3e98de60cfe38a9e971888e438614a7582b9e6f9a25ac47539
MD5 ab749a3f428cd35e5c8ce352dd85c27c
BLAKE2b-256 bf2f986335420459b048dbb2fe46e30c56a74c1b9427c93147b212bf57559d69

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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