Instructions to use hts98/hos_sentiment_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hts98/hos_sentiment_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hts98/hos_sentiment_bert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hts98/hos_sentiment_bert") model = AutoModelForSequenceClassification.from_pretrained("hts98/hos_sentiment_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +100 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google-bert/bert-base-uncased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- f1
|
| 9 |
+
model-index:
|
| 10 |
+
- name: hos_sentiment_bert
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# hos_sentiment_bert
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.6954
|
| 22 |
+
- F1: 0.9290
|
| 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 |
+
- learning_rate: 3e-05
|
| 42 |
+
- train_batch_size: 64
|
| 43 |
+
- eval_batch_size: 64
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 40.0
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|
|
| 53 |
+
| No log | 1.0 | 331 | 0.2183 | 0.9258 |
|
| 54 |
+
| 0.239 | 2.0 | 662 | 0.2168 | 0.9326 |
|
| 55 |
+
| 0.239 | 3.0 | 993 | 0.2527 | 0.9282 |
|
| 56 |
+
| 0.1255 | 4.0 | 1324 | 0.2896 | 0.9288 |
|
| 57 |
+
| 0.0662 | 5.0 | 1655 | 0.3389 | 0.9266 |
|
| 58 |
+
| 0.0662 | 6.0 | 1986 | 0.3793 | 0.9294 |
|
| 59 |
+
| 0.0453 | 7.0 | 2317 | 0.4110 | 0.9252 |
|
| 60 |
+
| 0.0257 | 8.0 | 2648 | 0.4656 | 0.9205 |
|
| 61 |
+
| 0.0257 | 9.0 | 2979 | 0.4953 | 0.9263 |
|
| 62 |
+
| 0.0196 | 10.0 | 3310 | 0.5412 | 0.9265 |
|
| 63 |
+
| 0.0125 | 11.0 | 3641 | 0.5528 | 0.9245 |
|
| 64 |
+
| 0.0125 | 12.0 | 3972 | 0.5527 | 0.9262 |
|
| 65 |
+
| 0.0141 | 13.0 | 4303 | 0.5683 | 0.9276 |
|
| 66 |
+
| 0.0097 | 14.0 | 4634 | 0.5835 | 0.9239 |
|
| 67 |
+
| 0.0097 | 15.0 | 4965 | 0.5905 | 0.9280 |
|
| 68 |
+
| 0.0107 | 16.0 | 5296 | 0.5799 | 0.9298 |
|
| 69 |
+
| 0.009 | 17.0 | 5627 | 0.6127 | 0.9266 |
|
| 70 |
+
| 0.009 | 18.0 | 5958 | 0.5911 | 0.9284 |
|
| 71 |
+
| 0.0084 | 19.0 | 6289 | 0.5900 | 0.9303 |
|
| 72 |
+
| 0.008 | 20.0 | 6620 | 0.5923 | 0.9283 |
|
| 73 |
+
| 0.008 | 21.0 | 6951 | 0.6186 | 0.9305 |
|
| 74 |
+
| 0.0068 | 22.0 | 7282 | 0.6076 | 0.9292 |
|
| 75 |
+
| 0.0064 | 23.0 | 7613 | 0.5782 | 0.9303 |
|
| 76 |
+
| 0.0064 | 24.0 | 7944 | 0.6077 | 0.9320 |
|
| 77 |
+
| 0.0048 | 25.0 | 8275 | 0.6446 | 0.9282 |
|
| 78 |
+
| 0.0046 | 26.0 | 8606 | 0.6417 | 0.9315 |
|
| 79 |
+
| 0.0046 | 27.0 | 8937 | 0.6656 | 0.9283 |
|
| 80 |
+
| 0.0053 | 28.0 | 9268 | 0.6541 | 0.9288 |
|
| 81 |
+
| 0.0043 | 29.0 | 9599 | 0.6703 | 0.9277 |
|
| 82 |
+
| 0.0043 | 30.0 | 9930 | 0.6871 | 0.9252 |
|
| 83 |
+
| 0.0041 | 31.0 | 10261 | 0.6735 | 0.9286 |
|
| 84 |
+
| 0.0034 | 32.0 | 10592 | 0.6651 | 0.9306 |
|
| 85 |
+
| 0.0034 | 33.0 | 10923 | 0.6799 | 0.9305 |
|
| 86 |
+
| 0.0032 | 34.0 | 11254 | 0.6753 | 0.9297 |
|
| 87 |
+
| 0.0031 | 35.0 | 11585 | 0.6855 | 0.9310 |
|
| 88 |
+
| 0.0031 | 36.0 | 11916 | 0.6885 | 0.9306 |
|
| 89 |
+
| 0.003 | 37.0 | 12247 | 0.6960 | 0.9293 |
|
| 90 |
+
| 0.0026 | 38.0 | 12578 | 0.6950 | 0.9292 |
|
| 91 |
+
| 0.0026 | 39.0 | 12909 | 0.6964 | 0.9297 |
|
| 92 |
+
| 0.0033 | 40.0 | 13240 | 0.6954 | 0.9290 |
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
### Framework versions
|
| 96 |
+
|
| 97 |
+
- Transformers 4.48.0.dev0
|
| 98 |
+
- Pytorch 2.1.0+cu121
|
| 99 |
+
- Datasets 3.1.0
|
| 100 |
+
- Tokenizers 0.21.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437961724
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57fb4f8542b0c526d66c89a1a050d31ef131504942b76beb250c612512879b88
|
| 3 |
size 437961724
|