Skip to content

Conversation

@leok7v
Copy link

@leok7v leok7v commented Sep 9, 2025

corrected parameters description in docs

To the best of my understanding of the parameters.

corrected parameters description in docs
Copilot AI review requested due to automatic review settings September 9, 2025 01:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects the parameter documentation for Mirostat sampler functions in the header file. The changes align the documentation comments with the actual function signatures.

Key changes:

  • Updated Mirostat 1.0 parameter documentation to match function signature
  • Updated Mirostat 2.0 parameter documentation to match function signature
  • Removed outdated parameter descriptions and added missing ones


/// @details Mirostat 2.0 algorithm described in the paper https://arxiv.org/abs/2007.14966. Uses tokens instead of words.
/// @param seed The sampler seed
/// @param candidates A vector of `llama_token_data` containing the candidate tokens, their probabilities (p), and log-odds (logit) for the current position in the generated text.
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @param candidates documentation doesn't match the function signature for llama_sampler_init_mirostat_v2. Looking at the function signature on lines 1206-1208, there is no 'candidates' parameter. This documentation line should be removed.

Suggested change
/// @param candidates A vector of `llama_token_data` containing the candidate tokens, their probabilities (p), and log-odds (logit) for the current position in the generated text.

Copilot uses AI. Check for mistakes.
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