Skip to main content

Interact with llama-server models

Project description

llm-llama-server

PyPI Changelog Tests License

Interact with llama-server models

Installation

Install this plugin in the same environment as LLM.

llm install llm-llama-server

Usage

You'll need to be running a llama-server on port 8080 to use this plugin.

You can brew install llama.cpp to obtain that binary. Then run it like this:

llama-server -hf unsloth/gemma-3-4b-it-GGUF:Q4_K_XL

This loads and serves the unsloth/gemma-3-4b-it-GGUF GGUF version of Gemma 3 4B - a 3.2GB download.

To access regular models from LLM, use the llama-server model:

llm -m llama-server "say hi"

For vision models, use llama-server-vision:

llm -m llama-server-vision describe -a path/to/image.png

For models with tools (which also support vision) use llama-server-tools:

llm -m llama-server-tools -T llm_time 'time?' --td

You'll need to run the llama-server with the --jinja flag in order for this to work:

llama-server --jinja -hf unsloth/gemma-3-4b-it-GGUF:Q4_K_XL

Development

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

cd llm-llama-server
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_llama_server-0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_llama_server-0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file llm_llama_server-0.2.tar.gz.

File metadata

  • Download URL: llm_llama_server-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_llama_server-0.2.tar.gz
Algorithm Hash digest
SHA256 ffb45c48814804f1b88cb136bfb66a39672392138ffdc14615178e8fa37887c9
MD5 a9e63c7e875dee5592fb8646e01b5a97
BLAKE2b-256 3ae886705c9f99737c8e22bf391cfafc9535f5043ab2366a4471bbeed8488887

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_llama_server-0.2.tar.gz:

Publisher: publish.yml on simonw/llm-llama-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_llama_server-0.2-py3-none-any.whl.

File metadata

  • Download URL: llm_llama_server-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_llama_server-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d129489cd82051608512ae9b1832d36a736d7108b5f4c7ed778df7ada0a8fd3
MD5 e0db5c4c5aa0cf17462f5ed7755eeea8
BLAKE2b-256 8e4e3ecfd864bfabf6b49ca86f4f040b2674093ca777893d83aacbb287d24086

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_llama_server-0.2-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-llama-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page