Commit
·
4bd811a
1
Parent(s):
6bb7f57
add video index
Browse files- added_tokens.json +2 -1
- config.json +1 -1
- qformer_tokenizer/tokenizer_config.json +1 -0
- tokenizer.json +9 -0
- tokenizer_config.json +9 -0
added_tokens.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"<image>": 32100
|
|
|
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"<image>": 32100,
|
| 3 |
+
"<video>": 32101
|
| 4 |
}
|
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/raid/raushan/instructblip-flan-t5-xl/",
|
| 3 |
"architectures": [
|
| 4 |
"InstructBlipForConditionalGeneration"
|
| 5 |
],
|
|
@@ -79,6 +78,7 @@
|
|
| 79 |
"torch_dtype": "float32",
|
| 80 |
"transformers_version": "4.47.0.dev0",
|
| 81 |
"use_decoder_only_language_model": false,
|
|
|
|
| 82 |
"vision_config": {
|
| 83 |
"_attn_implementation_autoset": true,
|
| 84 |
"dropout": 0.0,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"InstructBlipForConditionalGeneration"
|
| 4 |
],
|
|
|
|
| 78 |
"torch_dtype": "float32",
|
| 79 |
"transformers_version": "4.47.0.dev0",
|
| 80 |
"use_decoder_only_language_model": false,
|
| 81 |
+
"video_token_index": 32101,
|
| 82 |
"vision_config": {
|
| 83 |
"_attn_implementation_autoset": true,
|
| 84 |
"dropout": 0.0,
|
qformer_tokenizer/tokenizer_config.json
CHANGED
|
@@ -53,6 +53,7 @@
|
|
| 53 |
"clean_up_tokenization_spaces": true,
|
| 54 |
"cls_token": "[CLS]",
|
| 55 |
"do_lower_case": true,
|
|
|
|
| 56 |
"mask_token": "[MASK]",
|
| 57 |
"model_max_length": 512,
|
| 58 |
"pad_token": "[PAD]",
|
|
|
|
| 53 |
"clean_up_tokenization_spaces": true,
|
| 54 |
"cls_token": "[CLS]",
|
| 55 |
"do_lower_case": true,
|
| 56 |
+
"extra_special_tokens": {},
|
| 57 |
"mask_token": "[MASK]",
|
| 58 |
"model_max_length": 512,
|
| 59 |
"pad_token": "[PAD]",
|
tokenizer.json
CHANGED
|
@@ -938,6 +938,15 @@
|
|
| 938 |
"rstrip": false,
|
| 939 |
"normalized": false,
|
| 940 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 941 |
}
|
| 942 |
],
|
| 943 |
"normalizer": {
|
|
|
|
| 938 |
"rstrip": false,
|
| 939 |
"normalized": false,
|
| 940 |
"special": true
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"id": 32101,
|
| 944 |
+
"content": "<video>",
|
| 945 |
+
"single_word": false,
|
| 946 |
+
"lstrip": false,
|
| 947 |
+
"rstrip": false,
|
| 948 |
+
"normalized": false,
|
| 949 |
+
"special": true
|
| 950 |
}
|
| 951 |
],
|
| 952 |
"normalizer": {
|
tokenizer_config.json
CHANGED
|
@@ -831,6 +831,14 @@
|
|
| 831 |
"rstrip": false,
|
| 832 |
"single_word": false,
|
| 833 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 834 |
}
|
| 835 |
},
|
| 836 |
"additional_special_tokens": [
|
|
@@ -938,6 +946,7 @@
|
|
| 938 |
"clean_up_tokenization_spaces": true,
|
| 939 |
"eos_token": "</s>",
|
| 940 |
"extra_ids": 100,
|
|
|
|
| 941 |
"model_max_length": 512,
|
| 942 |
"pad_token": "<pad>",
|
| 943 |
"processor_class": "InstructBlipProcessor",
|
|
|
|
| 831 |
"rstrip": false,
|
| 832 |
"single_word": false,
|
| 833 |
"special": true
|
| 834 |
+
},
|
| 835 |
+
"32101": {
|
| 836 |
+
"content": "<video>",
|
| 837 |
+
"lstrip": false,
|
| 838 |
+
"normalized": false,
|
| 839 |
+
"rstrip": false,
|
| 840 |
+
"single_word": false,
|
| 841 |
+
"special": true
|
| 842 |
}
|
| 843 |
},
|
| 844 |
"additional_special_tokens": [
|
|
|
|
| 946 |
"clean_up_tokenization_spaces": true,
|
| 947 |
"eos_token": "</s>",
|
| 948 |
"extra_ids": 100,
|
| 949 |
+
"extra_special_tokens": {},
|
| 950 |
"model_max_length": 512,
|
| 951 |
"pad_token": "<pad>",
|
| 952 |
"processor_class": "InstructBlipProcessor",
|