This project has been archived by its maintainers, and is no longer receiving any updates.
LLM.cpp Persona
Give OpenVoiceOS some sass with Alpaca.cpp, GPT4All.cpp or Bloomz.cpp
This plugin requires providing the path to the executable and model, it uses subprocess which allows it to work with these programs without requiring python bindings
Dedicated plugins may exist for each LLM
Examples
- "What is best in life?"
- "Do you like dogs"
- "Does God exist?"
Usage
Spoken answers api
from ovos_solver_llmcpp import LLMcppSolver
ALPACA_MODEL_FILE = "./models/ggml-alpaca-7b-q4.bin"
GPT4ALL_MODEL_FILE = "./models/gpt4all-lora-quantized.bin"
# binpath = "~/alpaca.cpp/chat"
binpath = "~/gpt4all.cpp/chat"
bot = LLMcppSolver({"model": GPT4ALL_MODEL_FILE,
"executable_path": binpath})
sentence = bot.spoken_answer("Qual é o teu animal favorito?", {"lang": "pt-pt"})
# Meus animais favoritos são cães, gatos e tartarugas!
for q in ["Does god exist?",
"what is the speed of light?",
"what is the meaning of life?",
"What is your favorite color?",
"What is best in life?"]:
a = bot.get_spoken_answer(q)
print(q, a)
Metadata
Release files for ovos-solver-llmcpp-plugin 0.0.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ovos-solver-llmcpp-plugin-0.0.0a3.tar.gz | 9.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_solver_llmcpp_plugin-0.0.0a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / ovos-solver-llmcpp-plugin-0.0.0a3.tar.gz
| Download URL | ovos-solver-llmcpp-plugin-0.0.0a3.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3399c9d5c5856955f39e3ac49e162a9ddfa961e4568d36f59fb8400f35305d38
|
|
BLAKE2b-256 checksum How to use checksums |
d9d4f0550e3f4c4590e5d543673b0a5c8f28574f681fe078373a0ca95b9c72a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ovos_solver_llmcpp_plugin-0.0.0a3-py3-none-any.whl
| Download URL | ovos_solver_llmcpp_plugin-0.0.0a3-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99dfeacea4f75113e68b27726a16427224d211f1a1348e935ccfbc07b5f85db8
|
|
BLAKE2b-256 checksum How to use checksums |
667d11b06e20ec9d7a3f016c113a553d0e828fa8049018831b45df8a2a0c5e9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for ovos-solver-llmcpp-plugin 0.0.0a3
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.