Skip to content
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

Autocomplete: Tweak StarCoder temperature #966

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

philipp-spiess
Copy link
Contributor

This changes the default temperature for StarCoder from 0.4 to 0.2 which is also used in their own testing. In my experiments, this made the model behave a bit more predictable while still providing enough variation.

CONTROVERSIAL: I also tweaked the example Bee added in #945. I’m happy to revert though. StarCoder was not completing this and I think it was because there are two reference function in that file that are implemented the same way with the same line missing so starcoder did pattern match and thought that this is the expected result. I feel that the example is a bit contrived so I changed it into something that I would encounter while developing.

Test plan

Ran the completions test suite and made sure the output looked good:

  • cd vscode
  • pnpm run generate:completions

@philipp-spiess philipp-spiess self-assigned this Sep 7, 2023
}
}

return {
temperature: 0.4,
temperature: 0.2,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of this change! (based on my anecdotal experience of course)

@philipp-spiess philipp-spiess merged commit 1f034ea into main Sep 7, 2023
10 checks passed
@philipp-spiess philipp-spiess deleted the ps/starcoder-tweaks-2 branch September 7, 2023 10:49
philipp-spiess added a commit that referenced this pull request Sep 7, 2023
This changes the default temperature for StarCoder from `0.4` to `0.2`
which is also used in [their own
testing](https://github.com/bigcode-project/bigcode-evaluation-harness).
In my experiments, this made the model behave a bit more predictable
while still providing enough variation.

**CONTROVERSIAL:** I also tweaked the example Bee added in #945. I’m
happy to revert though. StarCoder was not completing this and I think it
was because there are two reference function in that file that are
implemented the same way with the same line missing so starcoder did
pattern match and thought that this is the expected result. I feel that
the example is a bit contrived so I changed it into something that I
would encounter while developing.

Ran the completions test suite and made sure the output looked good:

- `cd vscode`
- `pnpm run generate:completions`

<!-- Required. See
https://docs.sourcegraph.com/dev/background-information/testing_principles.
-->
philipp-spiess added a commit that referenced this pull request Sep 7, 2023
Preparing a patch release of 0.10.1. It contains two cherry-picked
commits from #965 and #966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants