ninaa510 commited on
Commit
b4fd959
1 Parent(s): e3afa72

Upload TFDistilBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +49 -0
  2. config.json +48 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert/distilbert-base-cased
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: distilbert-finetuned-medical-diagnosis
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # distilbert-finetuned-medical-diagnosis
15
+
16
+ This model is a fine-tuned version of [distilbert/distilbert-base-cased](https://huggingface.co/distilbert/distilbert-base-cased) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': 1.0, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-05, 'decay_steps': 1663, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
38
+ - training_precision: float32
39
+
40
+ ### Training results
41
+
42
+
43
+
44
+ ### Framework versions
45
+
46
+ - Transformers 4.41.0
47
+ - TensorFlow 2.15.0
48
+ - Datasets 2.19.1
49
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert/distilbert-base-cased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "Allergic sinusitis",
13
+ "1": "Anaphylaxis",
14
+ "2": "Chagas",
15
+ "3": "HIV (initial infection)",
16
+ "4": "Influenza",
17
+ "5": "Localized edema",
18
+ "6": "SLE",
19
+ "7": "Sarcoidosis",
20
+ "8": "Tuberculosis",
21
+ "9": "Whooping cough"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "label2id": {
25
+ "Allergic sinusitis": 0,
26
+ "Anaphylaxis": 1,
27
+ "Chagas": 2,
28
+ "HIV (initial infection)": 3,
29
+ "Influenza": 4,
30
+ "Localized edema": 5,
31
+ "SLE": 6,
32
+ "Sarcoidosis": 7,
33
+ "Tuberculosis": 8,
34
+ "Whooping cough": 9
35
+ },
36
+ "max_position_embeddings": 512,
37
+ "model_type": "distilbert",
38
+ "n_heads": 12,
39
+ "n_layers": 6,
40
+ "output_past": true,
41
+ "pad_token_id": 0,
42
+ "qa_dropout": 0.1,
43
+ "seq_classif_dropout": 0.2,
44
+ "sinusoidal_pos_embds": false,
45
+ "tie_weights_": true,
46
+ "transformers_version": "4.41.0",
47
+ "vocab_size": 28996
48
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3916066e555520115f17ecbe85e5381c2e0678826a71ffcb3dc596f79858c661
3
+ size 263291848