Skip to main content

llm-topology

PyPI Changelog Tests License

LLM access to CLM by Topology

Installation

Install this plugin in the same environment as LLM.

llm install llm-topology

Usage

First, set an API key for Topology:

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:

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:

    llm partition add <name> <partition_id>
    
  • Set the active partition:

    llm partition set <name>
    
  • Get the current active partition:

    llm partition get
    
  • List all partitions:

    llm partition list
    

Development

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

cd llm-topology
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for llm-topology 0.1

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-topology 0.1
File Size Uploaded Provenance
llm_topology-0.1.tar.gz 8.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-topology 0.1
File Interpreter ABI Platform
llm_topology-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / llm_topology-0.1.tar.gz

Download URL llm_topology-0.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3068727823e3e4fe26a1f383b47b760278a377654f6157d3c5ea93f17840f85b
BLAKE2b-256 checksum
How to use checksums
b35de919142561be60c2dac6a522150b784e6768f37b33a93dfb5144aa96e271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release files / llm_topology-0.1-py3-none-any.whl

Download URL llm_topology-0.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
498cefa04bfb7bbeaaa084ab19d7754a061ded51bf167c292e4cb8ea7cd210b8
BLAKE2b-256 checksum
How to use checksums
8b69aab1291cdee75088d9d74571b10b452f4af450ebc5fada77530dde7d8fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Security for llm-topology 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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