We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, to correctly send arguments for the model API, we need to do something like this:
for arg in ["temperature", "top_p"]: if arg in self.config["model_args"]: self.config["model_args"][arg] = float(self.config["model_args"][arg]) for arg in ["max_tokens", "top_k", "seed"]: if arg in self.config["model_args"]: self.config["model_args"][arg] = int(self.config["model_args"][arg])
It would be better to try guessing the value from its format, e.g. 0.01 is probably a float, 5 is a an int, etc.
0.01
5
That would allow us to send even unfamiliar parameters in a correct format.
The text was updated successfully, but these errors were encountered:
See the argrs https://github.com/ollama/ollama/blob/main/docs/modelfile.md and d32ffc0
Sorry, something went wrong.
No branches or pull requests
Currently, to correctly send arguments for the model API, we need to do something like this:
It would be better to try guessing the value from its format, e.g.
0.01
is probably a float,5
is a an int, etc.That would allow us to send even unfamiliar parameters in a correct format.
The text was updated successfully, but these errors were encountered: