Chris Alexiuk
commited on
Commit
·
ab999b5
1
Parent(s):
4cbb865
Upload TFDistilBertForSequenceClassification
Browse files- README.md +49 -0
- config.json +67 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: distilbert-base-uncased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_keras_callback
|
| 6 |
+
model-index:
|
| 7 |
+
- name: Transformers-Workshop-BERT-NewsGroupClassification
|
| 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 |
+
# Transformers-Workshop-BERT-NewsGroupClassification
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) 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': None, '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': 2e-05, 'decay_steps': 1908, '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.34.1
|
| 47 |
+
- TensorFlow 2.14.0
|
| 48 |
+
- Datasets 2.14.6
|
| 49 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "distilbert-base-uncased",
|
| 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": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1",
|
| 14 |
+
"2": "LABEL_2",
|
| 15 |
+
"3": "LABEL_3",
|
| 16 |
+
"4": "LABEL_4",
|
| 17 |
+
"5": "LABEL_5",
|
| 18 |
+
"6": "LABEL_6",
|
| 19 |
+
"7": "LABEL_7",
|
| 20 |
+
"8": "LABEL_8",
|
| 21 |
+
"9": "LABEL_9",
|
| 22 |
+
"10": "LABEL_10",
|
| 23 |
+
"11": "LABEL_11",
|
| 24 |
+
"12": "LABEL_12",
|
| 25 |
+
"13": "LABEL_13",
|
| 26 |
+
"14": "LABEL_14",
|
| 27 |
+
"15": "LABEL_15",
|
| 28 |
+
"16": "LABEL_16",
|
| 29 |
+
"17": "LABEL_17",
|
| 30 |
+
"18": "LABEL_18",
|
| 31 |
+
"19": "LABEL_19"
|
| 32 |
+
},
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"label2id": {
|
| 35 |
+
"LABEL_0": 0,
|
| 36 |
+
"LABEL_1": 1,
|
| 37 |
+
"LABEL_10": 10,
|
| 38 |
+
"LABEL_11": 11,
|
| 39 |
+
"LABEL_12": 12,
|
| 40 |
+
"LABEL_13": 13,
|
| 41 |
+
"LABEL_14": 14,
|
| 42 |
+
"LABEL_15": 15,
|
| 43 |
+
"LABEL_16": 16,
|
| 44 |
+
"LABEL_17": 17,
|
| 45 |
+
"LABEL_18": 18,
|
| 46 |
+
"LABEL_19": 19,
|
| 47 |
+
"LABEL_2": 2,
|
| 48 |
+
"LABEL_3": 3,
|
| 49 |
+
"LABEL_4": 4,
|
| 50 |
+
"LABEL_5": 5,
|
| 51 |
+
"LABEL_6": 6,
|
| 52 |
+
"LABEL_7": 7,
|
| 53 |
+
"LABEL_8": 8,
|
| 54 |
+
"LABEL_9": 9
|
| 55 |
+
},
|
| 56 |
+
"max_position_embeddings": 512,
|
| 57 |
+
"model_type": "distilbert",
|
| 58 |
+
"n_heads": 12,
|
| 59 |
+
"n_layers": 6,
|
| 60 |
+
"pad_token_id": 0,
|
| 61 |
+
"qa_dropout": 0.1,
|
| 62 |
+
"seq_classif_dropout": 0.2,
|
| 63 |
+
"sinusoidal_pos_embds": false,
|
| 64 |
+
"tie_weights_": true,
|
| 65 |
+
"transformers_version": "4.34.1",
|
| 66 |
+
"vocab_size": 30522
|
| 67 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7acb2e8fe4055a9bfb70f835c244009eda979f36e50c5b45f1ccbe58f8ef630f
|
| 3 |
+
size 268007104
|