Feature Extraction
Transformers
Safetensors
diva
custom_code
Helw150 commited on
Commit
c583d87
1 Parent(s): 74750ce

Need a Config

Browse files
Files changed (2) hide show
  1. config.json +1 -0
  2. configuring_diva.py +11 -0
config.json CHANGED
@@ -2,6 +2,7 @@
2
  "model_type": "diva",
3
  "architectures": [ "DiVAModel" ],
4
  "auto_map": {
 
5
  "AutoModel": "modeling_diva.DiVAModel"
6
  },
7
  "vocab_size": 128256,
 
2
  "model_type": "diva",
3
  "architectures": [ "DiVAModel" ],
4
  "auto_map": {
5
+ "AutoConfig": "configuring_diva.DiVAConfig",
6
  "AutoModel": "modeling_diva.DiVAModel"
7
  },
8
  "vocab_size": 128256,
configuring_diva.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import PretrainedConfig
2
+
3
+
4
+ class DiVAConfig(PretrainedConfig):
5
+ model_type = "diva"
6
+
7
+ def __init__(
8
+ self,
9
+ **kwargs,
10
+ ):
11
+ super().__init__(**kwargs)