Text Classification
Transformers
PyTorch
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use liambyrne/distilbert-stackoverflow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liambyrne/distilbert-stackoverflow with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="liambyrne/distilbert-stackoverflow")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("liambyrne/distilbert-stackoverflow") model = AutoModelForSequenceClassification.from_pretrained("liambyrne/distilbert-stackoverflow", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
CHANGED
|
@@ -17,7 +17,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
- Accuracy: 0.8070
|
| 22 |
|
| 23 |
## Model description
|
|
@@ -43,19 +43,18 @@ The following hyperparameters were used during training:
|
|
| 43 |
- seed: 42
|
| 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 | Accuracy |
|
| 51 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.3816 | 2.0 | 6250 | 0.5049 | 0.8070 |
|
| 54 |
|
| 55 |
|
| 56 |
### Framework versions
|
| 57 |
|
| 58 |
- Transformers 4.32.0
|
| 59 |
-
- Pytorch 2.1.0+
|
| 60 |
- Datasets 2.15.0
|
| 61 |
- Tokenizers 0.13.3
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.1701
|
| 21 |
- Accuracy: 0.8070
|
| 22 |
|
| 23 |
## Model description
|
|
|
|
| 43 |
- seed: 42
|
| 44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 1
|
| 47 |
|
| 48 |
### Training results
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 51 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 52 |
+
| 0.1452 | 1.0 | 6250 | 0.1701 | 0.8070 |
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
### Framework versions
|
| 56 |
|
| 57 |
- Transformers 4.32.0
|
| 58 |
+
- Pytorch 2.1.0+cu121
|
| 59 |
- Datasets 2.15.0
|
| 60 |
- Tokenizers 0.13.3
|