ahatamiz commited on
Commit
18e6dfd
·
verified ·
1 Parent(s): c7b85d2

Upload model

Browse files
Files changed (3) hide show
  1. config.json +4 -0
  2. model.safetensors +1 -1
  3. modeling_mambavision.py +4 -1
config.json CHANGED
@@ -2,6 +2,10 @@
2
  "architectures": [
3
  "MambaVisionModelForImageClassification"
4
  ],
 
 
 
 
5
  "depths": [
6
  1,
7
  3,
 
2
  "architectures": [
3
  "MambaVisionModelForImageClassification"
4
  ],
5
+ "auto_map": {
6
+ "AutoConfig": "configuration_mambavision.MambaVisionConfig",
7
+ "AutoModelForImageClassification": "modeling_mambavision.MambaVisionModelForImageClassification"
8
+ },
9
  "depths": [
10
  1,
11
  3,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6e75f2fb39a44bd66c494af2b2b8ca57fde0d20e5edde227492b25ad9b0ce546
3
  size 127219000
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f6987be0a2ca2222f386eb750d028a05203b047d3c8dfb664c27e2295d02fc0
3
  size 127219000
modeling_mambavision.py CHANGED
@@ -28,7 +28,10 @@ from einops import rearrange, repeat
28
 
29
  from transformers import PreTrainedModel
30
 
31
- from .configuration_mambavision import MambaVisionConfig
 
 
 
32
 
33
 
34
  def _cfg(url='', **kwargs):
 
28
 
29
  from transformers import PreTrainedModel
30
 
31
+ try:
32
+ from .configuration_mambavision import MambaVisionConfig
33
+ except:
34
+ from configuration_mambavision import MambaVisionConfig
35
 
36
 
37
  def _cfg(url='', **kwargs):