Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ 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 = "
|
30 |
|
31 |
indictrans_model = AutoModelForCausalLM.from_pretrained(
|
32 |
"ai4bharat/IndicTrans3-beta",
|
|
|
26 |
|
27 |
# Model configurations with optimizations
|
28 |
TORCH_DTYPE = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
29 |
+
DEVICE_MAP = "0" if torch.cuda.is_available() else "cpu"
|
30 |
|
31 |
indictrans_model = AutoModelForCausalLM.from_pretrained(
|
32 |
"ai4bharat/IndicTrans3-beta",
|