Browse Source

Forgot an abstractmethod

Nel Nibcord 6 months ago
parent
commit
34019e4608
1 changed files with 1 additions and 0 deletions
  1. 1 0
      exo/inference/inference_engine.py

+ 1 - 0
exo/inference/inference_engine.py

@@ -12,6 +12,7 @@ class InferenceEngine(ABC):
   async def encode(self, shard: Shard, prompt: str) -> np.ndarray:
     pass
   
+  @abstractmethod
   async def sample(self, x: np.ndarray) -> np.ndarray:
     pass