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

only set generations if still default #741

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

jmartin-tech
Copy link
Collaborator

@jmartin-tech jmartin-tech commented Jun 17, 2024

When generations is set via config ignore the constructor provided value.

Planned revision to Generator will remove generations from the constructor furher ensuring the value is default or supplied on a config_root.

  • only set self.generations if still matches default
  • expand Cohere defaults to include Generator defaults
  • restore test_attempts line selection with note about why the line is correct

When generations is set via config ignore the constructor provided value.

Planned revision to `Generator` will remove `generations` from the constructor
furher ensuring the value is default or supplied on a `config_root`.

* only set generations if still matches default
* expand Cohere defaults to include `Generator` defaults
* restore `test_attempts` line selection with note about `why` the line is correct

Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
@jmartin-tech jmartin-tech requested a review from leondz June 17, 2024 17:10
@leondz leondz merged commit 9a8a761 into NVIDIA:main Jun 17, 2024
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2024
@jmartin-tech jmartin-tech deleted the fix/improve-generations-set branch August 14, 2024 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants