Skip to content

Commit

Permalink
fix script (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 authored Nov 16, 2023
1 parent db279d0 commit e796218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/inference/hf_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def main(args: Namespace) -> None:
if device is not None:
print(f'Placing model on {device=}...')
model.to(device)
model.to(model_dtype)
except Exception as e:
raise RuntimeError(
'Unable to load HF model. ' +
Expand Down

0 comments on commit e796218

Please sign in to comment.