Skip to main content

llm-horde

LLM plugin for models hosted by AI Horde

Installation

First, install the LLM command-line utility.

Now install this plugin in the same environment as LLM.

llm install https://github.com/spinagon/llm-horde/archive/refs/heads/main.zip

Configuration

First Register an account which will generate for you an API key. Store that key somewhere.

  • If you do not want to register, you can use '0000000000' as api_key to connect anonymously. If you don't set your key, it will be used automatically. However anonymous accounts have the lowest priority when there's too many concurrent requests!
  • To increase your priority you will need a unique API key and then to increase your Kudos. Read how Kudos are working.

You can set that as an environment variable called AIHORDE_KEY, or add it to the llm set of saved keys using:

llm keys set aihorde
Enter key: <paste key here>

Usage

To list available models, run:

llm models list

You should see a list that looks something like this:

AI Horde: horde/Henk717/airochronos-33B
AI Horde: horde/tgi-fp16-8k/Xwin-LM/Xwin-LM-70B-V0.1
AI Horde: horde/Gryphe/MythoMax-L2-13b

To run a prompt against a model, pass its full model ID to the -m option, like this:

llm -m horde/Henk717/airochronos-33B "Five spooky names for a pet vampire bat"

You can set a shorter alias for a model using the llm aliases command like so:

llm aliases set airochronos horde/Henk717/airochronos-33B

Now you can prompt it using:

cat llm_horde.py | llm -m airochronos -s 'write some pytest tests for this'

If you use "horde" as a model name, you can select one or more models matching a regex pattern using "pattern" option:

llm -m horde -o pattern "13B" "What is the capital of Lebanon?"

You can change the maximum length of returned text by using "max_tokens" option (80 by default), most workers will not :

llm -m horde -o pattern mythomax -s 'Write a sonnet' -o max_tokens 120

If you want to continue generating text without new prompt, try:

llm -c ""

To start interactive chat, type

llm chat -m horde -o pattern llama2

Metadata

Release files for llm-horde 0.5

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-horde 0.5
File Size Uploaded Provenance
llm-horde-0.5.tar.gz 9.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-horde 0.5
File Interpreter ABI Platform
llm_horde-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / llm-horde-0.5.tar.gz

Download URL llm-horde-0.5.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b7ca2afb63ef3f9c19987e1d4a61df59f2a67a39ec3a76fc78d52b03577231ca
BLAKE2b-256 checksum
How to use checksums
e9cd5e29d5ccc4457b42222f9af93e21cec86c2fa52bfcbc868e03ca8ee58520
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / llm_horde-0.5-py3-none-any.whl

Download URL llm_horde-0.5-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60d111fd348eae2b243d696f3f64c8aaedd43e48df48c30b6c88f09088f721bb
BLAKE2b-256 checksum
How to use checksums
c1c59795443160567775d7d591b308f69a112cea80aa1e716f5f5db7269cfe30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for llm-horde 0.5

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.

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