Fred808 commited on
Commit
85a2cee
·
verified ·
1 Parent(s): 6b4d8dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,7 +37,8 @@ try:
37
  processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)
38
  model = AutoModelForCausalLM.from_pretrained(
39
  MODEL_ID,
40
- trust_remote_code=True
 
41
  ).to(DEVICE).eval()
42
  print("[INFO] Model loaded successfully!")
43
  except Exception as e:
 
37
  processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)
38
  model = AutoModelForCausalLM.from_pretrained(
39
  MODEL_ID,
40
+ trust_remote_code=True,
41
+ attn_implementation="eager"
42
  ).to(DEVICE).eval()
43
  print("[INFO] Model loaded successfully!")
44
  except Exception as e: