Spaces:
Running
on
Zero
Running
on
Zero
Update model_utils.py
Browse files- model_utils.py +2 -1
model_utils.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import subprocess
|
2 |
import os
|
3 |
import torch
|
4 |
-
from transformers import BitsAndBytesConfig, AutoConfig, AutoModelForCausalLM, LlavaNextForConditionalGeneration, LlavaForConditionalGeneration, PaliGemmaForConditionalGeneration, Idefics2ForConditionalGeneration, Owlv2ForObjectDetection, GroundingDinoForObjectDetection
|
5 |
import spaces
|
6 |
|
7 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
@@ -20,6 +20,7 @@ ARCHITECTURE_MAP = {
|
|
20 |
"Idefics2ForConditionalGeneration": Idefics2ForConditionalGeneration,
|
21 |
"Owlv2ForObjectDetection": Owlv2ForObjectDetection,
|
22 |
"GroundingDinoForObjectDetection": GroundingDinoForObjectDetection,
|
|
|
23 |
"AutoModelForCausalLM": AutoModelForCausalLM
|
24 |
}
|
25 |
|
|
|
1 |
import subprocess
|
2 |
import os
|
3 |
import torch
|
4 |
+
from transformers import BitsAndBytesConfig, AutoConfig, AutoModelForCausalLM, LlavaNextForConditionalGeneration, LlavaForConditionalGeneration, PaliGemmaForConditionalGeneration, Idefics2ForConditionalGeneration, Owlv2ForObjectDetection, GroundingDinoForObjectDetection, SamModel
|
5 |
import spaces
|
6 |
|
7 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
|
|
20 |
"Idefics2ForConditionalGeneration": Idefics2ForConditionalGeneration,
|
21 |
"Owlv2ForObjectDetection": Owlv2ForObjectDetection,
|
22 |
"GroundingDinoForObjectDetection": GroundingDinoForObjectDetection,
|
23 |
+
"SamModel": SamModel,
|
24 |
"AutoModelForCausalLM": AutoModelForCausalLM
|
25 |
}
|
26 |
|