Martín Santillán Cooper commited on
Commit
809aedc
1 Parent(s): 0f55f50

Change cpu -> cuda

Browse files
Files changed (1) hide show
  1. src/model.py +1 -1
src/model.py CHANGED
@@ -19,7 +19,7 @@ logger.debug(f"Inference engine is: '{inference_engine}'")
19
  if inference_engine == "TORCH":
20
  import torch
21
 
22
- device = torch.device("cpu")
23
 
24
  model_path = os.getenv("MODEL_PATH", "ibm-granite/granite-guardian-3.1-8b")
25
  logger.debug(f"model_path is {model_path}")
 
19
  if inference_engine == "TORCH":
20
  import torch
21
 
22
+ device = torch.device("cuda")
23
 
24
  model_path = os.getenv("MODEL_PATH", "ibm-granite/granite-guardian-3.1-8b")
25
  logger.debug(f"model_path is {model_path}")