StyledLines from testedlines.com: C# docs 1.0.1
GPT2-based text stylization LLM model, wrapped with Llama.cpp in Csharp to ensure compatibility across various platforms, including iOS and WebGL. The model is designed to transform generic texts into stylized, game or user-tailored dialogue.
|
Public Member Functions | |
AsyncLlamaInfrence () | |
void | ClearAllTasks () |
virtual void | Dispose () |
int | GenerateAsync (string prompt) |
string | GetGenerationResults (int task_id) |
bool | GetSetupResults (int task_id) |
bool | IsGenerationReady (int task_id) |
int | SetupAsync (LoggingContext logging, gpt_params cfg_params) |
Protected Attributes | |
bool | swigCMemOwn |
Package Functions | |
AsyncLlamaInfrence (global::System.IntPtr cPtr, bool cMemoryOwn) | |
Static Package Functions | |
static global::System.Runtime.InteropServices.HandleRef | getCPtr (AsyncLlamaInfrence obj) |
Properties | |
SWIGTYPE_p_AsyncLlamaInfrence__LlamaAsyncImpl | pImpl [get, set] |
Private Member Functions | |
~AsyncLlamaInfrence () | |
Private Attributes | |
global::System.Runtime.InteropServices.HandleRef | swigCPtr |
|
package |
|
private |
LlamaLibrary.AsyncLlamaInfrence.AsyncLlamaInfrence | ( | ) |
void LlamaLibrary.AsyncLlamaInfrence.ClearAllTasks | ( | ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_ClearAllTasks(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
|
virtual |
References LlamaLibrary.libllama_libPINVOKE.delete_AsyncLlamaInfrence(), LlamaLibrary.AsyncLlamaInfrence.swigCMemOwn, and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
Referenced by Assets.StyledLines.Runtime.LlamaInfrenceUnity.RunModelAsync.OnDestroy(), and LlamaLibrary.AsyncLlamaInfrence.~AsyncLlamaInfrence().
int LlamaLibrary.AsyncLlamaInfrence.GenerateAsync | ( | string | prompt | ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_GenerateAsync(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
Referenced by Assets.StyledLines.Runtime.LlamaInfrenceUnity.RunModelAsync.Generate().
|
staticpackage |
References LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
string LlamaLibrary.AsyncLlamaInfrence.GetGenerationResults | ( | int | task_id | ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_GetGenerationResults(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
Referenced by Assets.StyledLines.Runtime.LlamaInfrenceUnity.RunModelAsync.Update().
bool LlamaLibrary.AsyncLlamaInfrence.GetSetupResults | ( | int | task_id | ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_GetSetupResults(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
bool LlamaLibrary.AsyncLlamaInfrence.IsGenerationReady | ( | int | task_id | ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_IsGenerationReady(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
int LlamaLibrary.AsyncLlamaInfrence.SetupAsync | ( | LoggingContext | logging, |
gpt_params | cfg_params ) |
References LlamaLibrary.libllama_libPINVOKE.AsyncLlamaInfrence_SetupAsync(), LlamaLibrary.gpt_params.getCPtr(), LlamaLibrary.LoggingContext.getCPtr(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve(), and LlamaLibrary.AsyncLlamaInfrence.swigCPtr.
Referenced by Assets.StyledLines.Runtime.LlamaInfrenceUnity.RunModelAsync.DoSetup(), and Assets.StyledLines.Runtime.LlamaInfrenceUnity.ModelController.ModelController().
|
protected |
|
private |
Referenced by LlamaLibrary.AsyncLlamaInfrence.AsyncLlamaInfrence(), LlamaLibrary.AsyncLlamaInfrence.ClearAllTasks(), LlamaLibrary.AsyncLlamaInfrence.Dispose(), LlamaLibrary.AsyncLlamaInfrence.GenerateAsync(), LlamaLibrary.AsyncLlamaInfrence.getCPtr(), LlamaLibrary.AsyncLlamaInfrence.GetGenerationResults(), LlamaLibrary.AsyncLlamaInfrence.GetSetupResults(), LlamaLibrary.AsyncLlamaInfrence.IsGenerationReady(), and LlamaLibrary.AsyncLlamaInfrence.SetupAsync().
|
getset |