Browse Source
Merge pull request #80 from saddam213/ExposeNative
Expose some native classes
tags/v0.4.2-preview
Martin Evans
GitHub
2 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
LLama/Native/SamplingApi.cs
-
LLama/Utils.cs
|
|
|
@@ -3,7 +3,7 @@ |
|
|
|
namespace LLama.Native |
|
|
|
{ |
|
|
|
using llama_token = Int32; |
|
|
|
internal unsafe class SamplingApi |
|
|
|
public unsafe class SamplingApi |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
|
/// Repetition penalty described in CTRL academic paper https://arxiv.org/abs/1909.05858, with negative logit fix. |
|
|
|
|
|
|
|
@@ -11,7 +11,7 @@ using System.Text; |
|
|
|
namespace LLama |
|
|
|
{ |
|
|
|
using llama_token = Int32; |
|
|
|
internal static class Utils |
|
|
|
public static class Utils |
|
|
|
{ |
|
|
|
public static SafeLLamaContextHandle InitLLamaContextFromModelParams(ModelParams @params) |
|
|
|
{ |
|
|
|
|