Skip to content

Commit

Permalink
device bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cybershiptrooper committed Sep 7, 2024
1 parent e4c4448 commit aea84c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iit/tasks/ioi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def make_ioi_dataset_and_hl(

ioi_names = t.tensor(
[ll_model.tokenizer.encode(" " + name) for name in ioi_dataset_tl.names]
).flatten()
).flatten().to(device)
hl_model = IOI_HL(d_vocab=ll_model.cfg.d_vocab_out, names=ioi_names, device=device)

ioi_dataset = IOIDatasetWrapper(
Expand Down

0 comments on commit aea84c7

Please sign in to comment.