Browse Source

Merge pull request #80 from saddam213/ExposeNative

Expose some native classes
tags/v0.4.2-preview
Martin Evans GitHub 2 years ago
parent
commit
5e15077766
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/SamplingApi.cs
  2. +1
    -1
      LLama/Utils.cs

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

@@ -3,7 +3,7 @@
namespace LLama.Native namespace LLama.Native
{ {
using llama_token = Int32; using llama_token = Int32;
internal unsafe class SamplingApi
public unsafe class SamplingApi
{ {
/// <summary> /// <summary>
/// Repetition penalty described in CTRL academic paper https://arxiv.org/abs/1909.05858, with negative logit fix. /// Repetition penalty described in CTRL academic paper https://arxiv.org/abs/1909.05858, with negative logit fix.


+ 1
- 1
LLama/Utils.cs View File

@@ -11,7 +11,7 @@ using System.Text;
namespace LLama namespace LLama
{ {
using llama_token = Int32; using llama_token = Int32;
internal static class Utils
public static class Utils
{ {
public static SafeLLamaContextHandle InitLLamaContextFromModelParams(ModelParams @params) public static SafeLLamaContextHandle InitLLamaContextFromModelParams(ModelParams @params)
{ {


Loading…
Cancel
Save