elizaOS Local AI Plugin - Local LLM inference using llama.cpp for text, embeddings, vision, and audio
Project description
elizaOS Local AI Plugin (Python)
Python implementation of the Local AI plugin for elizaOS, providing local LLM inference using llama.cpp.
Installation
pip install elizaos-plugin-local-ai
Requirements
- Python 3.11+
- llama-cpp-python
- Model files (GGUF format)
Usage
from elizaos_plugin_local_ai import LocalAIPlugin, LocalAIConfig, TextGenerationParams
# Create configuration
config = LocalAIConfig(
models_dir="/path/to/models",
small_model="DeepHermes-3-Llama-3-3B-Preview-q4.gguf",
)
# Initialize plugin
plugin = LocalAIPlugin(config)
# Generate text
result = plugin.generate_text(TextGenerationParams(
prompt="Tell me a joke",
max_tokens=100,
))
print(result.text)
Configuration
Environment variables:
MODELS_DIR: Directory containing model filesCACHE_DIR: Directory for cachingLOCAL_SMALL_MODEL: Filename of small modelLOCAL_LARGE_MODEL: Filename of large modelLOCAL_EMBEDDING_MODEL: Filename of embedding modelLOCAL_EMBEDDING_DIMENSIONS: Embedding vector dimensions (default: 384)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elizaos_plugin_local_ai-2.0.0a5.tar.gz.
File metadata
- Download URL: elizaos_plugin_local_ai-2.0.0a5.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a37397400a00111f55e665ef0acf44c56da1523dcf233c853e7e6826a7a50257
|
|
| MD5 |
d6b75bf041129c37024d2ad639ebd297
|
|
| BLAKE2b-256 |
81b9d76eb993b7d1bd91ef5a93e5e05f340cdcaf63e23329798de7338ab0b324
|
File details
Details for the file elizaos_plugin_local_ai-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_local_ai-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f18d9c9bba3893294f2965d1f56f38a455dee7e9fe2357824dd81300b16532
|
|
| MD5 |
86cad67135dec2c9866d841b88f0aa68
|
|
| BLAKE2b-256 |
137eb625596adc0893d402035a948d3a7654586be8106ae46498f52ebbd5688a
|