Skip to main content

llm-llamafile

PyPI Changelog Tests License

Access llamafile localhost models via LLM

Installation

Install this plugin in the same environment as LLM.

llm install llm-llamafile

Usage

Make sure you have a llamafile running on localhost, serving an OpenAI compatible API endpoint on port 8080.

You can then use llm to interact with that model like so:

llm -m llamafile "3 neat characteristics of a pelican"

Development

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

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

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest

Release files for llm-llamafile 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-llamafile 0.1
File Size Uploaded
llm_llamafile-0.1.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 12.8 kB

Release files / llm_llamafile-0.1.tar.gz

Download URL llm_llamafile-0.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e7fee71cac12f1b3230b47f1aa15e8872c8efd764ac886a90a20ab11e72e7549
BLAKE2b-256 checksum
How to use checksums
cb911b7e844fddccd7e1b03ffecb2bfd70bb2eca0383d19604df21015cded932
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

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

Download URL llm_llamafile-0.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85feab4b87c24f060a920101c1700a7fb00ea8b9b6b0ee9bf423c8e83286e5e2
BLAKE2b-256 checksum
How to use checksums
11cd500b8c2ecf640ca13178ceebfb1de6576b4ee642022b7c41634e4dde0a44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

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