Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate InferenceParams sampler configuration properties #871

Merged

Commits on Jul 26, 2024

  1. - Marked all properties for configuring sampling in `IInferenceParams…

    …` as obsolete, pushing users towards the newer `SamplingPipeline` system.
    
     - Removed old sampling code from `LLamaContext`, instead if no `SamplingPipeline` is supplied one is created (existing one is re-used, as much as possible).
     - Updated all examples to use new system, uncovered a bug in `TalkToYourself` which tried to use `Temperature` _and_ mirostate - not compatible! This is exactly the kind of bug this is trying to fix.
     - Added `AsSpan` to `FixedSizeQueue` to avoid allocations of temporary arrays for every token!
    martindevans committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    dbbaca5 View commit details
    Browse the repository at this point in the history