Skip to content

Commit

Permalink
Remove .cuda() from cm3leon's model.py (#1897)
Browse files Browse the repository at this point in the history
Summary:
Also remove the `.eval()` as the `.eval()` and the moving to device is done immediately afterward in the model's `__init__.py`

Pull Request resolved: #1897

Reviewed By: msaroufim

Differential Revision: D49285752

Pulled By: xuzhao9

fbshipit-source-id: 441b01c63ee9b48b792dea121e337fce1b2e330b
  • Loading branch information
hmellor authored and facebook-github-bot committed Sep 15, 2023
1 parent e1b51f5 commit 6532c61
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torchbenchmark/models/cm3leon_generate/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,4 @@ def create_model(embed_dim=1536):
decoder_learned_pos=True,
dropout=0.1,
)
.eval()
.cuda()
)

0 comments on commit 6532c61

Please sign in to comment.