Metadata-Version: 2.1
Name: ovos-solver-alpacacpp-plugin
Version: 0.0.0a1
Summary: A question solver plugin for ovos
Home-page: https://github.com/OpenVoiceOS/ovos-solver-plugin-alpacacpp
Author: jarbasai
Author-email: jarbasai@mailfence.com
License: MIT
Description: # <img src='' card_color='#40DBB0' width='50' height='50' style='vertical-align:bottom'/> AlpacaPP Persona
         
        Give OpenVoiceOS some sass with [AlpacaCPP](https://github.com/antimatter15/alpaca.cpp)
        
        ## Examples 
        * "What is best in life?"
        * "Do you like dogs"
        * "Does God exist?"
        
        
        ## Usage
        
        Spoken answers api
        
        ```python
        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](https://github.com/facebookresearch/llama), [Stanford Alpaca](https://crfm.stanford.edu/2023/03/13/alpaca.html), [alpaca-lora](https://github.com/tloen/alpaca-lora) and [corresponding weights](https://huggingface.co/tloen/alpaca-lora-7b/tree/main) by Eric Wang (which uses [Jason Phang's implementation of LLaMA](https://github.com/huggingface/transformers/pull/21955) on top of Hugging Face Transformers), and [llama.cpp](https://github.com/ggerganov/llama.cpp) by Georgi Gerganov. The chat implementation is based on Matvey Soloviev's [Interactive Mode](https://github.com/ggerganov/llama.cpp/pull/61) for llama.cpp. Inspired by [Simon Willison's](https://til.simonwillison.net/llms/llama-7b-m2) getting started guide for LLaMA. [Andy Matuschak](https://twitter.com/andy_matuschak/status/1636769182066053120)'s thread on adapting this to 13B, using fine tuning weights by [Sam Witteveen](https://huggingface.co/samwit/alpaca13B-lora). 
        
        
        ## 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. 
        
        
        
Keywords: ovos plugin utterance fallback query
Platform: UNKNOWN
Description-Content-Type: text/markdown
