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

如何使用本地的模型权重接入? #46

Open
fsyfb opened this issue Feb 23, 2024 · 1 comment
Open

如何使用本地的模型权重接入? #46

fsyfb opened this issue Feb 23, 2024 · 1 comment

Comments

@fsyfb
Copy link

fsyfb commented Feb 23, 2024

如果不想使用在线的大模型api,使用本地的模型如qwen7b等接入该程序,有什么建议吗

@wxywb
Copy link
Owner

wxywb commented Feb 23, 2024

1.先确认llamaindex是否支持你的模型,如果支持,在executor里把LLM换成你用的LLM就可以
2.不支持你用的模型,你把你的大模型使用fastapi或者flask写成一个api服务,仿照https://github.com/wxywb/history_rag/blob/master/custom/llms/QwenLLM.py 写一个client连上

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