From d29b05bb67bad2178e9e662956f8c6c196c1f7af Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Fri, 24 Mar 2023 14:34:15 -0400 Subject: [PATCH] Update example to match alpaca training prompt --- examples/fastapi_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fastapi_server.py b/examples/fastapi_server.py index 7ea804c..e601f0f 100644 --- a/examples/fastapi_server.py +++ b/examples/fastapi_server.py @@ -30,8 +30,8 @@ class CompletionRequest(BaseModel): class Config: schema_extra = { "example": { - "prompt": "Question: What is the capital of France? Answer: ", - "stop": ["\n", " Question:"] + "prompt": "\n\n### Instructions:\nWhat is the capital of France?\n\n### Response:\n", + "stop": ["\n", "###"] } }