LLM for Unity
v2.4.1
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.4.1" |
LLM for Unity version. | |
static string | LlamaLibVersion = "v1.2.1" |
LlamaLib version. | |
static string | LlamaLibReleaseURL = $"https://github.com/undreamai/LlamaLib/releases/download/{LlamaLibVersion}" |
LlamaLib release url. | |
static string | libraryName = GetLibraryName(LlamaLibVersion) |
LlamaLib name. | |
static string | libraryPath = GetAssetPath(libraryName) |
LlamaLib path. | |
static string | LlamaLibURL = $"{LlamaLibReleaseURL}/{libraryName}.zip" |
LlamaLib url. | |
static string | LlamaLibExtensionURL = $"{LlamaLibReleaseURL}/{libraryName}-full.zip" |
LlamaLib extension url. | |
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 100 of file LLMUnitySetup.cs.
|
inlinestatic |
Add callback function to call for error logs.
Definition at line 500 of file LLMUnitySetup.cs.
|
inlinestatic |
Calculates the number of big cores in Android similarly to ncnn (https://github.com/Tencent/ncnn)
Definition at line 581 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 635 of file LLMUnitySetup.cs.
|
inlinestatic |
Remove all callback function added for error logs.
Definition at line 512 of file LLMUnitySetup.cs.
|
inlinestatic |
Definition at line 517 of file LLMUnitySetup.cs.
|
inlinestatic |
Definition at line 551 of file LLMUnitySetup.cs.
|
inlinestatic |
Remove callback function added for error logs.
Definition at line 506 of file LLMUnitySetup.cs.
|
static |
LlamaLib name.
Definition at line 110 of file LLMUnitySetup.cs.
|
static |
LlamaLib path.
Definition at line 112 of file LLMUnitySetup.cs.
|
static |
LlamaLib extension url.
Definition at line 116 of file LLMUnitySetup.cs.
|
static |
LlamaLib release url.
Definition at line 108 of file LLMUnitySetup.cs.
|
static |
LlamaLib url.
Definition at line 114 of file LLMUnitySetup.cs.
|
static |
LlamaLib version.
Definition at line 106 of file LLMUnitySetup.cs.
|
static |
Path of file with build information for runtime.
Definition at line 122 of file LLMUnitySetup.cs.
|
static |
LLMnity store path.
Definition at line 118 of file LLMUnitySetup.cs.
|
static |
Model download path.
Definition at line 120 of file LLMUnitySetup.cs.
|
static |
Default models for download.
Definition at line 125 of file LLMUnitySetup.cs.
|
static |
LLM for Unity version.
Definition at line 104 of file LLMUnitySetup.cs.