Denis PEYRUSAUBES commited on
Commit
8f3f327
·
1 Parent(s): c197f7b
Files changed (1) hide show
  1. ChatMixtral.py +1 -1
ChatMixtral.py CHANGED
@@ -13,7 +13,7 @@ class ChatMixtral:
13
  print("using device:", self.device)
14
 
15
  def ask(self, query: str):
16
- model_inputs = self.tokenizer(["A list of colors: red, blue"], return_tensors="pt").to(self.device)
17
  generated_ids = self.model.generate(**model_inputs)
18
  return self.tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
19
 
 
13
  print("using device:", self.device)
14
 
15
  def ask(self, query: str):
16
+ model_inputs = self.tokenizer(["A list of colors: red, blue"], return_tensors="pt").to("cuda")
17
  generated_ids = self.model.generate(**model_inputs)
18
  return self.tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
19