Skip to content

Feature/support more sampling parameters - #121

Open
Alise-svg wants to merge 3 commits into
sgl-project:mainfrom
Alise-svg:feature/support-more-sampling-parameters
Open

Feature/support more sampling parameters#121
Alise-svg wants to merge 3 commits into
sgl-project:mainfrom
Alise-svg:feature/support-more-sampling-parameters

Conversation

@Alise-svg

Copy link
Copy Markdown

Add stop, presence_penalty and frequency_penalty parameters for sampling.

  • stop: stop sequences for text generation
  • presence_penalty: penalize tokens that have appeared
  • frequency_penalty: penalize tokens based on frequency

@goyalayus

Copy link
Copy Markdown

hey how can I connect with you?

@DarkSharpness DarkSharpness added the enhancement New feature or request label May 10, 2026
Alise-svg added 3 commits May 12, 2026 22:44
  Add support for stop sequences in text generation. When the generated
  text matches any of the provided stop sequences, generation will stop.
  Add presence penalty to discourage repetition of tokens that have

  already appeared in the generated text.
  Add frequency penalty to discourage repetition based on token

  frequency. Tokens that appear more frequently receive higher penalties.
@Alise-svg
Alise-svg force-pushed the feature/support-more-sampling-parameters branch from 84ae100 to 9d9dd0b Compare May 12, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants