MSey commited on
Commit
067433d
·
verified ·
1 Parent(s): fd680b3

Upload BertForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +45 -23
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,29 +1,51 @@
1
  {
2
- "_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
3
  "architectures": [
4
- "LlamaForCausalLM"
5
  ],
6
- "attention_bias": false,
7
- "attention_dropout": 0.0,
8
- "bos_token_id": 1,
9
- "eos_token_id": 2,
10
- "hidden_act": "silu",
11
- "hidden_size": 2048,
 
 
 
 
 
 
 
 
 
 
 
 
12
  "initializer_range": 0.02,
13
- "intermediate_size": 5632,
14
- "max_position_embeddings": 2048,
15
- "mlp_bias": false,
16
- "model_type": "llama",
17
- "num_attention_heads": 32,
18
- "num_hidden_layers": 22,
19
- "num_key_value_heads": 4,
20
- "pretraining_tp": 1,
21
- "rms_norm_eps": 1e-05,
22
- "rope_scaling": null,
23
- "rope_theta": 10000.0,
24
- "tie_word_embeddings": false,
25
- "torch_dtype": "bfloat16",
26
- "transformers_version": "4.44.0.dev0",
 
 
 
 
 
 
 
 
 
 
27
  "use_cache": true,
28
- "vocab_size": 32001
29
  }
 
1
  {
2
+ "_name_or_path": "deepset/gbert-base",
3
  "architectures": [
4
+ "BertForTokenClassification"
5
  ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-DIAGNOSIS",
14
+ "2": "I-DIAGNOSIS",
15
+ "3": "B-DIAGNOSTIC",
16
+ "4": "I-DIAGNOSTIC",
17
+ "5": "B-DRUG",
18
+ "6": "I-DRUG",
19
+ "7": "B-MEDICAL_FINDING",
20
+ "8": "I-MEDICAL_FINDING",
21
+ "9": "B-THERAPY",
22
+ "10": "I-THERAPY"
23
+ },
24
  "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "B-DIAGNOSIS": 1,
28
+ "B-DIAGNOSTIC": 3,
29
+ "B-DRUG": 5,
30
+ "B-MEDICAL_FINDING": 7,
31
+ "B-THERAPY": 9,
32
+ "I-DIAGNOSIS": 2,
33
+ "I-DIAGNOSTIC": 4,
34
+ "I-DRUG": 6,
35
+ "I-MEDICAL_FINDING": 8,
36
+ "I-THERAPY": 10,
37
+ "O": 0
38
+ },
39
+ "layer_norm_eps": 1e-12,
40
+ "max_position_embeddings": 512,
41
+ "model_type": "bert",
42
+ "num_attention_heads": 12,
43
+ "num_hidden_layers": 12,
44
+ "pad_token_id": 0,
45
+ "position_embedding_type": "absolute",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.45.0.dev0",
48
+ "type_vocab_size": 2,
49
  "use_cache": true,
50
+ "vocab_size": 31102
51
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ed553ac8f4ae5fee31948312540dde949f60640e971a2e747dadd8964cde131e
3
- size 2200128056
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d61883b6eebc3e16c0840e852ae5e1462d1b6f93cefc2de8672cb4465e2e87c6
3
+ size 437405532