Skip to content

Commit

Permalink
Add Lit.BatchedModel in preparation to move prediction_minibatch and …
Browse files Browse the repository at this point in the history
…related functionalities from Lit.Model to it.

PiperOrigin-RevId: 552893648
  • Loading branch information
bdu91 authored and LIT team committed Aug 1, 2023
1 parent b29d1f3 commit 5ed93bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lit_nlp/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ def get_embedding_table(self) -> tuple[list[str], np.ndarray]:
return self.wrapped.get_embedding_table()


class BatchedModel(Model):
"""Generic base class for the batched model.
Currently this is a no-op pass-through of Model class and will be updated
after moving users of Model class over.
"""
pass


class BatchedRemoteModel(Model):
"""Generic base class for remotely-hosted models.
Expand Down

0 comments on commit 5ed93bd

Please sign in to comment.