Closed Mr-Nobody1 closed 5 months ago
Your base model is a completion one, which is intended for text completion, not chat. Thus, unless you specify a jinja chat template with CUSTOM_CHAT_TEMPLATE
environment variable, you can only use completions API.
@alpayariyak Like this?
You are a friendly chatbot who always responds in the style of a pirate</s>
<|user|>
How many helicopters can a human eat in one sitting?</s>
<|assistant|>
Matey, I'm afraid I must inform ye that humans cannot eat helicopters. Helicopters are not food, they are flying machines. Food is meant to be eaten, like a hearty plate o' grog, a savory bowl o' stew, or a delicious loaf o' bread. But helicopters, they be for transportin' and movin' around, not for eatin'. So, I'd say none, me hearties. None at all.```
I tried giving it a chat template and it still does this.
Does what?
Does what?
This kind of relpy. Will the chat template below work?
<s>[INST] <<SYS>>
{{ system_prompt }}
<</SYS>>
{{ user_msg_1 }} [/INST] {{ model_answer_1 }} </s><s>[INST] {{ user_msg_2 }} [/INST]
Which chat template is used by the Llama-2-7b
which is provided on runpod?
Set apply_chat_template
to true in the input when not using OpenAI Chat Completions, please refer to the documentation on this.
The chat template must be consistent with the base model’s end of sentence, end of turn, beginning of sentence and end of sentence tokens.
The documentation points to resources on chat templates. This is not an issue with the vLLM worker, but you can keep modifying your chat template with vLLM on a Pod until you get desired results.
Hello, I am using a a pre-trained model which is CodeLlama based. The repo is [https://huggingface.co/defog/sqlcoder-7b-2]. I have further finetuned it and posted it on my repo. These are the logs![image](https://github.com/runpod-workers/worker-vllm/assets/73386704/5aef3282-8e0b-4633-a76d-9fd15d24c5d0)
Response when a request is made
What could be the issue? Also, openai compatible API is not working?