From 372894e1d4d1fe75f37a5beee2c72cccc343ee1a Mon Sep 17 00:00:00 2001 From: sa_ddam213 Date: Sun, 6 Aug 2023 14:44:46 +1200 Subject: [PATCH] Expose some native classes --- LLama/Native/SamplingApi.cs | 2 +- LLama/Utils.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LLama/Native/SamplingApi.cs b/LLama/Native/SamplingApi.cs index f84ac1b19..abe01b152 100644 --- a/LLama/Native/SamplingApi.cs +++ b/LLama/Native/SamplingApi.cs @@ -3,7 +3,7 @@ namespace LLama.Native { using llama_token = Int32; - internal unsafe class SamplingApi + public unsafe class SamplingApi { /// /// Repetition penalty described in CTRL academic paper https://arxiv.org/abs/1909.05858, with negative logit fix. diff --git a/LLama/Utils.cs b/LLama/Utils.cs index e99e6b292..4cba82f93 100644 --- a/LLama/Utils.cs +++ b/LLama/Utils.cs @@ -11,7 +11,7 @@ namespace LLama { using llama_token = Int32; - internal static class Utils + public static class Utils { public static SafeLLamaContextHandle InitLLamaContextFromModelParams(ModelParams @params) {