|
|
|
@@ -86,6 +86,15 @@ namespace LLama |
|
|
|
NativeHandle = SafeLLamaContextHandle.Create(model.NativeHandle, lparams); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Set the seed for the RNG |
|
|
|
/// </summary> |
|
|
|
/// <param name="seed"></param> |
|
|
|
public void SetSeed(uint seed) |
|
|
|
{ |
|
|
|
NativeApi.llama_set_rng_seed(NativeHandle, seed); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Tokenize a string. |
|
|
|
/// </summary> |
|
|
|
|