rynmurdock commited on
Commit
f69254d
1 Parent(s): 9a8a6a4
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ class BottleneckT5Autoencoder:
75
  def __init__(self, model_path: str, device='cuda'):
76
  self.device = device
77
  self.tokenizer = AutoTokenizer.from_pretrained(model_path, model_max_length=512, torch_dtype=torch.bfloat16)
78
- self.model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, device=DEVICE, low_cpu_mem_usage=True)
79
  self.model.eval()
80
 
81
 
 
75
  def __init__(self, model_path: str, device='cuda'):
76
  self.device = device
77
  self.tokenizer = AutoTokenizer.from_pretrained(model_path, model_max_length=512, torch_dtype=torch.bfloat16)
78
+ self.model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, low_cpu_mem_usage=True)
79
  self.model.eval()
80
 
81