Skip to content

fixed bug with only_last_token during generation#453

Open
JRosenkranz wants to merge 2 commits into
mainfrom
fix_only_last_token_generation
Open

fixed bug with only_last_token during generation#453
JRosenkranz wants to merge 2 commits into
mainfrom
fix_only_last_token_generation

Conversation

@JRosenkranz
Copy link
Copy Markdown
Collaborator

In the generate function, if a user specifies only_last_token=False, generate would only check for existence of "only_last_token" in kwargs to decide whether to select the last token. If the value was False, this would result in issues during generation.

…hecking if only_last_token existed in kwargs, not what the value of it was

Signed-off-by: Joshua Rosenkranz <jmrosenk@us.ibm.com>
@JRosenkranz JRosenkranz requested a review from ani300 July 15, 2025 19:09
@JRosenkranz JRosenkranz self-assigned this Jul 15, 2025
@JRosenkranz
Copy link
Copy Markdown
Collaborator Author

bot:test
TEST_FILE=test_model_expectations.py

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