Aditya757864 commited on
Commit
5f60d29
·
verified ·
1 Parent(s): c589530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ tokenizer = T5Tokenizer.from_pretrained(checkpoint)
16
 
17
  base_model = T5ForConditionalGeneration.from_pretrained(
18
  checkpoint,
19
- device_map = 'cpu',
20
  torch_dtype = torch.float32,
21
  )
22
 
 
16
 
17
  base_model = T5ForConditionalGeneration.from_pretrained(
18
  checkpoint,
19
+ device_map = 'auto',
20
  torch_dtype = torch.float32,
21
  )
22