Helw150
commited on
Commit
•
c583d87
1
Parent(s):
74750ce
Need a Config
Browse files- config.json +1 -0
- 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)
|