Making the vocab_size match the tokenizer vocab_size.

This commit is contained in:
Nicolas Patry 2022-02-16 18:14:27 +01:00
parent 10da33b5d6
commit 4be554b688
No known key found for this signature in database
GPG Key ID: 798FF72A96CC526E
1 changed files with 287 additions and 287 deletions

View File

@ -1,294 +1,294 @@
{ {
"initializer_factor": 1.0,
"logit_scale_init_value": 2.6592,
"model_type": "clip",
"projection_dim": 64,
"text_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"attention_dropout": 0.1,
"bad_words_ids": null,
"bos_token_id": 0,
"chunk_size_feed_forward": 0,
"decoder_start_token_id": null,
"diversity_penalty": 0.0,
"do_sample": false,
"dropout": 0.1,
"early_stopping": false,
"encoder_no_repeat_ngram_size": 0,
"eos_token_id": 2,
"finetuning_task": null,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"gradient_checkpointing": false,
"hidden_act": "quick_gelu",
"hidden_size": 32,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"initializer_factor": 1.0, "initializer_factor": 1.0,
"initializer_range": 0.02, "logit_scale_init_value": 2.6592,
"intermediate_size": 37, "model_type": "clip",
"is_decoder": false, "projection_dim": 64,
"is_encoder_decoder": false, "text_config": {
"label2id": { "_name_or_path": "",
"LABEL_0": 0, "add_cross_attention": false,
"LABEL_1": 1 "architectures": null,
"attention_dropout": 0.1,
"bad_words_ids": null,
"bos_token_id": 0,
"chunk_size_feed_forward": 0,
"decoder_start_token_id": null,
"diversity_penalty": 0.0,
"do_sample": false,
"dropout": 0.1,
"early_stopping": false,
"encoder_no_repeat_ngram_size": 0,
"eos_token_id": 2,
"finetuning_task": null,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"gradient_checkpointing": false,
"hidden_act": "quick_gelu",
"hidden_size": 32,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 37,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_norm_eps": 1e-5,
"length_penalty": 1.0,
"max_length": 20,
"max_position_embeddings": 512,
"min_length": 0,
"model_type": "clip_text_model",
"no_repeat_ngram_size": 0,
"num_attention_heads": 4,
"num_beam_groups": 1,
"num_beams": 1,
"num_hidden_layers": 5,
"num_return_sequences": 1,
"output_attentions": false,
"output_hidden_states": false,
"output_scores": false,
"pad_token_id": 1,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"remove_invalid_values": false,
"repetition_penalty": 1.0,
"return_dict": true,
"return_dict_in_generate": false,
"sep_token_id": null,
"task_specific_params": null,
"temperature": 1.0,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false,
"vocab_size": 1000
}, },
"layer_norm_eps": 1e-05, "text_config_dict": {
"length_penalty": 1.0, "_name_or_path": "",
"max_length": 20, "add_cross_attention": false,
"max_position_embeddings": 512, "architectures": null,
"min_length": 0, "attention_dropout": 0.1,
"model_type": "clip_text_model", "bad_words_ids": null,
"no_repeat_ngram_size": 0, "bos_token_id": 0,
"num_attention_heads": 4, "chunk_size_feed_forward": 0,
"num_beam_groups": 1, "decoder_start_token_id": null,
"num_beams": 1, "diversity_penalty": 0.0,
"num_hidden_layers": 5, "do_sample": false,
"num_return_sequences": 1, "dropout": 0.1,
"output_attentions": false, "early_stopping": false,
"output_hidden_states": false, "encoder_no_repeat_ngram_size": 0,
"output_scores": false, "eos_token_id": 2,
"pad_token_id": 1, "finetuning_task": null,
"prefix": null, "forced_bos_token_id": null,
"problem_type": null, "forced_eos_token_id": null,
"pruned_heads": {}, "gradient_checkpointing": false,
"remove_invalid_values": false, "hidden_act": "quick_gelu",
"repetition_penalty": 1.0, "hidden_size": 32,
"return_dict": true, "id2label": {
"return_dict_in_generate": false, "0": "LABEL_0",
"sep_token_id": null, "1": "LABEL_1"
"task_specific_params": null, },
"temperature": 1.0, "initializer_factor": 1.0,
"tie_encoder_decoder": false, "initializer_range": 0.02,
"tie_word_embeddings": true, "intermediate_size": 37,
"tokenizer_class": null, "is_decoder": false,
"top_k": 50, "is_encoder_decoder": false,
"top_p": 1.0, "label2id": {
"torch_dtype": null, "LABEL_0": 0,
"torchscript": false, "LABEL_1": 1
"transformers_version": "4.11.0.dev0", },
"use_bfloat16": false, "layer_norm_eps": 1e-5,
"vocab_size": 99 "length_penalty": 1.0,
}, "max_length": 20,
"text_config_dict": { "max_position_embeddings": 512,
"_name_or_path": "", "min_length": 0,
"add_cross_attention": false, "model_type": "clip_text_model",
"architectures": null, "no_repeat_ngram_size": 0,
"attention_dropout": 0.1, "num_attention_heads": 4,
"bad_words_ids": null, "num_beam_groups": 1,
"bos_token_id": 0, "num_beams": 1,
"chunk_size_feed_forward": 0, "num_hidden_layers": 5,
"decoder_start_token_id": null, "num_return_sequences": 1,
"diversity_penalty": 0.0, "output_attentions": false,
"do_sample": false, "output_hidden_states": false,
"dropout": 0.1, "output_scores": false,
"early_stopping": false, "pad_token_id": 1,
"encoder_no_repeat_ngram_size": 0, "prefix": null,
"eos_token_id": 2, "problem_type": null,
"finetuning_task": null, "pruned_heads": {},
"forced_bos_token_id": null, "remove_invalid_values": false,
"forced_eos_token_id": null, "repetition_penalty": 1.0,
"gradient_checkpointing": false, "return_dict": true,
"hidden_act": "quick_gelu", "return_dict_in_generate": false,
"hidden_size": 32, "sep_token_id": null,
"id2label": { "task_specific_params": null,
"0": "LABEL_0", "temperature": 1.0,
"1": "LABEL_1" "tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false,
"vocab_size": 1000
}, },
"initializer_factor": 1.0, "transformers_version": null,
"initializer_range": 0.02, "vision_config": {
"intermediate_size": 37, "_name_or_path": "",
"is_decoder": false, "add_cross_attention": false,
"is_encoder_decoder": false, "architectures": null,
"label2id": { "attention_dropout": 0.1,
"LABEL_0": 0, "bad_words_ids": null,
"LABEL_1": 1 "bos_token_id": null,
"chunk_size_feed_forward": 0,
"decoder_start_token_id": null,
"diversity_penalty": 0.0,
"do_sample": false,
"dropout": 0.1,
"early_stopping": false,
"encoder_no_repeat_ngram_size": 0,
"eos_token_id": null,
"finetuning_task": null,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"gradient_checkpointing": false,
"hidden_act": "quick_gelu",
"hidden_size": 32,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"image_size": 30,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 37,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_norm_eps": 1e-5,
"length_penalty": 1.0,
"max_length": 20,
"min_length": 0,
"model_type": "clip_vision_model",
"no_repeat_ngram_size": 0,
"num_attention_heads": 4,
"num_beam_groups": 1,
"num_beams": 1,
"num_channels": 3,
"num_hidden_layers": 5,
"num_return_sequences": 1,
"output_attentions": false,
"output_hidden_states": false,
"output_scores": false,
"pad_token_id": null,
"patch_size": 2,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"remove_invalid_values": false,
"repetition_penalty": 1.0,
"return_dict": true,
"return_dict_in_generate": false,
"sep_token_id": null,
"task_specific_params": null,
"temperature": 1.0,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false
}, },
"layer_norm_eps": 1e-05, "vision_config_dict": {
"length_penalty": 1.0, "_name_or_path": "",
"max_length": 20, "add_cross_attention": false,
"max_position_embeddings": 512, "architectures": null,
"min_length": 0, "attention_dropout": 0.1,
"model_type": "clip_text_model", "bad_words_ids": null,
"no_repeat_ngram_size": 0, "bos_token_id": null,
"num_attention_heads": 4, "chunk_size_feed_forward": 0,
"num_beam_groups": 1, "decoder_start_token_id": null,
"num_beams": 1, "diversity_penalty": 0.0,
"num_hidden_layers": 5, "do_sample": false,
"num_return_sequences": 1, "dropout": 0.1,
"output_attentions": false, "early_stopping": false,
"output_hidden_states": false, "encoder_no_repeat_ngram_size": 0,
"output_scores": false, "eos_token_id": null,
"pad_token_id": 1, "finetuning_task": null,
"prefix": null, "forced_bos_token_id": null,
"problem_type": null, "forced_eos_token_id": null,
"pruned_heads": {}, "gradient_checkpointing": false,
"remove_invalid_values": false, "hidden_act": "quick_gelu",
"repetition_penalty": 1.0, "hidden_size": 32,
"return_dict": true, "id2label": {
"return_dict_in_generate": false, "0": "LABEL_0",
"sep_token_id": null, "1": "LABEL_1"
"task_specific_params": null, },
"temperature": 1.0, "image_size": 30,
"tie_encoder_decoder": false, "initializer_factor": 1.0,
"tie_word_embeddings": true, "initializer_range": 0.02,
"tokenizer_class": null, "intermediate_size": 37,
"top_k": 50, "is_decoder": false,
"top_p": 1.0, "is_encoder_decoder": false,
"torch_dtype": null, "label2id": {
"torchscript": false, "LABEL_0": 0,
"transformers_version": "4.11.0.dev0", "LABEL_1": 1
"use_bfloat16": false, },
"vocab_size": 99 "layer_norm_eps": 1e-5,
}, "length_penalty": 1.0,
"transformers_version": null, "max_length": 20,
"vision_config": { "min_length": 0,
"_name_or_path": "", "model_type": "clip_vision_model",
"add_cross_attention": false, "no_repeat_ngram_size": 0,
"architectures": null, "num_attention_heads": 4,
"attention_dropout": 0.1, "num_beam_groups": 1,
"bad_words_ids": null, "num_beams": 1,
"bos_token_id": null, "num_channels": 3,
"chunk_size_feed_forward": 0, "num_hidden_layers": 5,
"decoder_start_token_id": null, "num_return_sequences": 1,
"diversity_penalty": 0.0, "output_attentions": false,
"do_sample": false, "output_hidden_states": false,
"dropout": 0.1, "output_scores": false,
"early_stopping": false, "pad_token_id": null,
"encoder_no_repeat_ngram_size": 0, "patch_size": 2,
"eos_token_id": null, "prefix": null,
"finetuning_task": null, "problem_type": null,
"forced_bos_token_id": null, "pruned_heads": {},
"forced_eos_token_id": null, "remove_invalid_values": false,
"gradient_checkpointing": false, "repetition_penalty": 1.0,
"hidden_act": "quick_gelu", "return_dict": true,
"hidden_size": 32, "return_dict_in_generate": false,
"id2label": { "sep_token_id": null,
"0": "LABEL_0", "task_specific_params": null,
"1": "LABEL_1" "temperature": 1.0,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false
}, },
"image_size": 30, "vocab_size": 1000
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 37,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_norm_eps": 1e-05,
"length_penalty": 1.0,
"max_length": 20,
"min_length": 0,
"model_type": "clip_vision_model",
"no_repeat_ngram_size": 0,
"num_attention_heads": 4,
"num_beam_groups": 1,
"num_beams": 1,
"num_channels": 3,
"num_hidden_layers": 5,
"num_return_sequences": 1,
"output_attentions": false,
"output_hidden_states": false,
"output_scores": false,
"pad_token_id": null,
"patch_size": 2,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"remove_invalid_values": false,
"repetition_penalty": 1.0,
"return_dict": true,
"return_dict_in_generate": false,
"sep_token_id": null,
"task_specific_params": null,
"temperature": 1.0,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false
},
"vision_config_dict": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"attention_dropout": 0.1,
"bad_words_ids": null,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"decoder_start_token_id": null,
"diversity_penalty": 0.0,
"do_sample": false,
"dropout": 0.1,
"early_stopping": false,
"encoder_no_repeat_ngram_size": 0,
"eos_token_id": null,
"finetuning_task": null,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"gradient_checkpointing": false,
"hidden_act": "quick_gelu",
"hidden_size": 32,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"image_size": 30,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 37,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_norm_eps": 1e-05,
"length_penalty": 1.0,
"max_length": 20,
"min_length": 0,
"model_type": "clip_vision_model",
"no_repeat_ngram_size": 0,
"num_attention_heads": 4,
"num_beam_groups": 1,
"num_beams": 1,
"num_channels": 3,
"num_hidden_layers": 5,
"num_return_sequences": 1,
"output_attentions": false,
"output_hidden_states": false,
"output_scores": false,
"pad_token_id": null,
"patch_size": 2,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"remove_invalid_values": false,
"repetition_penalty": 1.0,
"return_dict": true,
"return_dict_in_generate": false,
"sep_token_id": null,
"task_specific_params": null,
"temperature": 1.0,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"top_k": 50,
"top_p": 1.0,
"torch_dtype": null,
"torchscript": false,
"transformers_version": "4.11.0.dev0",
"use_bfloat16": false
},
"vocab_size": 1000
} }