1024m commited on
Commit
24ceace
·
verified ·
1 Parent(s): c7bcd71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,8 +8,7 @@ model_name = "large-traversaal/Phi-4-Hindi"
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
  model = AutoModelForCausalLM.from_pretrained(
10
  model_name,
11
- torch_dtype=torch.float16,
12
- load_in_4bit=True,
13
  device_map="auto"
14
  )
15
  print("Model and tokenizer loaded successfully!")
 
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
  model = AutoModelForCausalLM.from_pretrained(
10
  model_name,
11
+ torch_dtype=torch.bfloat16,
 
12
  device_map="auto"
13
  )
14
  print("Model and tokenizer loaded successfully!")