LLM for Unity
v2.3.0
Create characters in Unity with LLMs!
|
Class implementing helper functions for setup and process management. More...
Static Public Member Functions | |
static void | AddErrorCallBack (Callback< string > callback) |
Add callback function to call for error logs. | |
static void | RemoveErrorCallBack (Callback< string > callback) |
Remove callback function added for error logs. | |
static void | ClearErrorCallBacks () |
Remove all callback function added for error logs. | |
static int | GetMaxFreqKHz (int cpuId) |
static bool | IsSmtCpu (int cpuId) |
static int | AndroidGetNumBigCores () |
Calculates the number of big cores in Android similarly to ncnn (https://github.com/Tencent/ncnn) | |
static int | AndroidGetNumBigCoresCapacity () |
Calculates the number of big cores in Android similarly to Unity (https://docs.unity3d.com/2022.3/Documentation/Manual/android-thread-configuration.html) | |
Static Public Attributes | |
static string | Version = "v2.3.0" |
LLM for Unity version. | |
static string | LlamaLibVersion = "v1.1.12" |
LlamaLib version. | |
static string | LlamaLibReleaseURL = $"https://github.com/undreamai/LlamaLib/releases/download/{LlamaLibVersion}" |
LlamaLib release url. | |
static string | LlamaLibURL = $"{LlamaLibReleaseURL}/undreamai-{LlamaLibVersion}-llamacpp.zip" |
LlamaLib url. | |
static string | LlamaLibExtensionURL = $"{LlamaLibReleaseURL}/undreamai-{LlamaLibVersion}-llamacpp-full.zip" |
LlamaLib extension url. | |
static string | libraryPath = GetAssetPath(Path.GetFileName(LlamaLibURL).Replace(".zip", "")) |
LlamaLib path. | |
static string | LLMUnityStore = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "LLMUnity") |
LLMnity store path. | |
static string | modelDownloadPath = Path.Combine(LLMUnityStore, "models") |
Model download path. | |
static string | LLMManagerPath = GetAssetPath("LLMManager.json") |
Path of file with build information for runtime. | |
static readonly Dictionary< string,(string, string, string)[]> | modelOptions |
Default models for download. | |
Class implementing helper functions for setup and process management.
Definition at line 99 of file LLMUnitySetup.cs.
|
inlinestatic |
Add callback function to call for error logs.
Definition at line 469 of file LLMUnitySetup.cs.
|
inlinestatic |
Calculates the number of big cores in Android similarly to ncnn (https://github.com/Tencent/ncnn)
Definition at line 550 of file LLMUnitySetup.cs.
|
inlinestatic |
Calculates the number of big cores in Android similarly to Unity (https://docs.unity3d.com/2022.3/Documentation/Manual/android-thread-configuration.html)
Definition at line 604 of file LLMUnitySetup.cs.
|
inlinestatic |
Remove all callback function added for error logs.
Definition at line 481 of file LLMUnitySetup.cs.
|
inlinestatic |
Definition at line 486 of file LLMUnitySetup.cs.
|
inlinestatic |
Definition at line 520 of file LLMUnitySetup.cs.
|
inlinestatic |
Remove callback function added for error logs.
Definition at line 475 of file LLMUnitySetup.cs.
|
static |
LlamaLib path.
Definition at line 113 of file LLMUnitySetup.cs.
|
static |
LlamaLib extension url.
Definition at line 111 of file LLMUnitySetup.cs.
|
static |
LlamaLib release url.
Definition at line 107 of file LLMUnitySetup.cs.
|
static |
LlamaLib url.
Definition at line 109 of file LLMUnitySetup.cs.
|
static |
LlamaLib version.
Definition at line 105 of file LLMUnitySetup.cs.
|
static |
Path of file with build information for runtime.
Definition at line 119 of file LLMUnitySetup.cs.
|
static |
LLMnity store path.
Definition at line 115 of file LLMUnitySetup.cs.
|
static |
Model download path.
Definition at line 117 of file LLMUnitySetup.cs.
|
static |
Default models for download.
Definition at line 122 of file LLMUnitySetup.cs.
|
static |
LLM for Unity version.
Definition at line 103 of file LLMUnitySetup.cs.