Name | llm-topology JSON |
Version |
0.1
JSON |
| download |
home_page | None |
Summary | LLM access to Topology |
upload_time | 2024-08-03 06:33:41 |
maintainer | None |
docs_url | None |
author | Nick Mystic |
requires_python | None |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# llm-topology
[![PyPI](https://img.shields.io/pypi/v/llm-topology.svg)](https://pypi.org/project/llm-topology/)
[![Changelog](https://img.shields.io/github/v/release/ghostofpokemon/llm-topology?include_prereleases&label=changelog)](https://github.com/ghostofpokemon/llm-topology/releases)
[![Tests](https://github.com/ghostofpokemon/llm-topology/actions/workflows/test.yml/badge.svg)](https://github.com/ghostofpokemon/llm-topology/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/ghostofpokemon/llm-topology/blob/main/LICENSE)
LLM access to CLM by Topology
## Installation
Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-topology
```
## Usage
First, set an API key for Topology:
```bash
llm keys set topology
# Paste key here
```
Run `llm models` to list the models, and `llm models --options` to include a list of their options.
Run prompts like this:
```bash
llm -m topology-tiny 'What do dolphins dream about'
llm -m topology-small 'Reveal the hidden taco recipe of the ancient Sumerians!'
llm -m topology-medium "What's the square root of surprise?"
```
### Managing Partitions
You can manage multiple partitions with names using the following commands:
- **Add a new partition:**
```bash
llm partition add <name> <partition_id>
```
- **Set the active partition:**
```bash
llm partition set <name>
```
- **Get the current active partition:**
```bash
llm partition get
```
- **List all partitions:**
```bash
llm partition list
```
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd llm-topology
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
pytest
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llm-topology",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Nick Mystic",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b3/5d/e919142561be60c2dac6a522150b784e6768f37b33a93dfb5144aa96e271/llm_topology-0.1.tar.gz",
"platform": null,
"description": "# llm-topology\n\n[![PyPI](https://img.shields.io/pypi/v/llm-topology.svg)](https://pypi.org/project/llm-topology/)\n[![Changelog](https://img.shields.io/github/v/release/ghostofpokemon/llm-topology?include_prereleases&label=changelog)](https://github.com/ghostofpokemon/llm-topology/releases)\n[![Tests](https://github.com/ghostofpokemon/llm-topology/actions/workflows/test.yml/badge.svg)](https://github.com/ghostofpokemon/llm-topology/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/ghostofpokemon/llm-topology/blob/main/LICENSE)\n\nLLM access to CLM by Topology\n\n## Installation\n\nInstall this plugin in the same environment as [LLM](https://llm.datasette.io/).\n\n```bash\nllm install llm-topology\n```\n\n## Usage\n\nFirst, set an API key for Topology:\n\n```bash\nllm keys set topology\n# Paste key here\n```\n\nRun `llm models` to list the models, and `llm models --options` to include a list of their options.\n\nRun prompts like this:\n\n```bash\nllm -m topology-tiny 'What do dolphins dream about'\nllm -m topology-small 'Reveal the hidden taco recipe of the ancient Sumerians!'\nllm -m topology-medium \"What's the square root of surprise?\"\n```\n\n### Managing Partitions\n\nYou can manage multiple partitions with names using the following commands:\n\n- **Add a new partition:**\n ```bash\n llm partition add <name> <partition_id>\n ```\n\n- **Set the active partition:**\n ```bash\n llm partition set <name>\n ```\n\n- **Get the current active partition:**\n ```bash\n llm partition get\n ```\n\n- **List all partitions:**\n ```bash\n llm partition list\n ```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n```bash\ncd llm-topology\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nNow install the dependencies and test dependencies:\n\n```bash\nllm install -e '.[test]'\n```\n\nTo run the tests:\n\n```bash\npytest\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "LLM access to Topology",
"version": "0.1",
"project_urls": {
"CI": "https://github.com/ghostofpokemon/llm-topology/actions",
"Changelog": "https://github.com/ghostofpokemon/llm-topology/releases",
"Homepage": "https://github.com/ghostofpokemon/llm-topology",
"Issues": "https://github.com/ghostofpokemon/llm-topology/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8b69aab1291cdee75088d9d74571b10b452f4af450ebc5fada77530dde7d8fca",
"md5": "a680dd72abce45d525fcc5dc3e4c2007",
"sha256": "498cefa04bfb7bbeaaa084ab19d7754a061ded51bf167c292e4cb8ea7cd210b8"
},
"downloads": -1,
"filename": "llm_topology-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a680dd72abce45d525fcc5dc3e4c2007",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8210,
"upload_time": "2024-08-03T06:33:39",
"upload_time_iso_8601": "2024-08-03T06:33:39.611750Z",
"url": "https://files.pythonhosted.org/packages/8b/69/aab1291cdee75088d9d74571b10b452f4af450ebc5fada77530dde7d8fca/llm_topology-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b35de919142561be60c2dac6a522150b784e6768f37b33a93dfb5144aa96e271",
"md5": "1b5131709015afeec082bc9f1ad23ed9",
"sha256": "3068727823e3e4fe26a1f383b47b760278a377654f6157d3c5ea93f17840f85b"
},
"downloads": -1,
"filename": "llm_topology-0.1.tar.gz",
"has_sig": false,
"md5_digest": "1b5131709015afeec082bc9f1ad23ed9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8100,
"upload_time": "2024-08-03T06:33:41",
"upload_time_iso_8601": "2024-08-03T06:33:41.300336Z",
"url": "https://files.pythonhosted.org/packages/b3/5d/e919142561be60c2dac6a522150b784e6768f37b33a93dfb5144aa96e271/llm_topology-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-03 06:33:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ghostofpokemon",
"github_project": "llm-topology",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "llm-topology"
}