mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-09 11:15:08 +08:00
made inference server a bit more robust
This commit is contained in:
@@ -33,7 +33,13 @@ def main(
|
||||
# construct prompt
|
||||
messages = [_prepare_message(message) for message in work_request.conversation.messages]
|
||||
|
||||
prompt = "\n".join(messages) + "\nAssistant:"
|
||||
prefix = (
|
||||
"The following is a conversation between a user and an assistant. "
|
||||
"The assistant is helpful, creative, clever, and very friendly.\n"
|
||||
"Assistant: Hello! How can I help you today?\n"
|
||||
)
|
||||
|
||||
prompt = prefix + "\n".join(messages) + "\nAssistant:"
|
||||
|
||||
# TODO: use the seed
|
||||
# torch.manual_seed(work_request.seed)
|
||||
|
||||
Reference in New Issue
Block a user