Skip to content

Update ResultToken API to optionally return token log probability#260

Merged
copybara-service[bot] merged 1 commit into
mainfrom
maxtext_logp
Apr 25, 2025
Merged

Update ResultToken API to optionally return token log probability#260
copybara-service[bot] merged 1 commit into
mainfrom
maxtext_logp

Conversation

@wenxindongwork
Copy link
Copy Markdown
Collaborator

This PR updates the ResultToken class with an additional log_prob attribute which stores token log probabilities. This attribute is set to None by default.

MaxEngine is updated to populate this attribute when return_log_prob is set to True in global config. (AI-Hypercomputer/maxtext#1626)

@github-actions github-actions Bot added the pull ready This label is needed if we want the copybara service to auto sync it to g3. label Apr 25, 2025
@copybara-service copybara-service Bot merged commit c5e54e1 into main Apr 25, 2025
6 checks passed
@copybara-service copybara-service Bot deleted the maxtext_logp branch April 25, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull ready This label is needed if we want the copybara service to auto sync it to g3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants