Skip to content

Commit

Permalink
remove device definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skaulintel committed Mar 7, 2025
1 parent 7abf940 commit c9afd90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/question-answering/run_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ def main():
token=model_args.token,
trust_remote_code=model_args.trust_remote_code,
)
device = torch.device("hpu")
model = model.to(device)
model = model.to("hpu")

# Tokenizer check: this script requires a fast tokenizer.
if not isinstance(tokenizer, PreTrainedTokenizerFast):
Expand Down

0 comments on commit c9afd90

Please sign in to comment.