LLM for Unity  v2.2.5
Create characters in Unity with LLMs!
Loading...
Searching...
No Matches
LLMUnity.LLMManager Class Reference

Static Public Member Functions

static void SetDownloadProgress (float progress)
 
static Task< bool > Setup ()
 
static async Task< bool > SetupOnce ()
 
static void SetTemplate (string filename, string chatTemplate)
 
static void SetTemplate (ModelEntry entry, string chatTemplate)
 
static ModelEntry Get (string path)
 
static string GetAssetPath (string filename)
 
static int Num (bool lora)
 
static int NumModels ()
 
static int NumLoras ()
 
static void Register (LLM llm)
 
static void Unregister (LLM llm)
 
static void LoadFromDisk ()
 
static string AddEntry (ModelEntry entry)
 
static string AddEntry (string path, bool lora=false, string label=null, string url=null)
 
static async Task< string > Download (string url, bool lora=false, bool log=false, string label=null)
 
static string Load (string path, bool lora=false, bool log=false, string label=null)
 
static async Task< string > DownloadModel (string url, bool log=false, string label=null)
 
static async Task< string > DownloadLora (string url, bool log=false, string label=null)
 
static string LoadModel (string path, bool log=false, string label=null)
 
static string LoadLora (string path, bool log=false, string label=null)
 
static void SetURL (string filename, string url)
 
static void SetURL (ModelEntry entry, string url)
 
static void SetIncludeInBuild (string filename, bool includeInBuild)
 
static void SetIncludeInBuild (ModelEntry entry, bool includeInBuild)
 
static void SetDownloadOnStart (bool value)
 
static void Remove (string filename)
 
static void Remove (ModelEntry entry)
 
static void SetModelProgress (float progress)
 
static void SetLoraProgress (float progress)
 
static void Save ()
 
static void Load ()
 
static void SaveToDisk ()
 
static void Build (ActionCallback copyCallback)
 

Static Public Attributes

static bool downloadOnStart = false
 
static List< ModelEntrymodelEntries = new List<ModelEntry>()
 
static float downloadProgress = 1
 
static List< Callback< float > > downloadProgressCallbacks = new List<Callback<float>>()
 
static float modelProgress = 1
 
static float loraProgress = 1
 

Detailed Description

Definition at line 69 of file LLMManager.cs.

Member Function Documentation

◆ AddEntry() [1/2]

static string LLMUnity.LLMManager.AddEntry ( ModelEntry entry)
inlinestatic

Definition at line 245 of file LLMManager.cs.

◆ AddEntry() [2/2]

static string LLMUnity.LLMManager.AddEntry ( string path,
bool lora = false,
string label = null,
string url = null )
inlinestatic

Definition at line 268 of file LLMManager.cs.

◆ Build()

static void LLMUnity.LLMManager.Build ( ActionCallback copyCallback)
inlinestatic

Definition at line 443 of file LLMManager.cs.

◆ Download()

static async Task< string > LLMUnity.LLMManager.Download ( string url,
bool lora = false,
bool log = false,
string label = null )
inlinestatic

Definition at line 273 of file LLMManager.cs.

◆ DownloadLora()

static async Task< string > LLMUnity.LLMManager.DownloadLora ( string url,
bool log = false,
string label = null )
inlinestatic

Definition at line 334 of file LLMManager.cs.

◆ DownloadModel()

static async Task< string > LLMUnity.LLMManager.DownloadModel ( string url,
bool log = false,
string label = null )
inlinestatic

Definition at line 329 of file LLMManager.cs.

◆ Get()

static ModelEntry LLMUnity.LLMManager.Get ( string path)
inlinestatic

Definition at line 173 of file LLMManager.cs.

◆ GetAssetPath()

static string LLMUnity.LLMManager.GetAssetPath ( string filename)
inlinestatic

Definition at line 184 of file LLMManager.cs.

◆ Load() [1/2]

static void LLMUnity.LLMManager.Load ( )
inlinestatic

Definition at line 422 of file LLMManager.cs.

◆ Load() [2/2]

static string LLMUnity.LLMManager.Load ( string path,
bool lora = false,
bool log = false,
string label = null )
inlinestatic

Definition at line 318 of file LLMManager.cs.

◆ LoadFromDisk()

static void LLMUnity.LLMManager.LoadFromDisk ( )
inlinestatic

Definition at line 225 of file LLMManager.cs.

◆ LoadLora()

static string LLMUnity.LLMManager.LoadLora ( string path,
bool log = false,
string label = null )
inlinestatic

Definition at line 344 of file LLMManager.cs.

◆ LoadModel()

static string LLMUnity.LLMManager.LoadModel ( string path,
bool log = false,
string label = null )
inlinestatic

