Skip to content

fix: context_length has no effect#200

Open
chosen-ox wants to merge 1 commit intomarella:mainfrom
chosen-ox:patch-1
Open

fix: context_length has no effect#200
chosen-ox wants to merge 1 commit intomarella:mainfrom
chosen-ox:patch-1

Conversation

@chosen-ox
Copy link

When I ran the model, I found context_length has no effect. I try to fix it same as

max_new_tokens = min(max_new_tokens, self.context_length - tokens.shape[1])

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.

1 participant