Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jul 30, 2024
1 parent c551f03 commit 76cea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum_benchmark/backends/llama_cpp/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def prepare_inputs(self, inputs: Dict[str, Any]) -> Dict[str, Any]:
raise ValueError(f"Task {self.config.task} not supported by {self.NAME}")

def forward(self, inputs: Dict[str, Any], kwargs: Dict[str, Any]) -> Any:
self.pretrained_model.embed(**inputs["input"])
self.pretrained_model.embed(**inputs)

def prefill(self, inputs: Dict[str, Any], kwargs: Dict[str, Any]) -> list[int]:
next(self.pretrained_model.generate(**inputs))
Expand Down

0 comments on commit 76cea01

Please sign in to comment.