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

Remove "generation_length" in favor of "generation_kwargs" #3014

Merged
merged 26 commits into from
Feb 28, 2024

Conversation

maxisawesome
Copy link
Contributor

What does this PR do?

KILLS :bufo-knife: generation_length and sets it directly to max_new_tokens in generation_kwargs

@maxisawesome maxisawesome marked this pull request as ready for review February 16, 2024 22:04
@maxisawesome maxisawesome requested a review from a team as a code owner February 16, 2024 22:04
composer/datasets/in_context_learning_evaluation.py Outdated Show resolved Hide resolved
tests/models/test_hf_model.py Outdated Show resolved Hide resolved
@maxisawesome maxisawesome merged commit 7c82d1f into mosaicml:dev Feb 28, 2024
14 checks passed
@maxisawesome maxisawesome deleted the kill_generation_length branch February 28, 2024 23:16
j316chuck pushed a commit that referenced this pull request Mar 29, 2024
* kill generation_length

* fix tests

* fix test

* add deprecation warning

* fix test

* add gen_len back into static_keys

* simplify setting variable in forward and add test

* simply test

* trailing comma

* trailing comma

* linting

---------

Co-authored-by: Daniel King <[email protected]>
j316chuck pushed a commit that referenced this pull request May 16, 2024
* kill generation_length

* fix tests

* fix test

* add deprecation warning

* fix test

* add gen_len back into static_keys

* simplify setting variable in forward and add test

* simply test

* trailing comma

* trailing comma

* linting

---------

Co-authored-by: Daniel King <[email protected]>
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.

2 participants