Commit
•
a73e134
1
Parent(s):
969a557
uploaded model
Browse files- config.json +89 -0
config.json
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Radiology_Bart",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"add_bias_logits": false,
|
6 |
+
"add_final_layer_norm": false,
|
7 |
+
"architectures": [
|
8 |
+
"BartForCausalLM"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.1,
|
11 |
+
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.1,
|
13 |
+
"classifier_dropout": 0.0,
|
14 |
+
"d_model": 1024,
|
15 |
+
"decoder_attention_heads": 16,
|
16 |
+
"decoder_ffn_dim": 4096,
|
17 |
+
"decoder_layerdrop": 0.0,
|
18 |
+
"decoder_layers": 12,
|
19 |
+
"decoder_start_token_id": 2,
|
20 |
+
"dropout": 0.1,
|
21 |
+
"early_stopping": true,
|
22 |
+
"encoder_attention_heads": 16,
|
23 |
+
"encoder_ffn_dim": 4096,
|
24 |
+
"encoder_layerdrop": 0.0,
|
25 |
+
"encoder_layers": 12,
|
26 |
+
"eos_token_id": 2,
|
27 |
+
"forced_eos_token_id": 2,
|
28 |
+
"gradient_checkpointing": false,
|
29 |
+
"id2label": {
|
30 |
+
"0": "LABEL_0",
|
31 |
+
"1": "LABEL_1",
|
32 |
+
"2": "LABEL_2"
|
33 |
+
},
|
34 |
+
"init_std": 0.02,
|
35 |
+
"is_decoder": true,
|
36 |
+
"is_encoder_decoder": false,
|
37 |
+
"label2id": {
|
38 |
+
"LABEL_0": 0,
|
39 |
+
"LABEL_1": 1,
|
40 |
+
"LABEL_2": 2
|
41 |
+
},
|
42 |
+
"max_position_embeddings": 1024,
|
43 |
+
"model_type": "bart",
|
44 |
+
"no_repeat_ngram_size": 3,
|
45 |
+
"normalize_before": false,
|
46 |
+
"num_beams": 4,
|
47 |
+
"num_hidden_layers": 12,
|
48 |
+
"pad_token_id": 1,
|
49 |
+
"quantization_config": {
|
50 |
+
"_load_in_4bit": true,
|
51 |
+
"_load_in_8bit": false,
|
52 |
+
"bnb_4bit_compute_dtype": "float32",
|
53 |
+
"bnb_4bit_quant_storage": "uint8",
|
54 |
+
"bnb_4bit_quant_type": "fp4",
|
55 |
+
"bnb_4bit_use_double_quant": false,
|
56 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
57 |
+
"llm_int8_has_fp16_weight": false,
|
58 |
+
"llm_int8_skip_modules": null,
|
59 |
+
"llm_int8_threshold": 6.0,
|
60 |
+
"load_in_4bit": true,
|
61 |
+
"load_in_8bit": false,
|
62 |
+
"quant_method": "bitsandbytes"
|
63 |
+
},
|
64 |
+
"scale_embedding": false,
|
65 |
+
"task_specific_params": {
|
66 |
+
"summarization": {
|
67 |
+
"length_penalty": 1.0,
|
68 |
+
"max_length": 128,
|
69 |
+
"min_length": 12,
|
70 |
+
"num_beams": 4
|
71 |
+
},
|
72 |
+
"summarization_cnn": {
|
73 |
+
"length_penalty": 2.0,
|
74 |
+
"max_length": 142,
|
75 |
+
"min_length": 56,
|
76 |
+
"num_beams": 4
|
77 |
+
},
|
78 |
+
"summarization_xsum": {
|
79 |
+
"length_penalty": 1.0,
|
80 |
+
"max_length": 62,
|
81 |
+
"min_length": 11,
|
82 |
+
"num_beams": 6
|
83 |
+
}
|
84 |
+
},
|
85 |
+
"torch_dtype": "float16",
|
86 |
+
"transformers_version": "4.40.2",
|
87 |
+
"use_cache": true,
|
88 |
+
"vocab_size": 85401
|
89 |
+
}
|