llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Add command mode to interactive mode.

Open wbpxre150 opened this issue 2 years ago • 2 comments

Allows changing of startup params on the fly using ??? Command Argument.

For example: ??? top_k 50 changes the top_k value to 50.

Can anyone test this and comment here with their findings?

wbpxre150 avatar Apr 17 '23 07:04 wbpxre150

I don't think context_size can change. It's used to initialize the ctx. Not sure if there are edge cases for keep or n_predict. It seems odd to want to change those. The other settings (and n_threads if you want) can be changed dynamically (I did something similar in a dependent project).

grencez avatar Apr 17 '23 14:04 grencez

I didn't test which values work and which do not, just that they set and nothing crashes. Thanks for the heads up. I like your project also, looks interesting! I will do some investigation and testing of parameters and add some documentation over the next couple of days using your work as an example :)

wbpxre150 avatar Apr 18 '23 03:04 wbpxre150