Browse Source

Merge pull request #369 from martindevans/rename_llama_sample_temperature

Renamed `llama_sample_temperature` to `llama_sample_temp`
tags/0.9.1
Martin Evans GitHub 1 year ago
parent
commit
a3177ab140
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      LLama/Native/LLamaTokenDataArray.cs
  2. +1
    -1
      LLama/Native/NativeApi.Sampling.cs

+ 1
- 1
LLama/Native/LLamaTokenDataArray.cs View File

@@ -197,7 +197,7 @@ namespace LLama.Native
{
using (LLamaTokenDataArrayNative.Create(this, out var st))
{
NativeApi.llama_sample_temperature(context, ref st, temp);
NativeApi.llama_sample_temp(context, ref st, temp);
sorted = st.sorted;
}
}


+ 1
- 1
LLama/Native/NativeApi.Sampling.cs View File

@@ -102,7 +102,7 @@ namespace LLama.Native
/// <param name="candidates"></param>
/// <param name="temp"></param>
[DllImport(libraryName, CallingConvention = CallingConvention.Cdecl)]
public static extern void llama_sample_temperature(SafeLLamaContextHandle ctx, ref LLamaTokenDataArrayNative candidates, float temp);
public static extern void llama_sample_temp(SafeLLamaContextHandle ctx, ref LLamaTokenDataArrayNative candidates, float temp);

/// <summary>
/// Mirostat 1.0 algorithm described in the paper https://arxiv.org/abs/2007.14966. Uses tokens instead of words.


Loading…
Cancel
Save