Skip to content

Commit

Permalink
- Removed tailFreeZ from LLamaExecutorExtensions (deprecated upstream)
Browse files Browse the repository at this point in the history
 - Removed old `NativeApi.Sampling.cs`, this should have all been removed with the sampling pipeline update
  • Loading branch information
martindevans committed Nov 1, 2024
1 parent 9658032 commit 5b8906b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 177 deletions.
1 change: 0 additions & 1 deletion LLama/Extensions/LLamaExecutorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ private string CreatePrompt(IList<ChatMessage> messages)
MinKeep = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.MinKeep), out int mk) is true ? mk : s_defaultPipeline.MinKeep,
MinP = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.MinP), out float mp) is true ? mp : s_defaultPipeline.MinP,
Seed = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.Seed), out uint seed) is true ? seed : (uint)(t_random ??= new()).Next(),
TailFreeZ = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.TailFreeZ), out float tfz) is true ? tfz : s_defaultPipeline.TailFreeZ,
Temperature = options?.Temperature ?? 0,
TopP = options?.TopP ?? 0,
TopK = options?.TopK ?? s_defaultPipeline.TopK,
Expand Down
3 changes: 2 additions & 1 deletion LLama/LLavaWeights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ namespace LLama;
/// <summary>
/// A set of llava model weights (mmproj), loaded into memory.
/// </summary>
public sealed class LLavaWeights : IDisposable
public sealed class LLavaWeights
: IDisposable
{
/// <summary>
/// The native handle, which is used in the native APIs
Expand Down
175 changes: 0 additions & 175 deletions LLama/Native/NativeApi.Sampling.cs

This file was deleted.

0 comments on commit 5b8906b

Please sign in to comment.