generative_agents icon indicating copy to clipboard operation
generative_agents copied to clipboard

Add alternative interface for self-hosted LLM

Open marklechner opened this issue 2 years ago • 5 comments

Instead of chatgpt would be nice to be able to have it interface with self-hosted LLM such as llama2 or similar, to avoid having to pay for api usage.

marklechner avatar Aug 12 '23 20:08 marklechner

Agree! I am trying to work on llama2 version now. It will be fantastic if there are any official solutions!

HaochenZhao avatar Aug 12 '23 20:08 HaochenZhao

我也是正在尝试在llama2 上进行 操作,但是好像不是很难,用仿 openai 的接口 可以操作。就是在脚本里更改操作模式得。得python技术好点的人。

musellama avatar Aug 13 '23 10:08 musellama

You might want to have a look at other issues #1

SpencerWF avatar Aug 16 '23 10:08 SpencerWF

FYI: I did a quick try on llama-2-7b but crashed, mostly because the model didn't generate the framework acceptable response format. Maybe llama-2-13b or 70b would work, but this is a signal that this framework may be tightly-coupled to the OpenAI models (text-davinci-002 and text-davinci-003).

comaniac avatar Aug 22 '23 23:08 comaniac

I'm trying to make it work with most of the LLM, and since they all happen to have a Web interface, I've developed a Chrome plugin to embed the Ai town. https://github.com/10cl/chatdev

10cl avatar Aug 24 '23 03:08 10cl