AshwinSankar commited on
Commit
008725d
·
verified ·
1 Parent(s): bf67d50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ INDIC_LANGUAGES = [
25
  SARVAM_LANGUAGES = INDIC_LANGUAGES
26
 
27
  # Model configurations with optimizations
28
- TORCH_DTYPE = torch.float16 if torch.cuda.is_available() else torch.float32
29
- DEVICE_MAP = "auto" if torch.cuda.is_available() else None
30
 
31
  indictrans_model = AutoModelForCausalLM.from_pretrained(
32
  "ai4bharat/IndicTrans3-beta",
 
25
  SARVAM_LANGUAGES = INDIC_LANGUAGES
26
 
27
  # Model configurations with optimizations
28
+ TORCH_DTYPE = torch.bfloat16 if torch.cuda.is_available() else torch.float32
29
+ DEVICE_MAP = "cuda" if torch.cuda.is_available() else "cpu"
30
 
31
  indictrans_model = AutoModelForCausalLM.from_pretrained(
32
  "ai4bharat/IndicTrans3-beta",