Open handrew opened 1 year ago
@handrew what's the error that happens on the homepage or chatbotui? This should work - basically, the llm/local.ts
model converts chats to completions in the transformRequest
method
Uncaught Error: MODEL_REJECTED_REQUEST: 404: AxiosError: Request failed with status code 404
Error: MODEL_REJECTED_REQUEST: 404: AxiosError: Request failed with status code 404
Just adding my notes here on how to run
basaran
as a local backend to Window. Happy to add the below to wherever appropriate in the repo.Their repo makes it pretty easy to set up with just a python virtualenv. The process for me was as simple as:
Process
virtualenv -p python3 basaran_env
and activate itsource basaran_env/bin/activate
.pip install basaran
MODEL=user/repo PORT=8000 python -m basaran
downloads the model located athttps://huggingface.co/<user>/<repo>
, (e.g.,gpt2
orallenai/tk-instruct-3b-def
) to the current folder and serve it vialocalhost:8000/v1/completions
. You can confirm it works by running:Local
model endpoint in Window tohttp://127.0.0.1:8000/v1
(instead of the defaulthttp://127.0.0.1:8000/
).Notes