llm-lambda-labs


Namellm-lambda-labs JSON
Version 0.1a0 PyPI version JSON
download
home_pageNone
SummaryRun prompts against LLMs hosted by https://lambdalabs.com/
upload_time2024-11-04 17:56:25
maintainerNone
docs_urlNone
authorSimon Willison
requires_python>=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # llm-lambda-labs

[![PyPI](https://img.shields.io/pypi/v/llm-lambda-labs.svg)](https://pypi.org/project/llm-lambda-labs/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm-lambda-labs?include_prereleases&label=changelog)](https://github.com/simonw/llm-lambda-labs/releases)
[![Tests](https://github.com/simonw/llm-lambda-labs/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-lambda-labs/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-lambda-labs/blob/main/LICENSE)

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

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-lambda-labs
```
## Usage

First, [obtain an API key](https://cloud.lambdalabs.com/api-keys) for Lambda Labs and set it like this:

```bash
llm keys set lambdalabs
# Paste key here
```

To see a list of available models, run this:

```bash
llm models
```
Run prompts like this:
```bash
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:

```bash
llm lambdalabs refresh
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-lambda-labs
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llm-lambda-labs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/2c/07/f060de1a388d53b220ab17b6137d1417ff75f4e372f28919e5d83231b8f5/llm_lambda_labs-0.1a0.tar.gz",
    "platform": null,
    "description": "# llm-lambda-labs\n\n[![PyPI](https://img.shields.io/pypi/v/llm-lambda-labs.svg)](https://pypi.org/project/llm-lambda-labs/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/llm-lambda-labs?include_prereleases&label=changelog)](https://github.com/simonw/llm-lambda-labs/releases)\n[![Tests](https://github.com/simonw/llm-lambda-labs/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-lambda-labs/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-lambda-labs/blob/main/LICENSE)\n\nRun prompts against LLMs hosted by https://lambdalabs.com/\n\n## Installation\n\nInstall this plugin in the same environment as [LLM](https://llm.datasette.io/).\n```bash\nllm install llm-lambda-labs\n```\n## Usage\n\nFirst, [obtain an API key](https://cloud.lambdalabs.com/api-keys) for Lambda Labs and set it like this:\n\n```bash\nllm keys set lambdalabs\n# Paste key here\n```\n\nTo see a list of available models, run this:\n\n```bash\nllm models\n```\nRun prompts like this:\n```bash\nllm -m lambdalabs/hermes3-405b 'short poem about a pelican with a twist'\n```\n\nThe list of available models is fetched the first time the plugin is run. You can refresh that cached list by running:\n\n```bash\nllm lambdalabs refresh\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd llm-lambda-labs\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\nllm install -e '.[test]'\n```\nTo run the tests:\n```bash\npython -m pytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Run prompts against LLMs hosted by https://lambdalabs.com/",
    "version": "0.1a0",
    "project_urls": {
        "CI": "https://github.com/simonw/llm-lambda-labs/actions",
        "Changelog": "https://github.com/simonw/llm-lambda-labs/releases",
        "Homepage": "https://github.com/simonw/llm-lambda-labs",
        "Issues": "https://github.com/simonw/llm-lambda-labs/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f3d142b80780249aaaa67e76ecbfc88058f61cd608022b262f171b5423b17f4",
                "md5": "c444389b072c7679fb5ebd48a63f6fe4",
                "sha256": "68b8be4f60e05c41093c6301d360499ceb2fb33a4d34df2732996eb1b8b073ec"
            },
            "downloads": -1,
            "filename": "llm_lambda_labs-0.1a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c444389b072c7679fb5ebd48a63f6fe4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8337,
            "upload_time": "2024-11-04T17:56:23",
            "upload_time_iso_8601": "2024-11-04T17:56:23.622261Z",
            "url": "https://files.pythonhosted.org/packages/1f/3d/142b80780249aaaa67e76ecbfc88058f61cd608022b262f171b5423b17f4/llm_lambda_labs-0.1a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c07f060de1a388d53b220ab17b6137d1417ff75f4e372f28919e5d83231b8f5",
                "md5": "63779f128ee4f5f2d578eca7978f4528",
                "sha256": "efe570c5a24a92782bbbf65081a656295d53af5bebbda4c8a22c3152ef34605f"
            },
            "downloads": -1,
            "filename": "llm_lambda_labs-0.1a0.tar.gz",
            "has_sig": false,
            "md5_digest": "63779f128ee4f5f2d578eca7978f4528",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7968,
            "upload_time": "2024-11-04T17:56:25",
            "upload_time_iso_8601": "2024-11-04T17:56:25.205891Z",
            "url": "https://files.pythonhosted.org/packages/2c/07/f060de1a388d53b220ab17b6137d1417ff75f4e372f28919e5d83231b8f5/llm_lambda_labs-0.1a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-04 17:56:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonw",
    "github_project": "llm-lambda-labs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "llm-lambda-labs"
}
        
Elapsed time: 1.20029s