Skip to content

Commit

Permalink
[DeepSparse Evaluation API] Add model property to DeepSparseLM (#…
Browse files Browse the repository at this point in the history
…1606)

* Update lm_evaluation_harness.py

* Update lm_evaluation_harness.py
  • Loading branch information
dbogunowicz authored Feb 20, 2024
1 parent b0a066e commit a284a0a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ def max_length(self) -> int:
def max_gen_toks(self) -> int:
return self._max_gen_toks

@property
def model(self) -> Pipeline:
return self.pipeline

def loglikelihood(self, requests) -> List[Tuple[float, bool]]:
"""
Copied directly from
Expand Down

0 comments on commit a284a0a

Please sign in to comment.