Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Cattell committed Dec 24, 2024
1 parent cd60197 commit cc60d0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions models/chat/huggingface.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"stop": ["<|endoftext|>"]
},
"prompt_format" : {
"system_token": "",
"prompt_token": "",
"assistant_token": "",
"system_token": "System: ",
"prompt_token": "### Instruction: ",
"assistant_token": "### Response: ",
"stop_token": "\n"
},
"context_size": 2048
Expand Down
11 changes: 6 additions & 5 deletions simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
def generate_for_model(model: str):
payload = {
"uuid": str(uuid4()),
"prompt": "test",
"preprompt": "test",
"prompt": "What is going on?",
"model": model,
}
response = requests.post(url + "/chat/generate", json=payload)
assert response.status_code == 200
generation = response.json()["generation"]
assert generation != ""
print(generation)

generate_for_model("zephyr-7b")
print("======== zephyr-7b =========")
generate_for_model("zephyr-7b")
print("======== falcon-7b =========")
generate_for_model("falcon-7b")

0 comments on commit cc60d0d

Please sign in to comment.