arjunanand13 commited on
Commit
7440e60
1 Parent(s): 655c930

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ class VideoClassifier:
52
  def setup_mistral_model(self):
53
  self.model_id = "mistralai/Mistral-7B-Instruct-v0.2"
54
  self.device = f'cuda:{cuda.current_device()}' if cuda.is_available() else 'cpu'
55
- self.device_name = torch.cuda.get_device_name()
56
  # print(f"Using device: {self.device} ({self.device_name})")
57
  bnb_config = transformers.BitsAndBytesConfig(
58
  load_in_4bit=True,
 
52
  def setup_mistral_model(self):
53
  self.model_id = "mistralai/Mistral-7B-Instruct-v0.2"
54
  self.device = f'cuda:{cuda.current_device()}' if cuda.is_available() else 'cpu'
55
+ # self.device_name = torch.cuda.get_device_name()
56
  # print(f"Using device: {self.device} ({self.device_name})")
57
  bnb_config = transformers.BitsAndBytesConfig(
58
  load_in_4bit=True,