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

[error] There is no model to select #1

Open
andreiramani opened this issue Jun 6, 2024 · 1 comment
Open

[error] There is no model to select #1

andreiramani opened this issue Jun 6, 2024 · 1 comment

Comments

@andreiramani
Copy link

My local gpt is text-generation-webui from https://github.com/oobabooga/text-generation-webui.

I already succeed connecting phrasing-bot to text-generation-webui. Phrasing-bot frontend yarn start successfully,
unfortunately - there is no models to select.
model_missing

After selecting/click the 'model' menu, yarn suddenly disconnect and gave following error:
yarn_error_model

For information, i'm using model Meta-Llama-3-8B-Instruct.Q5_K_S.gguf - and in the same time, this model running fine with my text-generation-webui.

Any suggestion how to define/to acccess the model from phrasing-bot (or maybe there is wrong configuration on my .env file)?

This is the content of my .env file:
PORT=5000

REQUEST_TYPE=custom

CUSTOM_API_BASE_URL=127.0.0.1:5001
CUSTOM_API_KEY=somekey
CUSTOM_API_MODEL=Meta-Llama-3-8B-Instruct.Q5_K_S
CUSTOM_API_PROMPT_TEMPLATE=LLAMA_3

(my setup: Win11 Pro, Node 20.14, Yarn 1.22.22, text-generation-webui, Nvidia RTX 3050 6GB, RAM 32GB, Ryzen 7 gen7)

@Krisseck
Copy link
Owner

Krisseck commented Jun 6, 2024

CUSTOM_API_BASE_URL=127.0.0.1:5001

The CUSTOM_API_BASE_URL field needs to end in v1, try this:

CUSTOM_API_BASE_URL=http://127.0.0.1:5001/v1

And make sure you start text-generation-webui with --api, as per here: https://github.com/oobabooga/text-generation-webui/wiki/12-%E2%80%90-OpenAI-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

2 participants