MCPcopy Create free account
hub / github.com/cpystan/SD-VLM / DispatchMethod

Class DispatchMethod

llava/serve/controller.py:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class DispatchMethod(Enum):
29 LOTTERY = auto()
30 SHORTEST_QUEUE = auto()
31
32 @classmethod
33 def from_str(cls, name):
34 if name == "lottery":
35 return cls.LOTTERY
36 elif name == "shortest_queue":
37 return cls.SHORTEST_QUEUE
38 else:
39 raise ValueError(f"Invalid dispatch method")
40
41
42@dataclasses.dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected