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

max_length not used #2515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

max_length not used #2515

wants to merge 1 commit into from

Conversation

lintangsutawika
Copy link
Contributor

Using max_length=... in --model_args somehow is not used. This is suppose to fix that.

Using `max_length=...` in --model_args somehow is not used. This is suppose to fix that.
@baberabb
Copy link
Contributor

Hey @lintangsutawika . This won't quite work as self.max_length is a property

@property
def max_length(self):
if self._max_length: # if max length manually set, return it
return self._max_length
and would almost never be None.

Maybe a bug in the case of max_length being set in gen_kwargs?

@lintangsutawika
Copy link
Contributor Author

This seems to work if I do

--model_args "pretrained=...,max_length=2048"

Should it work with the current version?

@baberabb
Copy link
Contributor

This seems to work if I do

--model_args "pretrained=...,max_length=2048"

Should it work with the current version?

Sorry, I don't quite understand. you said this isn't working in the OP?

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