pw-ai-research commited on
Commit
839bf21
·
verified ·
1 Parent(s): b9a7f28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ import threading
12
 
13
  model_id = "PhysicsWallahAI/Aryabhata-1.0"
14
  tokenizer = AutoTokenizer.from_pretrained(model_id)
15
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto", attn_implementation="flash_attention_2")
16
 
17
  def process_questions(example):
18
  example["question_text"] = example["question"]
 
12
 
13
  model_id = "PhysicsWallahAI/Aryabhata-1.0"
14
  tokenizer = AutoTokenizer.from_pretrained(model_id)
15
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto", attn_implementation="flash_attention_2")
16
 
17
  def process_questions(example):
18
  example["question_text"] = example["question"]