Repository navigation
OpenCode: the sampling profile's temperature and top_p - #281
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenCode sent no sampling settings, so the server sampled at vLLM's defaults (temperature 1.0, top_p 1.0), while terminus-2 and OpenHands get the harbor profile (thinking: 0.6 / 0.95). The server log of a debug job showed every OpenCode request at 1.0 / 1.0.
temperatureandtop_pbecome thebuildagent's settings in the generatedopencode_config(the agentopencode runuses); a useropencode_configstill wins over themtemperature: true: without it OpenCode sends the agent's top_p but no temperature (seen in the server log: top_p 0.95 with temperature 1.0)Checked on Clariden (Chonk v0.2,
--reasoning-effort high, 3 SWE-bench tasks x 4 attempts, server logging on): 464 requests arrived at temperature 0.6 / top_p 0.95, none at 1.0 / 1.0 (a few title-agent requests at 0.5 / 1.0).This is a parity fix and does not fix the empty final replies: in that run 3 of 9 trials still ended with an empty reply after the thinking frame (3 completion tokens, prompts of 13 to 15k tokens), as in the runs before. Invalid tool calls (malformed argument JSON) were 7 of 284 generations before and 0 after, on a small sample.