fix cast problem due to incorrect float notation

This commit is contained in:
James Ravenscroft 2023-08-23 08:12:53 +00:00
parent 757cc64a59
commit 88c5ede768

View File

@ -44,13 +44,13 @@ int main(int argc, char **argv)
program.add_argument("--temperature")
.help("Set the generation temperature")
.default_value(0.2)
.scan<'g', double>();
.default_value(0.2f)
.scan<'g', float>();
program.add_argument("--top-p")
.help("Set the generation top_p")
.default_value(0.1)
.scan<'g', double>();
.default_value(0.1f)
.scan<'g', float>();
program.add_argument("prompt").remaining();