MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / __call__

Method __call__

llama_cpp/_utils.py:87–90  ·  view source on GitHub ↗
(cls, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

85 _instances: Dict[type, Any] = {}
86
87 def __call__(cls, *args: Any, **kwargs: Any) -> Any:
88 if cls not in cls._instances:
89 cls._instances[cls] = super(MetaSingleton, cls).__call__(*args, **kwargs)
90 return cls._instances[cls]
91
92
93class Singleton(object, metaclass=MetaSingleton):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected