Skip to content

Commit

Permalink
Update Mixtral SUT.py (#1749)
Browse files Browse the repository at this point in the history
Co-authored-by: Miro <[email protected]>
  • Loading branch information
arjunsuresh and mrmhodak authored Jun 25, 2024
1 parent a31cced commit 145e77c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language/mixtral-8x7b/SUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def load_model(self):
self.model = self.model.to(self.device)

self.model.eval()
self.model = self.model.to(memory_format=torch.channels_last)
if self.device != "cpu":
self.model = self.model.to(memory_format=torch.channels_last)

self.tokenizer = AutoTokenizer.from_pretrained(
self.model_path,
Expand Down

0 comments on commit 145e77c

Please sign in to comment.