Merge pull request #53 from ravenscroftj/feature/expose-temp-top_p

fix cast problem due to incorrect float notation
This commit is contained in:
James Ravenscroft 2023-08-23 10:42:10 +01:00 committed by GitHub
commit 6d90e5d870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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