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 locally? #10

Open
CHesketh76 opened this issue Jun 14, 2024 · 9 comments
Open

Run locally? #10

CHesketh76 opened this issue Jun 14, 2024 · 9 comments

Comments

@CHesketh76
Copy link

CHesketh76 commented Jun 14, 2024

Was just wondering if i can run this locally?

@sammcj
Copy link

sammcj commented Jun 14, 2024

Was trying to figure this out too, surely it must be possible without a togetherai api key?

@sammcj
Copy link

sammcj commented Jun 14, 2024

Looks like it's currently hardcoded to use togetherai, but actually only needs any openai compatible endpoint: https://github.com/togethercomputer/MoA/blob/main/utils.py#L28

@CHesketh76
Copy link
Author

@sammcj that's what I was thinking as well

@sammcj
Copy link

sammcj commented Jun 15, 2024

Something like this I think #12

@bolecki
Copy link

bolecki commented Jun 15, 2024

i had a quick go at this as well over here: #13

it is not very configurable, but if you have an openai compatible BE hosting several models, you can just set OPENAI_API_BASE and update the model names in bot.py. i was using LM Studio and added additional models in playground. depending on your hardware, might be tough to get reasonable models to fit in VRAM.

should be easy to split out a streaming call for the aggregator as well.

@sammcj
Copy link

sammcj commented Jun 15, 2024

Got it all working - https://github.com/sammcj/MoA

@Boubou78000
Copy link

#17

@yananchen1989
Copy link

@IsThatYou hi, for the function https://github.com/togethercomputer/MoA/blob/main/utils.py#L99, in fact, it is a compatiable openai api for backend fastchat or vllm, which supports various open-llms, am I right ? It is not a true original OpenAI ?

@IsThatYou
Copy link
Contributor

@IsThatYou hi, for the function https://github.com/togethercomputer/MoA/blob/main/utils.py#L99, in fact, it is a compatiable openai api for backend fastchat or vllm, which supports various open-llms, am I right ? It is not a true original OpenAI ?

That's correct. We haven't tested with other APIs but it should be good with most openai compatible api.

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

6 participants