dwb2023 commited on
Commit
5a98aa0
1 Parent(s): 3e10a87

Update model_utils.py

Browse files
Files changed (1) hide show
  1. 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