Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
LlamaCPP Persona
Give OpenVoiceOS some sass with LLaMA model in pure C/C++
Examples
- "What is best in life?"
- "Do you like dogs"
- "Does God exist?"
Usage
Spoken answers api
from ovos_solver_llamacpp import LlamaCPPSolver
LLAMA_MODEL_FILE = "./models/ggml-model-q4_0.bin"
# persona = "omniscient oracle" # hardcoded personas, "explainer"|"bob"|"omniscient oracle"
persona = "helpful, kind, honest, good at writing" # description of assistant
bot = LlamaCPPSolver({"model": LLAMA_MODEL_FILE,
"persona": persona})
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-llamacpp-plugin 0.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos-solver-llamacpp-plugin-0.0.0a1.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_solver_llamacpp_plugin-0.0.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / ovos-solver-llamacpp-plugin-0.0.0a1.tar.gz
| Download URL | ovos-solver-llamacpp-plugin-0.0.0a1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9384d5d2b7685079474ccfa4778e3d58c36b3c6734cf13b2a54e46719e807658
|
|
BLAKE2b-256 checksum How to use checksums |
f4694633cd3ed4cd8240f83f4a2036ca972a9f373a4388e3a3887d2e9a7b790b
|
| 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_llamacpp_plugin-0.0.0a1-py3-none-any.whl
| Download URL | ovos_solver_llamacpp_plugin-0.0.0a1-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ce3b1578fb71f049f10a3de799f62aa3c033a4303457ef92137a5c88cf87386
|
|
BLAKE2b-256 checksum How to use checksums |
e6d3db58568a29f01cbb64b2c64d1ad3cab19f147ce98dcebd2ac40e05603706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|