Skip to content

Interactive mode with Llama class #22

Closed

Description

@abetlen
  • Similar to interactive mode in llama.cpp.
  • Changes should not effect __call__ and the create_* method behaviour.
  • Should support max_tokens / infinite generation, eos / ignore_eos, and a reverse prompt.
  • Should support streaming

Activity

  1. added
    enhancement
    on Apr 4, 2023
  2. MillionthOdin16 commented on Apr 4, 2023

    @MillionthOdin16
    Contributor

    I see. So this will be our implementation of the interactive type mode? I think my confusion was due to the fact that most if not all of my use of llama.cpp is within interactive mode and chat interactions.

  3. changed the title [-]Add method to perform continous mode text generation[/-] [+]Add interactive mode example using Llama class[/+] on Apr 4, 2023
  4. abetlen commented on Apr 4, 2023

    @abetlen
    OwnerAuthor

    Yes that's the intention, I had an example I was working on from our convo yesterday, just have a couple bugs but it's actually fairly short to implement with the Llama class.

  5. changed the title [-]Add interactive mode example using Llama class[/-] [+]Demonstrated interactive mode with Llama class[/+] on Apr 4, 2023
  6. changed the title [-]Demonstrated interactive mode with Llama class[/-] [+]Interactive mode with Llama class[/+] on Apr 4, 2023
  7. ZeitgeberH commented on Apr 6, 2023

    @ZeitgeberH

    I think this is a very important feature for the sever. Otherwise, we are forced to use llama.cpp's interactive mode for chat.

  8. abetlen commented on Apr 11, 2023

    @abetlen
    OwnerAuthor

    I'm going to close this because interactive mode that follows the llama.cpp main program has been implemented in the examples https://github.com/abetlen/llama-cpp-python/blob/main/examples/low_level_api/low_level_api_chat_cpp.py which includes a LlamaInteract class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions