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

Run non-OpenAI models #32

Open
irgolic opened this issue Apr 1, 2023 · 3 comments
Open

Run non-OpenAI models #32

irgolic opened this issue Apr 1, 2023 · 3 comments

Comments

@irgolic
Copy link
Owner

irgolic commented Apr 1, 2023

So far we've only used GPT-4 and GPT-3.5, the next step is to try it on models that are locally hosted.

I'm not sure exactly how to go about this; as this is a Github Action, does Github have GPUs in their runners? How do we properly write it to work with custom runners? Could we rent GPUs on something like vast.ai? Are there any grants available for free computational resources to run AutoPR on?

I'd love to run a custom Github runner with my own GPU, and run tests with it.

Essentially, these two methods need to use a completion_func decoupled from OpenAI's functions.
https://github.com/irgolic/AutoPR/blob/main/autopr/services/rail_service.py#L53-L125

@ghost
Copy link

ghost commented Apr 3, 2023

@guidevops
Copy link

What I did was create an API that follows the OpenAI api standard, this way I only needed to set openai.api_base = 'my_url' and it worked fine.
There is also the LocalAI project that follows the same pattern.
https://github.com/go-skynet/LocalAI

@irgolic
Copy link
Owner Author

irgolic commented May 3, 2023

Hey, thanks for the suggestion!

I think I'd rather move away from using the openai library in the long run (except potentially in its own self-contained repo implementation). Last time I talked to @ShreyaR she pointed me to the mainfest library, which looks like a really clean provider-agnostic solution for specifying LLM models. I believe this would interface with our config yaml really well too.

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

No branches or pull requests

2 participants