Instructions to use veriga/tf_disilbert_binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use veriga/tf_disilbert_binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="veriga/tf_disilbert_binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("veriga/tf_disilbert_binary") model = AutoModelForSequenceClassification.from_pretrained("veriga/tf_disilbert_binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload TFBertForSequenceClassification
Browse files- README.md +65 -0
- config.json +27 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: veriga/tf_disilbert
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_keras_callback
|
| 6 |
+
model-index:
|
| 7 |
+
- name: tf_disilbert_binary
|
| 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 |
+
# tf_disilbert_binary
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [veriga/tf_disilbert](https://huggingface.co/veriga/tf_disilbert) on an unknown dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
- Train Loss: 0.6953
|
| 19 |
+
- Train Sparse Categorical Accuracy: 0.5176
|
| 20 |
+
- Validation Loss: 0.6956
|
| 21 |
+
- Validation Sparse Categorical Accuracy: 0.4505
|
| 22 |
+
- Epoch: 9
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- optimizer: {'name': 'Adam', 'learning_rate': 5e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
| 42 |
+
- training_precision: float32
|
| 43 |
+
|
| 44 |
+
### Training results
|
| 45 |
+
|
| 46 |
+
| Train Loss | Train Sparse Categorical Accuracy | Validation Loss | Validation Sparse Categorical Accuracy | Epoch |
|
| 47 |
+
|:----------:|:---------------------------------:|:---------------:|:--------------------------------------:|:-----:|
|
| 48 |
+
| 0.6983 | 0.5221 | 0.6895 | 0.5495 | 0 |
|
| 49 |
+
| 0.6958 | 0.5288 | 0.6887 | 0.5486 | 1 |
|
| 50 |
+
| 0.6976 | 0.5244 | 0.6893 | 0.5486 | 2 |
|
| 51 |
+
| 0.6962 | 0.5252 | 0.6894 | 0.5503 | 3 |
|
| 52 |
+
| 0.6969 | 0.5180 | 0.6880 | 0.5512 | 4 |
|
| 53 |
+
| 0.6972 | 0.5207 | 0.6899 | 0.5486 | 5 |
|
| 54 |
+
| 0.6982 | 0.5214 | 0.6879 | 0.5512 | 6 |
|
| 55 |
+
| 0.6954 | 0.5299 | 0.6889 | 0.5486 | 7 |
|
| 56 |
+
| 0.6964 | 0.5276 | 0.6898 | 0.5477 | 8 |
|
| 57 |
+
| 0.6953 | 0.5176 | 0.6956 | 0.4505 | 9 |
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Framework versions
|
| 61 |
+
|
| 62 |
+
- Transformers 4.36.2
|
| 63 |
+
- TensorFlow 2.8.2
|
| 64 |
+
- Datasets 2.2.2
|
| 65 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "veriga/tf_disilbert",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"max_position_embeddings": 1024,
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
| 21 |
+
"problem_type": "multi_label_classification",
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.36.2",
|
| 24 |
+
"type_vocab_size": 2,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 33300
|
| 27 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:904e2f9b27deece2126114e37f2dbb44f66ababaf73f923df48576dea3ba1043
|
| 3 |
+
size 448330072
|