Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "backends" (Including Huggingface Open LLMs) #9

Merged
merged 9 commits into from
May 12, 2023

Conversation

bluecoconut
Copy link
Contributor

@bluecoconut bluecoconut commented May 12, 2023

This PR refactors the originally hard-coded concept of endpoints for completion and chat. (And removes Edit)

Specifically: there is a new "backends" module. This module has

  • Backend
    • RequestBackend
      • OpenAICompletion
      • OpenAIChat
    • HuggingFaceBackend
      • MPT7BInstructCompletion
      • StarCoderCompletion

Backends get registered, and then the new (dispatcher) lambdaprompt classes:
Completion, AsyncCompletion, Chat, AsyncChat are the main things to use.

They behave identically
GPT3Prompt, AsyncGPT3Prompt, GPT3Chat, AsyncGPT3Chat from previous iteration.

(These are still included for backwards compatibility reasons... though maybe ill cut them soon?)

@bluecoconut bluecoconut merged commit 96c6d5a into main May 12, 2023
@bluecoconut bluecoconut deleted the backends-including-local branch May 12, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant