-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for -o key value
options such as temperature
#63
Comments
Since I'm adding support for different models in: I think for the CLI interface here I'm going to use something more like this: llm "Ten names for a pelican" -m gpt-4 -o temperature 0.1 So That way if there's a plugin that adds a new model with other kinds of options the same I'll make it so options can validate their parameters though, to ensure people get a useful error message if they try |
I'm not crazy about
|
I think it's |
-o key value
options such as temperature
Originally posted by @simonw in #53 (comment) |
For the OpenAI models I'm going to support the following, inspired by https://github.com/openai/openai-python/blob/041bf5a8ec54da19aad0169671793c2078bd6173/openai/cli.py#L81-L91 length=args.length,
temperature=args.temperature,
top_p=args.top_p,
logprobs=args.logprobs,
stop=args.stop, |
Actually https://platform.openai.com/docs/api-reference/chat/create is better reference:
I should really implement custom validation for these, but I'm going to punt on that for the moment and let the OpenAI validate them instead. |
Huh, temperature 2 can go a bit wild:
|
OK this is cool (borrowing example from #36): llm -m gpt-4 "Once upon a" \
-o logit_bias '{"1712":-100, "892":-100, "7394": -100, "547": -100, "1489": -100, "33239": -100, "6512": -100, "3084": -100}' \
-o temperature 1.5
|
Great, was looking for this to become available! Thank you! |
It would be nice to add temperature as another command param --temp, just like --system
The text was updated successfully, but these errors were encountered: