|
liblloyal 1.0.0
Composable primitives for llama.cpp inference
|
Thread-safe registry for sharing llama_model instances. More...
#include <model_registry.hpp>
Static Public Member Functions | |
| static std::shared_ptr< llama_model > | acquire (const std::string &fsPath, const llama_model_params ¶ms) |
| Acquire a model from cache or load if not present. | |
Thread-safe registry for sharing llama_model instances.
IMPORTANT: This is a CLASS with static members, not a namespace. Converting to header-only requires inline static members (C++17).
Definition at line 76 of file model_registry.hpp.
|
inlinestatic |
Acquire a model from cache or load if not present.
| fsPath | Filesystem path to model file (file:// prefix normalized) |
| params | Model load parameters (GPU layers, mmap, etc.) |
Definition at line 156 of file model_registry.hpp.