Upload config
Browse files- config.json +1 -5
- model_config.py +0 -11
config.json
CHANGED
|
@@ -1,10 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"InternVideo2_Classification"
|
| 4 |
-
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoConfig": "model_config.VideoChat2Config"
|
| 7 |
-
"AutoModel": "modeling_videochat2_classification.InternVideo2_Classification"
|
| 8 |
},
|
| 9 |
"model_config": {
|
| 10 |
"bridge": {
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"auto_map": {
|
| 3 |
+
"AutoConfig": "model_config.VideoChat2Config"
|
|
|
|
| 4 |
},
|
| 5 |
"model_config": {
|
| 6 |
"bridge": {
|
model_config.py
CHANGED
|
@@ -1,16 +1,5 @@
|
|
| 1 |
-
import copy
|
| 2 |
-
import re, ast
|
| 3 |
-
from transformers import AutoConfig, LlamaConfig
|
| 4 |
from transformers.configuration_utils import PretrainedConfig
|
| 5 |
-
from transformers.utils import logging
|
| 6 |
-
|
| 7 |
from easydict import EasyDict as MyEasyDict
|
| 8 |
-
from importlib import import_module
|
| 9 |
-
import os.path as osp
|
| 10 |
-
import argparse
|
| 11 |
-
import json
|
| 12 |
-
from copy import deepcopy
|
| 13 |
-
import sys
|
| 14 |
|
| 15 |
|
| 16 |
class VideoChat2Config(PretrainedConfig):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from transformers.configuration_utils import PretrainedConfig
|
|
|
|
|
|
|
| 2 |
from easydict import EasyDict as MyEasyDict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
class VideoChat2Config(PretrainedConfig):
|