Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use masterkristall/bert_distillation_tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use masterkristall/bert_distillation_tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="masterkristall/bert_distillation_tiny")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("masterkristall/bert_distillation_tiny") model = AutoModelForSequenceClassification.from_pretrained("masterkristall/bert_distillation_tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
ddac493
1
Parent(s): 2ec8f96
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/bert_uncased_L-2_H-128_A-2
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- glue
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: bert_distillation_tiny
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Text Classification
|
| 15 |
+
type: text-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: glue
|
| 18 |
+
type: glue
|
| 19 |
+
config: sst2
|
| 20 |
+
split: validation
|
| 21 |
+
args: sst2
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.8256880733944955
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 29 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 30 |
+
|
| 31 |
+
# bert_distillation_tiny
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [google/bert_uncased_L-2_H-128_A-2](https://huggingface.co/google/bert_uncased_L-2_H-128_A-2) on the glue dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.4274
|
| 36 |
+
- Accuracy: 0.8257
|
| 37 |
+
|
| 38 |
+
## Model description
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Intended uses & limitations
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Training and evaluation data
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training procedure
|
| 51 |
+
|
| 52 |
+
### Training hyperparameters
|
| 53 |
+
|
| 54 |
+
The following hyperparameters were used during training:
|
| 55 |
+
- learning_rate: 0.0001
|
| 56 |
+
- train_batch_size: 128
|
| 57 |
+
- eval_batch_size: 128
|
| 58 |
+
- seed: 2023
|
| 59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 60 |
+
- lr_scheduler_type: linear
|
| 61 |
+
- num_epochs: 7
|
| 62 |
+
- mixed_precision_training: Native AMP
|
| 63 |
+
|
| 64 |
+
### Training results
|
| 65 |
+
|
| 66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 67 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 68 |
+
| 0.4139 | 1.0 | 527 | 0.4204 | 0.8096 |
|
| 69 |
+
| 0.27 | 2.0 | 1054 | 0.4274 | 0.8257 |
|
| 70 |
+
| 0.2226 | 3.0 | 1581 | 0.4899 | 0.8245 |
|
| 71 |
+
| 0.1931 | 4.0 | 2108 | 0.4961 | 0.8222 |
|
| 72 |
+
| 0.1732 | 5.0 | 2635 | 0.5302 | 0.8222 |
|
| 73 |
+
| 0.1608 | 6.0 | 3162 | 0.5393 | 0.8234 |
|
| 74 |
+
| 0.152 | 7.0 | 3689 | 0.5562 | 0.8177 |
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
### Framework versions
|
| 78 |
+
|
| 79 |
+
- Transformers 4.35.2
|
| 80 |
+
- Pytorch 2.1.0+cu118
|
| 81 |
+
- Datasets 2.15.0
|
| 82 |
+
- Tokenizers 0.15.0
|
logs/events.out.tfevents.1701202155.62074d9d7b32.1179.2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df9c9b46c69683a811d38e794a77d7fc663918dae45fbc722e99abbc4cb0171a
|
| 3 |
+
size 8293
|
logs/events.out.tfevents.1701202309.62074d9d7b32.1179.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba9cd566330f887b3641109bd350d15690a288c97e4ab6a179a4dede8591228f
|
| 3 |
+
size 411
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 17549312
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f70a67ab6f860f8defe5288078c5bcd2a4cd2333f2498bc2932ade209285da5a
|
| 3 |
size 17549312
|