Spaces:
Runtime error
Runtime error
dafajudin
commited on
Commit
•
768ffc5
1
Parent(s):
c56dd4d
delete retry and undo
Browse files
app.py
CHANGED
@@ -34,12 +34,12 @@ if USE_QLORA or USE_LORA:
|
|
34 |
bnb_4bit_compute_dtype=torch.float16
|
35 |
)
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
processor = AutoProcessor.from_pretrained(
|
45 |
"HuggingFaceM4/idefics2-8b",
|
|
|
34 |
bnb_4bit_compute_dtype=torch.float16
|
35 |
)
|
36 |
|
37 |
+
Model yang akan digunakan
|
38 |
+
model = Idefics2ForConditionalGeneration.from_pretrained(
|
39 |
+
"jihadzakki/idefics2-8b-vqarad-delta",
|
40 |
+
torch_dtype=torch.float16,
|
41 |
+
quantization_config=bnb_config
|
42 |
+
)
|
43 |
|
44 |
processor = AutoProcessor.from_pretrained(
|
45 |
"HuggingFaceM4/idefics2-8b",
|