Please add options for temperature in the settings! #603
Replies: 3 comments 8 replies
-
If it is Qwen, better to go to Ollama to pick the right settings + promptset cus those could make RooCode more stable #441 (comment) |
Beta Was this translation helpful? Give feedback.
-
I just learned about the problems with temperature 0 about a month ago. I assume this isn't getting enough attention, as other people just aren't aware, like me. In my mind, temp 0 made sense as the preferred setting. Why would I introduce less-likely tokens into my generated code? As it turns out temp 0 can lead to "text degeneration", especially repetition. Increasing temperature as a solution didn't make sense to me, as that would make it possible for the model to pick suboptimal tokens when generating syntax, where one specific token is the only valid solution. The problem is solved with top-p sampling (aka. nucleus sampling), where sampling will ignore tokens that are simply too unlikely, so you can get diverse generation during thinking and text writing, but precise generation during syntax/JSON generation and tool calling. I believe temperature and top-p control could meaningfully decrease repetition and thereby increase quality in the text and code generated by Roo Code. I've personally found thinking models to be very repetitive, to the point of unusable, in Roo. They might be in and of themselves, it's impossible to make good generalisations about this stuff from personal experience, but temp 0 sure isn't helping. It's very unfortunate that this setting isn't available, as it bottlenecks every single model, and it seems like nobody knows. I'll be using Aider till temp and top-p is in the settings. I'll leave the abstract of the 2019 The Curious Case of Neural Text Degeneration paper here:
bold84 made a great PR, #1773, which I think was ignored by the Roo team as it didn't follow the issue-first approach. This should be a great inspiration for anyone writing a detailed feature request and/or implementation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be really nice to have a temperature option in the settings. Some of the default top-p values for models on the Hyperbolic api are incompatible with a temp of 0, so I cant use any qwen models unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions