Fix auto_map warning and remove __pycache__
Browse files- config.json +1 -5
- configuration_m2_encoder.py +0 -1
- upload_to_hub.py +2 -0
- vlmo/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/__pycache__/config.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/heads.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/modeling_utils.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/objectives.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/vlmo_module.cpython-311.pyc +0 -0
- vlmo/modules/__pycache__/vlmo_utils.cpython-311.pyc +0 -0
- vlmo/tokenizer/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/tokenizer/__pycache__/tokenization_glm.cpython-311.pyc +0 -0
- vlmo/torchscale/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/torchscale/architecture/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/torchscale/architecture/__pycache__/config.cpython-311.pyc +0 -0
- vlmo/torchscale/architecture/__pycache__/encoder.cpython-311.pyc +0 -0
- vlmo/torchscale/architecture/__pycache__/utils.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/droppath.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/embedding.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/feedforward_network.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/multihead_attention.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/multiway_network.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/relative_position_bias.cpython-311.pyc +0 -0
- vlmo/torchscale/component/__pycache__/xpos_relative_position.cpython-311.pyc +0 -0
- vlmo/torchscale/component/xmoe/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/torchscale/component/xmoe/__pycache__/moe_layer.cpython-311.pyc +0 -0
- vlmo/torchscale/component/xmoe/__pycache__/routing.cpython-311.pyc +0 -0
- vlmo/torchscale/model/__pycache__/BEiT3.cpython-311.pyc +0 -0
- vlmo/torchscale/model/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/pixelbert.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/randaug.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/randaugment.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/square_transform.cpython-311.pyc +0 -0
- vlmo/transforms/__pycache__/utils.cpython-311.pyc +0 -0
- vlmo/utils/__pycache__/__init__.cpython-311.pyc +0 -0
- vlmo/utils/__pycache__/beit_utils.cpython-311.pyc +0 -0
config.json
CHANGED
|
@@ -28,10 +28,6 @@
|
|
| 28 |
"auto_map": {
|
| 29 |
"AutoConfig": "configuration_m2_encoder.M2EncoderConfig",
|
| 30 |
"AutoModel": "modeling_m2_encoder.M2EncoderModel",
|
| 31 |
-
"AutoProcessor": "processing_m2_encoder.M2EncoderProcessor"
|
| 32 |
-
"AutoTokenizer": [
|
| 33 |
-
"tokenization_glm.GLMChineseTokenizer",
|
| 34 |
-
null
|
| 35 |
-
]
|
| 36 |
}
|
| 37 |
}
|
|
|
|
| 28 |
"auto_map": {
|
| 29 |
"AutoConfig": "configuration_m2_encoder.M2EncoderConfig",
|
| 30 |
"AutoModel": "modeling_m2_encoder.M2EncoderModel",
|
| 31 |
+
"AutoProcessor": "processing_m2_encoder.M2EncoderProcessor"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
}
|
configuration_m2_encoder.py
CHANGED
|
@@ -52,7 +52,6 @@ class M2EncoderConfig(PretrainedConfig):
|
|
| 52 |
"AutoConfig": "configuration_m2_encoder.M2EncoderConfig",
|
| 53 |
"AutoModel": "modeling_m2_encoder.M2EncoderModel",
|
| 54 |
"AutoProcessor": "processing_m2_encoder.M2EncoderProcessor",
|
| 55 |
-
"AutoTokenizer": ["tokenization_glm.GLMChineseTokenizer", None],
|
| 56 |
}
|
| 57 |
|
| 58 |
@classmethod
|
|
|
|
| 52 |
"AutoConfig": "configuration_m2_encoder.M2EncoderConfig",
|
| 53 |
"AutoModel": "modeling_m2_encoder.M2EncoderModel",
|
| 54 |
"AutoProcessor": "processing_m2_encoder.M2EncoderProcessor",
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
@classmethod
|
upload_to_hub.py
CHANGED
|
@@ -23,6 +23,8 @@ def main():
|
|
| 23 |
repo_id=args.repo_id,
|
| 24 |
folder_path=str(folder),
|
| 25 |
commit_message=args.commit_message,
|
|
|
|
|
|
|
| 26 |
)
|
| 27 |
print(f"Uploaded {folder} -> {args.repo_id}")
|
| 28 |
|
|
|
|
| 23 |
repo_id=args.repo_id,
|
| 24 |
folder_path=str(folder),
|
| 25 |
commit_message=args.commit_message,
|
| 26 |
+
ignore_patterns=["**/__pycache__/**", "__pycache__/**", "*.pyc", "*.pyo"],
|
| 27 |
+
delete_patterns=["**/__pycache__/**", "__pycache__/**", "*.pyc", "*.pyo"],
|
| 28 |
)
|
| 29 |
print(f"Uploaded {folder} -> {args.repo_id}")
|
| 30 |
|
vlmo/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (193 Bytes)
|
|
|
vlmo/__pycache__/config.cpython-311.pyc
DELETED
|
Binary file (3.82 kB)
|
|
|
vlmo/modules/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (255 Bytes)
|
|
|
vlmo/modules/__pycache__/heads.cpython-311.pyc
DELETED
|
Binary file (2.09 kB)
|
|
|
vlmo/modules/__pycache__/modeling_utils.cpython-311.pyc
DELETED
|
Binary file (5.9 kB)
|
|
|
vlmo/modules/__pycache__/objectives.cpython-311.pyc
DELETED
|
Binary file (1.16 kB)
|
|
|
vlmo/modules/__pycache__/vlmo_module.cpython-311.pyc
DELETED
|
Binary file (25.3 kB)
|
|
|
vlmo/modules/__pycache__/vlmo_utils.cpython-311.pyc
DELETED
|
Binary file (1.22 kB)
|
|
|
vlmo/tokenizer/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (369 Bytes)
|
|
|
vlmo/tokenizer/__pycache__/tokenization_glm.cpython-311.pyc
DELETED
|
Binary file (24.2 kB)
|
|
|
vlmo/torchscale/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (204 Bytes)
|
|
|
vlmo/torchscale/architecture/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (217 Bytes)
|
|
|
vlmo/torchscale/architecture/__pycache__/config.cpython-311.pyc
DELETED
|
Binary file (14.8 kB)
|
|
|
vlmo/torchscale/architecture/__pycache__/encoder.cpython-311.pyc
DELETED
|
Binary file (22.8 kB)
|
|
|
vlmo/torchscale/architecture/__pycache__/utils.cpython-311.pyc
DELETED
|
Binary file (2.58 kB)
|
|
|
vlmo/torchscale/component/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (214 Bytes)
|
|
|
vlmo/torchscale/component/__pycache__/droppath.cpython-311.pyc
DELETED
|
Binary file (1.5 kB)
|
|
|
vlmo/torchscale/component/__pycache__/embedding.cpython-311.pyc
DELETED
|
Binary file (6.15 kB)
|
|
|
vlmo/torchscale/component/__pycache__/feedforward_network.cpython-311.pyc
DELETED
|
Binary file (7.35 kB)
|
|
|
vlmo/torchscale/component/__pycache__/multihead_attention.cpython-311.pyc
DELETED
|
Binary file (9.14 kB)
|
|
|
vlmo/torchscale/component/__pycache__/multiway_network.cpython-311.pyc
DELETED
|
Binary file (3.43 kB)
|
|
|
vlmo/torchscale/component/__pycache__/relative_position_bias.cpython-311.pyc
DELETED
|
Binary file (4.12 kB)
|
|
|
vlmo/torchscale/component/__pycache__/xpos_relative_position.cpython-311.pyc
DELETED
|
Binary file (4.24 kB)
|
|
|
vlmo/torchscale/component/xmoe/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (219 Bytes)
|
|
|
vlmo/torchscale/component/xmoe/__pycache__/moe_layer.cpython-311.pyc
DELETED
|
Binary file (17.6 kB)
|
|
|
vlmo/torchscale/component/xmoe/__pycache__/routing.cpython-311.pyc
DELETED
|
Binary file (23 kB)
|
|
|
vlmo/torchscale/model/__pycache__/BEiT3.cpython-311.pyc
DELETED
|
Binary file (3.93 kB)
|
|
|
vlmo/torchscale/model/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (210 Bytes)
|
|
|
vlmo/transforms/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (1.01 kB)
|
|
|
vlmo/transforms/__pycache__/pixelbert.cpython-311.pyc
DELETED
|
Binary file (1.46 kB)
|
|
|
vlmo/transforms/__pycache__/randaug.cpython-311.pyc
DELETED
|
Binary file (13.8 kB)
|
|
|
vlmo/transforms/__pycache__/randaugment.cpython-311.pyc
DELETED
|
Binary file (18.2 kB)
|
|
|
vlmo/transforms/__pycache__/square_transform.cpython-311.pyc
DELETED
|
Binary file (1.5 kB)
|
|
|
vlmo/transforms/__pycache__/utils.cpython-311.pyc
DELETED
|
Binary file (3.13 kB)
|
|
|
vlmo/utils/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (199 Bytes)
|
|
|
vlmo/utils/__pycache__/beit_utils.cpython-311.pyc
DELETED
|
Binary file (4.88 kB)
|
|
|