Skip to content

Commit 5b8906b

Browse files
committed
- Removed tailFreeZ from LLamaExecutorExtensions (deprecated upstream)
- Removed old `NativeApi.Sampling.cs`, this should have all been removed with the sampling pipeline update
1 parent 9658032 commit 5b8906b

File tree

3 files changed

+2
-177
lines changed

3 files changed

+2
-177
lines changed

LLama/Extensions/LLamaExecutorExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ private string CreatePrompt(IList<ChatMessage> messages)
150150
MinKeep = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.MinKeep), out int mk) is true ? mk : s_defaultPipeline.MinKeep,
151151
MinP = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.MinP), out float mp) is true ? mp : s_defaultPipeline.MinP,
152152
Seed = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.Seed), out uint seed) is true ? seed : (uint)(t_random ??= new()).Next(),
153-
TailFreeZ = options?.AdditionalProperties?.TryGetValue(nameof(DefaultSamplingPipeline.TailFreeZ), out float tfz) is true ? tfz : s_defaultPipeline.TailFreeZ,
154153
Temperature = options?.Temperature ?? 0,
155154
TopP = options?.TopP ?? 0,
156155
TopK = options?.TopK ?? s_defaultPipeline.TopK,

LLama/LLavaWeights.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace LLama;
99
/// <summary>
1010
/// A set of llava model weights (mmproj), loaded into memory.
1111
/// </summary>
12-
public sealed class LLavaWeights : IDisposable
12+
public sealed class LLavaWeights
13+
: IDisposable
1314
{
1415
/// <summary>
1516
/// The native handle, which is used in the native APIs

LLama/Native/NativeApi.Sampling.cs

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)