Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
adapter_manager.h File Reference

AdapterManager — LoRA adapter lifecycle and hot-swap. More...

#include <entropic/types/config.h>
#include <entropic/interfaces/i_hook_handler.h>
#include <filesystem>
#include <mutex>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for adapter_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  entropic::AdapterManager
 LoRA adapter lifecycle manager. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Detailed Description

AdapterManager — LoRA adapter lifecycle and hot-swap.

Responsibilities
  • Load/unload LoRA adapters against a base model
  • Activate/deactivate adapters on an inference context
  • Track adapter states (COLD/WARM/HOT)
  • Enforce single-HOT constraint per context
  • Provide adapter metadata for routing
Thread safety
  • State queries require the class mutex (AdapterEntry::state)
  • load/unload/swap acquire adapter_mutex_
  • Swap operations coordinate with InferenceBackend transition_mutex_ via the orchestrator (AdapterManager does NOT lock the backend)
Ownership
Owned by ModelOrchestrator. One AdapterManager per engine instance.
Version
1.9.2

Definition in file adapter_manager.h.