chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Deploy Chat UI Spaces Docker template with a PEFT adapter

Open lrtherond opened this issue 3 years ago • 4 comments

I tried to accomplish this, but the container failed to launch the chat-ui app, as it seems to assume the model would be a non-adapted model.

Is there a way to make it work?

lrtherond avatar Aug 20 '23 05:08 lrtherond

Well, I figured something out, but now deploying Chat UI Docker instances to Spaces is completely broken:

Screenshot 2023-08-22 at 7 53 18 PM

lrtherond avatar Aug 23 '23 02:08 lrtherond

Hi, thanks for reporting this! Can you check again if the instance is broken ? It should work now.

nsarrazin avatar Aug 23 '23 09:08 nsarrazin

Hi, thanks for reporting this! Can you check again if the instance is broken ? It should work now.

Thanks, but I changed course and split my implementation between an inference endpoint and a Gradio space. That gives more control in formatting the prompt Llama 2 chat desires.

It's working well.

I do have a baseline problem, though.

My fine-tuning dataset included a collection of questions and answers. Now, during inference, the model often uses expression such as "according to the given text" and "the given text", etc. It doesn't feel natural.

lrtherond avatar Aug 24 '23 19:08 lrtherond

Glad to hear you found a solution for your setup. I'm not sure the dataset issue is relevant to chat-ui though so I'll be closing this one.

nsarrazin avatar Sep 11 '23 09:09 nsarrazin