Adds session_exact pinning, sampler/scheduler chips, expanded param tags with non-default highlighting, QLoRA HF presets, LoRA strength editing, SQLite bootstrap for training memory, last-job UI, and harsher critique_image QC so result review leads with defects instead of praise. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
568 B
C#
23 lines
568 B
C#
using System.Threading;
|
|
using SQLitePCL;
|
|
|
|
namespace Mrleo1nid.SwarmAssistent;
|
|
|
|
/// <summary>
|
|
/// SwarmUI loads extensions in an isolated AssemblyLoadContext — Microsoft.Data.Sqlite
|
|
/// does not auto-init native SQLite there. Call once before the first connection.
|
|
/// </summary>
|
|
internal static class AssistentSqliteBootstrap
|
|
{
|
|
static int _ready;
|
|
|
|
internal static void EnsureInitialized()
|
|
{
|
|
if (Interlocked.CompareExchange(ref _ready, 1, 0) != 0)
|
|
{
|
|
return;
|
|
}
|
|
Batteries_V2.Init();
|
|
}
|
|
}
|