liblloyal 1.0.0
Branched Inference for llama.cpp
Loading...
Searching...
No Matches
lloyal::ModelKeyHash Struct Reference

#include <lloyal/model_registry.hpp>

Public Member Functions

size_t operator() (const ModelKey &k) const
 Compute hash for ModelKey.
 

Detailed Description

Definition at line 59 of file model_registry.hpp.

Member Function Documentation

◆ operator()()

size_t lloyal::ModelKeyHash::operator() ( const ModelKey k) const
inline

Compute hash for ModelKey.

Combines path hash with GPU/mmap configuration using XOR and golden ratio.

Parameters
kKey to hash
Returns
Combined hash value
Examples
/home/runner/work/liblloyal/liblloyal/include/lloyal/model_registry.hpp.

Definition at line 69 of file model_registry.hpp.


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