MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / get_instance

Method get_instance

optillm/inference.py:953–957  ·  view source on GitHub ↗

Alternative way to get the singleton instance.

(cls, max_size: int = 5)

Source from the content-addressed store, hash-verified

951
952 @classmethod
953 def get_instance(cls, max_size: int = 5) -> 'CacheManager':
954 """Alternative way to get the singleton instance."""
955 if cls._instance is None:
956 return cls(max_size)
957 return cls._instance
958
959class DeviceManager:
960 def __init__(self):

Callers 2

setUpMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.64