Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Add min_p #680 - #724

Open
demoncoder-crypto wants to merge 1 commit into
google-gemini:mainfrom
demoncoder-crypto:feature/min-p-approx-v2
Open

demoncoder-crypto wants to merge 1 commit into
google-gemini:mainfrom
demoncoder-crypto:feature/min-p-approx-v2

Conversation

@demoncoder-crypto

Copy link
Copy Markdown

Generates text one token at a time.
At each step, it requests many (num_samples) candidates for the next single token.
Estimates the probability of each potential next token based on its frequency in the candidates.
Applies the min_p filtering logic using these estimated probabilities.

@github-actions github-actions Bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Mar 28, 2025
@demoncoder-crypto demoncoder-crypto mentioned this pull request Mar 28, 2025
@Annhiluc Annhiluc added type:feature request New feature request/enhancement status:triaged Issue/PR triaged to the corresponding sub-team p3 labels Mar 28, 2025

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component:python sdk Issue/PR related to Python SDK p3 status:awaiting review PR awaiting review from a maintainer status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants