Text Classification
Transformers
PyTorch
Serbian
gpt2
serbian
sentiment-analysis
wordnet
sentiwordnet
lexicon-induction
Instructions to use Tanor/SRGPTSENTNEG0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tanor/SRGPTSENTNEG0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tanor/SRGPTSENTNEG0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tanor/SRGPTSENTNEG0") model = AutoModelForSequenceClassification.from_pretrained("Tanor/SRGPTSENTNEG0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
tags:
|
| 3 |
- generated_from_trainer
|
| 4 |
metrics:
|
|
@@ -15,8 +16,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [Tanor/SRGPTSENTNEG0](https://huggingface.co/Tanor/SRGPTSENTNEG0) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss: 0.
|
| 19 |
-
- F1: 0.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -43,22 +44,21 @@ The following hyperparameters were used during training:
|
|
| 43 |
- total_train_batch_size: 4
|
| 44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
-
- num_epochs:
|
| 47 |
|
| 48 |
### Training results
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 51 |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.002 | 5.0 | 14868 | 0.1910 | 0.2927 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
| 61 |
-
- Transformers 4.
|
| 62 |
-
- Pytorch 2.0.
|
| 63 |
-
- Datasets 2.
|
| 64 |
- Tokenizers 0.13.3
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: Tanor/SRGPTSENTNEG0
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
metrics:
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [Tanor/SRGPTSENTNEG0](https://huggingface.co/Tanor/SRGPTSENTNEG0) on the None dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.1405
|
| 20 |
+
- F1: 0.4615
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 44 |
- total_train_batch_size: 4
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 32
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
|
| 53 |
+
| 0.0849 | 1.0 | 2666 | 0.0868 | 0.0 |
|
| 54 |
+
| 0.0581 | 2.0 | 5332 | 0.0976 | 0.3077 |
|
| 55 |
+
| 0.0437 | 3.0 | 7998 | 0.1228 | 0.3529 |
|
| 56 |
+
| 0.0119 | 4.0 | 10665 | 0.1405 | 0.4615 |
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
| 61 |
+
- Transformers 4.31.0
|
| 62 |
+
- Pytorch 2.1.0.dev20230801
|
| 63 |
+
- Datasets 2.14.2
|
| 64 |
- Tokenizers 0.13.3
|