prithivMLmods commited on
Commit
344ab0f
·
verified ·
1 Parent(s): 4af3266

update app

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -29,7 +29,6 @@ MODEL_ID_M = "nvidia/Cosmos-Reason1-7B"
29
  processor_m = AutoProcessor.from_pretrained(MODEL_ID_M, trust_remote_code=True)
30
  model_m = Qwen2_5_VLForConditionalGeneration.from_pretrained(
31
  MODEL_ID_M,
32
- attn_implementation="kernels-community/flash-attn2",
33
  trust_remote_code=True,
34
  torch_dtype=torch.float16
35
  ).to(device).eval()
@@ -38,7 +37,6 @@ MODEL_ID_X = "prithivMLmods/docscopeOCR-7B-050425-exp"
38
  processor_x = AutoProcessor.from_pretrained(MODEL_ID_X, trust_remote_code=True)
39
  model_x = Qwen2_5_VLForConditionalGeneration.from_pretrained(
40
  MODEL_ID_X,
41
- attn_implementation="kernels-community/flash-attn2",
42
  trust_remote_code=True,
43
  torch_dtype=torch.float16
44
  ).to(device).eval()
@@ -47,7 +45,6 @@ MODEL_ID_Z = "Ertugrul/Qwen2.5-VL-7B-Captioner-Relaxed"
47
  processor_z = AutoProcessor.from_pretrained(MODEL_ID_Z, trust_remote_code=True)
48
  model_z = Qwen2_5_VLForConditionalGeneration.from_pretrained(
49
  MODEL_ID_Z,
50
- attn_implementation="kernels-community/flash-attn2",
51
  trust_remote_code=True,
52
  torch_dtype=torch.float16
53
  ).to(device).eval()
@@ -56,7 +53,6 @@ MODEL_ID_V = "prithivMLmods/visionOCR-3B-061125"
56
  processor_v = AutoProcessor.from_pretrained(MODEL_ID_V, trust_remote_code=True)
57
  model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
58
  MODEL_ID_V,
59
- attn_implementation="kernels-community/flash-attn2",
60
  trust_remote_code=True,
61
  torch_dtype=torch.float16
62
  ).to(device).eval()
 
29
  processor_m = AutoProcessor.from_pretrained(MODEL_ID_M, trust_remote_code=True)
30
  model_m = Qwen2_5_VLForConditionalGeneration.from_pretrained(
31
  MODEL_ID_M,
 
32
  trust_remote_code=True,
33
  torch_dtype=torch.float16
34
  ).to(device).eval()
 
37
  processor_x = AutoProcessor.from_pretrained(MODEL_ID_X, trust_remote_code=True)
38
  model_x = Qwen2_5_VLForConditionalGeneration.from_pretrained(
39
  MODEL_ID_X,
 
40
  trust_remote_code=True,
41
  torch_dtype=torch.float16
42
  ).to(device).eval()
 
45
  processor_z = AutoProcessor.from_pretrained(MODEL_ID_Z, trust_remote_code=True)
46
  model_z = Qwen2_5_VLForConditionalGeneration.from_pretrained(
47
  MODEL_ID_Z,
 
48
  trust_remote_code=True,
49
  torch_dtype=torch.float16
50
  ).to(device).eval()
 
53
  processor_v = AutoProcessor.from_pretrained(MODEL_ID_V, trust_remote_code=True)
54
  model_v = Qwen2_5_VLForConditionalGeneration.from_pretrained(
55
  MODEL_ID_V,
 
56
  trust_remote_code=True,
57
  torch_dtype=torch.float16
58
  ).to(device).eval()