Provide the local llama service

This commit is contained in:
zhangzhen
2023-09-14 15:22:38 +08:00
parent 25fec9a683
commit dd3187fc8a
6 changed files with 162 additions and 8 deletions
+2 -3
View File
@@ -28,7 +28,7 @@ class ComputeNode(ABC):
pass
@abstractmethod
def is_support(self, task_type: ComputeTaskType) -> bool:
def is_support(self, task: ComputeTask) -> bool:
pass
@abstractmethod
@@ -41,10 +41,9 @@ class ComputeNode(ABC):
def get_fee_type(self) -> str:
return "free"
class LocalComputeNode(ComputeNode):
def display(self) -> str:
return super().display()
def is_local(self) -> bool:
return True
return True