Upload model
Browse files- config.json +127 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "alexandrlukashov/gliclass_mdeberta_v2_checkpoint_7000",
|
| 3 |
+
"architecture_type": "uni-encoder",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GLiClassModel"
|
| 6 |
+
],
|
| 7 |
+
"class_token_index": 250102,
|
| 8 |
+
"contrastive_loss_coef": 0.1,
|
| 9 |
+
"embed_class_token": true,
|
| 10 |
+
"encoder_config": {
|
| 11 |
+
"_attn_implementation_autoset": false,
|
| 12 |
+
"_name_or_path": "microsoft/mdeberta-v3-base",
|
| 13 |
+
"add_cross_attention": false,
|
| 14 |
+
"architectures": null,
|
| 15 |
+
"attention_probs_dropout_prob": 0.1,
|
| 16 |
+
"bad_words_ids": null,
|
| 17 |
+
"begin_suppress_tokens": null,
|
| 18 |
+
"bos_token_id": null,
|
| 19 |
+
"chunk_size_feed_forward": 0,
|
| 20 |
+
"cross_attention_hidden_size": null,
|
| 21 |
+
"decoder_start_token_id": null,
|
| 22 |
+
"diversity_penalty": 0.0,
|
| 23 |
+
"do_sample": false,
|
| 24 |
+
"early_stopping": false,
|
| 25 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 26 |
+
"eos_token_id": null,
|
| 27 |
+
"exponential_decay_length_penalty": null,
|
| 28 |
+
"finetuning_task": null,
|
| 29 |
+
"forced_bos_token_id": null,
|
| 30 |
+
"forced_eos_token_id": null,
|
| 31 |
+
"hidden_act": "gelu",
|
| 32 |
+
"hidden_dropout_prob": 0.1,
|
| 33 |
+
"hidden_size": 768,
|
| 34 |
+
"id2label": {
|
| 35 |
+
"0": "LABEL_0",
|
| 36 |
+
"1": "LABEL_1"
|
| 37 |
+
},
|
| 38 |
+
"initializer_range": 0.02,
|
| 39 |
+
"intermediate_size": 3072,
|
| 40 |
+
"is_decoder": false,
|
| 41 |
+
"is_encoder_decoder": false,
|
| 42 |
+
"label2id": {
|
| 43 |
+
"LABEL_0": 0,
|
| 44 |
+
"LABEL_1": 1
|
| 45 |
+
},
|
| 46 |
+
"layer_norm_eps": 1e-07,
|
| 47 |
+
"legacy": true,
|
| 48 |
+
"length_penalty": 1.0,
|
| 49 |
+
"max_length": 20,
|
| 50 |
+
"max_position_embeddings": 512,
|
| 51 |
+
"max_relative_positions": -1,
|
| 52 |
+
"min_length": 0,
|
| 53 |
+
"model_type": "deberta-v2",
|
| 54 |
+
"no_repeat_ngram_size": 0,
|
| 55 |
+
"norm_rel_ebd": "layer_norm",
|
| 56 |
+
"num_attention_heads": 12,
|
| 57 |
+
"num_beam_groups": 1,
|
| 58 |
+
"num_beams": 1,
|
| 59 |
+
"num_hidden_layers": 12,
|
| 60 |
+
"num_return_sequences": 1,
|
| 61 |
+
"output_attentions": false,
|
| 62 |
+
"output_hidden_states": true,
|
| 63 |
+
"output_scores": false,
|
| 64 |
+
"pad_token_id": 0,
|
| 65 |
+
"pooler_dropout": 0,
|
| 66 |
+
"pooler_hidden_act": "gelu",
|
| 67 |
+
"pooler_hidden_size": 768,
|
| 68 |
+
"pos_att_type": [
|
| 69 |
+
"p2c",
|
| 70 |
+
"c2p"
|
| 71 |
+
],
|
| 72 |
+
"position_biased_input": false,
|
| 73 |
+
"position_buckets": 256,
|
| 74 |
+
"prefix": null,
|
| 75 |
+
"problem_type": null,
|
| 76 |
+
"pruned_heads": {},
|
| 77 |
+
"relative_attention": true,
|
| 78 |
+
"remove_invalid_values": false,
|
| 79 |
+
"repetition_penalty": 1.0,
|
| 80 |
+
"return_dict": true,
|
| 81 |
+
"return_dict_in_generate": false,
|
| 82 |
+
"sep_token_id": null,
|
| 83 |
+
"share_att_key": true,
|
| 84 |
+
"suppress_tokens": null,
|
| 85 |
+
"task_specific_params": null,
|
| 86 |
+
"temperature": 1.0,
|
| 87 |
+
"tf_legacy_loss": false,
|
| 88 |
+
"tie_encoder_decoder": false,
|
| 89 |
+
"tie_word_embeddings": true,
|
| 90 |
+
"tokenizer_class": null,
|
| 91 |
+
"top_k": 50,
|
| 92 |
+
"top_p": 1.0,
|
| 93 |
+
"torch_dtype": null,
|
| 94 |
+
"torchscript": false,
|
| 95 |
+
"type_vocab_size": 0,
|
| 96 |
+
"typical_p": 1.0,
|
| 97 |
+
"use_bfloat16": false,
|
| 98 |
+
"vocab_size": 250104
|
| 99 |
+
},
|
| 100 |
+
"encoder_layer_id": -1,
|
| 101 |
+
"encoder_model_name": "microsoft/mdeberta-v3-base",
|
| 102 |
+
"extract_text_features": false,
|
| 103 |
+
"focal_loss_alpha": -1,
|
| 104 |
+
"focal_loss_gamma": -1,
|
| 105 |
+
"focal_loss_reduction": "sum",
|
| 106 |
+
"hidden_size": 768,
|
| 107 |
+
"ignore_index": -100,
|
| 108 |
+
"initializer_range": 0.03,
|
| 109 |
+
"label_model_config": null,
|
| 110 |
+
"label_model_name": null,
|
| 111 |
+
"layer_wise": true,
|
| 112 |
+
"logit_scale_init_value": 2.6592,
|
| 113 |
+
"max_num_classes": 25,
|
| 114 |
+
"model_type": "GLiClass",
|
| 115 |
+
"normalize_features": false,
|
| 116 |
+
"pooling_strategy": "first",
|
| 117 |
+
"projector_hidden_act": "gelu",
|
| 118 |
+
"prompt_first": true,
|
| 119 |
+
"scorer_type": "simple",
|
| 120 |
+
"shuffle_labels": true,
|
| 121 |
+
"squeeze_layers": false,
|
| 122 |
+
"text_token_index": 250103,
|
| 123 |
+
"torch_dtype": "float32",
|
| 124 |
+
"transformers_version": "4.48.2",
|
| 125 |
+
"use_lstm": false,
|
| 126 |
+
"vocab_size": 250104
|
| 127 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5078887573c115544c3f766f49b4e9b37228b077f4abf7b0ee17bfaa1004977
|
| 3 |
+
size 1119599644
|