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

how to use open-source models? #52

Open
basicmi opened this issue Apr 26, 2023 · 8 comments
Open

how to use open-source models? #52

basicmi opened this issue Apr 26, 2023 · 8 comments
Assignees

Comments

@basicmi
Copy link

basicmi commented Apr 26, 2023

Please add examples using local open-source models, like llama or chatGLM. Thanks

@yuyuan223
Copy link
Collaborator

thx for the advice. Just try to understand better about you needs. You need local open-source models because of the concern about gpt cost? or from the privacy perspective? or other reasons?

@litanlitudan
Copy link
Owner

I think we should add this, it's an easy win and open doors for many efforts @yuyuan223 @basicmi

@basicmi
Copy link
Author

basicmi commented Apr 27, 2023

thx for the advice. Just try to understand better about you needs. You need local open-source models because of the concern about gpt cost? or from the privacy perspective? or other reasons?

more than that, I think we can play with different models in the same game and compare them.

@renmengjie7
Copy link

I saw in the video the ability to select open source models, but when I ran skyagi I found that it was not possible to choose. Is it not supported yet?

@gaocegege
Copy link

We are working on the local/cloud-hosted open-source LLM support, with the help of https://github.com/tensorchord/modelz-llm.

It should be available next week.

@gaocegege
Copy link

I successfully run skyAGI with lmsys/fastchat-t5-3b-v1.0 on my PC, without the GPU:

# Terminal 1
modelz-llm -m lmsys/fastchat-t5-3b-v1.0 --device cpu
# Terminal 2
export OPENAI_API_BASE=http://localhost:8000
export OPENAI_API_KEY="anystring"
skyagi

I have some workarounds to

@gaocegege
Copy link

I will write a doc for it.

@j2l
Copy link

j2l commented Jul 6, 2023

Thank you @gaocegege for writing a doc, because so far I can't make it work:

pip install modelz-llm transformers sentencepiece accelerate
modelz-llm -m lmsys/fastchat-t5-3b-v1.0 --device cpu

works, but skyagi doesn't add fastchat to its list.

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

7 participants