This project has been archived by its maintainers, and is no longer receiving any updates.
AlpacaPP Persona
Give OpenVoiceOS some sass with AlpacaCPP
Examples
- "What is best in life?"
- "Do you like dogs"
- "Does God exist?"
Usage
Spoken answers api
from ovos_solver_alpacacpp import AlpacaCPPSolver
ALPACA_MODEL_FILE = "/./models/ggml-alpaca-7b-q4.bin"
bot = AlpacaCPPSolver({"model": ALPACA_MODEL_FILE})
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)
Credit
This combines Facebook's LLaMA, Stanford Alpaca, alpaca-lora and corresponding weights by Eric Wang (which uses Jason Phang's implementation of LLaMA on top of Hugging Face Transformers), and llama.cpp by Georgi Gerganov. The chat implementation is based on Matvey Soloviev's Interactive Mode for llama.cpp. Inspired by Simon Willison's getting started guide for LLaMA. Andy Matuschak's thread on adapting this to 13B, using fine tuning weights by Sam Witteveen.
Disclaimer
Note that the model weights are only to be used for research purposes, as they are derivative of LLaMA, and uses the published instruction data from the Stanford Alpaca project which is generated by OpenAI, which itself disallows the usage of its outputs to train competing models.
Metadata
Release files for ovos-solver-alpacacpp-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 | Provenance | Actions |
|---|---|---|---|---|
| ovos-solver-alpacacpp-plugin-0.0.0a1.tar.gz | 8.2 kB | Without provenance | Details for ovos-solver-alpacacpp-plugin-0.0.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_solver_alpacacpp_plugin-0.0.0a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_solver_alpacacpp_plugin-0.0.0a1-py3-none-any.whl |
Total release size: 17.2 kB
Release files / ovos-solver-alpacacpp-plugin-0.0.0a1.tar.gz
| Download URL | ovos-solver-alpacacpp-plugin-0.0.0a1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
026cad67f521446e424496ec3b3c71d07e44fce9979eda4922aca34602bea913
|
|
BLAKE2b-256 checksum How to use checksums |
3a8264066255cac07cd97f06762daab95d999ffb3656cd030351b4277dece26b
|
| 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_alpacacpp_plugin-0.0.0a1-py3-none-any.whl
| Download URL | ovos_solver_alpacacpp_plugin-0.0.0a1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dff3a6b267436225bbef7794a8f963af33031ea185d990eaa9da429fe1c3da7b
|
|
BLAKE2b-256 checksum How to use checksums |
86c3a85d13443e57bf03804a8eef9b6e7f3f7d13359bcbd34e1d370845421efe
|
| 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-alpacacpp-plugin 0.0.0a1
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.