Skip to content

Commit

Permalink
Update litgpt/deploy/serve.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Mocholí <[email protected]>
  • Loading branch information
rasbt and carmocca authored Apr 25, 2024
1 parent bd5ef3b commit 2d69ce5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions litgpt/deploy/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def __init__(self,
max_new_tokens: int = 50) -> None:

if not _LITSERVE_AVAILABLE:
raise ImportError(
"Serving LitGPT requires the `litserve` library,"
" which can be installed via `pip install litserve`."
)
raise ImportError(str(_LITSERVE_AVAILABLE))

super().__init__()
self.checkpoint_dir = checkpoint_dir
Expand Down

0 comments on commit 2d69ce5

Please sign in to comment.