Skip to content

Commit

Permalink
remove task validation not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistecolle committed Jul 25, 2024
1 parent dbe1253 commit d010916
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions optimum_benchmark/backends/llama_cpp/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ class LlamaCppConfig(BackendConfig):
def __post_init__(self):
super().__post_init__()

if self.task not in TEXT_GENERATION_TASKS + TEXT_EMBEDDING_TASKS:
raise NotImplementedError(f"Llama.cpp does not support task {self.task}")

self.device = self.device.lower() # type: ignore

if self.device not in ["cuda", "mps", "cpu"]:
Expand Down

0 comments on commit d010916

Please sign in to comment.