Definition at line 339 of file LLMManager.cs.

◆ Num()

static int LLMUnity.LLMManager.Num ( bool lora)
inlinestatic

Definition at line 195 of file LLMManager.cs.

◆ NumLoras()

static int LLMUnity.LLMManager.NumLoras ( )
inlinestatic

Definition at line 210 of file LLMManager.cs.

◆ NumModels()

static int LLMUnity.LLMManager.NumModels ( )
inlinestatic

Definition at line 205 of file LLMManager.cs.

◆ Register()

static void LLMUnity.LLMManager.Register ( LLM llm)
inlinestatic

Definition at line 215 of file LLMManager.cs.

◆ Remove() [1/2]

static void LLMUnity.LLMManager.Remove ( ModelEntry entry)
inlinestatic

Definition at line 393 of file LLMManager.cs.

◆ Remove() [2/2]

static void LLMUnity.LLMManager.Remove ( string filename)
inlinestatic

Definition at line 388 of file LLMManager.cs.

◆ Save()

static void LLMUnity.LLMManager.Save ( )
inlinestatic

Definition at line 415 of file LLMManager.cs.

◆ SaveToDisk()

static void LLMUnity.LLMManager.SaveToDisk ( )
inlinestatic

Definition at line 431 of file LLMManager.cs.

◆ SetDownloadOnStart()

static void LLMUnity.LLMManager.SetDownloadOnStart ( bool value)
inlinestatic

Definition at line 373 of file LLMManager.cs.

◆ SetDownloadProgress()

static void LLMUnity.LLMManager.SetDownloadProgress ( float progress)
inlinestatic

Definition at line 83 of file LLMManager.cs.

◆ SetIncludeInBuild() [1/2]

static void LLMUnity.LLMManager.SetIncludeInBuild ( ModelEntry entry,
bool includeInBuild )
inlinestatic

Definition at line 366 of file LLMManager.cs.

◆ SetIncludeInBuild() [2/2]

static void LLMUnity.LLMManager.SetIncludeInBuild ( string filename,
bool includeInBuild )
inlinestatic

Definition at line 361 of file LLMManager.cs.

◆ SetLoraProgress()

static void LLMUnity.LLMManager.SetLoraProgress ( float progress)
inlinestatic

Definition at line 410 of file LLMManager.cs.

◆ SetModelProgress()

static void LLMUnity.LLMManager.SetModelProgress ( float progress)
inlinestatic

Definition at line 405 of file LLMManager.cs.

◆ SetTemplate() [1/2]

static void LLMUnity.LLMManager.SetTemplate ( ModelEntry entry,
string chatTemplate )
inlinestatic

Definition at line 160 of file LLMManager.cs.

◆ SetTemplate() [2/2]

static void LLMUnity.LLMManager.SetTemplate ( string filename,
string chatTemplate )
inlinestatic

Definition at line 155 of file LLMManager.cs.

◆ Setup()

static Task< bool > LLMUnity.LLMManager.Setup ( )
inlinestatic

Definition at line 89 of file LLMManager.cs.

◆ SetupOnce()

static async Task< bool > LLMUnity.LLMManager.SetupOnce ( )
inlinestatic

Definition at line 98 of file LLMManager.cs.

◆ SetURL() [1/2]

static void LLMUnity.LLMManager.SetURL ( ModelEntry entry,
string url )
inlinestatic

Definition at line 354 of file LLMManager.cs.

◆ SetURL() [2/2]

static void LLMUnity.LLMManager.SetURL ( string filename,
string url )
inlinestatic

Definition at line 349 of file LLMManager.cs.

◆ Unregister()

static void LLMUnity.LLMManager.Unregister ( LLM llm)
inlinestatic

Definition at line 220 of file LLMManager.cs.

Member Data Documentation

◆ downloadOnStart

bool LLMUnity.LLMManager.downloadOnStart = false
static

Definition at line 71 of file LLMManager.cs.

◆ downloadProgress

float LLMUnity.LLMManager.downloadProgress = 1
static

Definition at line 75 of file LLMManager.cs.

◆ downloadProgressCallbacks

List<Callback<float> > LLMUnity.LLMManager.downloadProgressCallbacks = new List<Callback<float>>()
static

Definition at line 76 of file LLMManager.cs.

◆ loraProgress

float LLMUnity.LLMManager.loraProgress = 1
static

Definition at line 237 of file LLMManager.cs.

◆ modelEntries

List<ModelEntry> LLMUnity.LLMManager.modelEntries = new List<ModelEntry>()
static

Definition at line 72 of file LLMManager.cs.

◆ modelProgress

float LLMUnity.LLMManager.modelProgress = 1
static

Definition at line 236 of file LLMManager.cs.


The documentation for this class was generated from the following file: