Skip to content

Commit

Permalink
Fix sampling parameters format
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Dec 13, 2023
1 parent b0872c1 commit c9e65c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions web-app-utils/example_app_vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ def inference(message, history):
"stream": True,
"max_tokens": 1000,
# Parameters requested by HU
"sampling_params": {
"temperature": 0.7,
"top_p": 0.4,
"top_k": 40,
},
"temperature": 0.7,
"top_p": 0.4,
"top_k": 40,
}
response = requests.post(
f"{backend_url}/generate", headers=headers, json=pload, stream=True
Expand Down

0 comments on commit c9e65c9

Please sign in to comment.