Text Classification
Transformers
TensorBoard
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use travis-simon/ModernBERT-regulation-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use travis-simon/ModernBERT-regulation-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="travis-simon/ModernBERT-regulation-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("travis-simon/ModernBERT-regulation-classifier") model = AutoModelForSequenceClassification.from_pretrained("travis-simon/ModernBERT-regulation-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +12 -12
- model.safetensors +1 -1
- runs/Feb26_07-38-05_1439f1df9b0c/events.out.tfevents.1740555493.1439f1df9b0c.447.0 +3 -0
- tokenizer.json +16 -2
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -18,8 +18,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 0.
|
| 22 |
-
- F1: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -50,16 +50,16 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 53 |
-
| No log | 1.0 |
|
| 54 |
-
| No log | 2.0 |
|
| 55 |
-
| No log | 3.0 |
|
| 56 |
-
| No log | 4.0 |
|
| 57 |
-
| No log | 5.0 |
|
| 58 |
-
| No log | 6.0 |
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
| 0.
|
| 63 |
|
| 64 |
|
| 65 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.3537
|
| 22 |
+
- F1: 0.9000
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 53 |
+
| No log | 1.0 | 15 | 0.5482 | 0.7467 |
|
| 54 |
+
| No log | 2.0 | 30 | 0.4953 | 0.7600 |
|
| 55 |
+
| No log | 3.0 | 45 | 0.7658 | 0.7068 |
|
| 56 |
+
| No log | 4.0 | 60 | 0.2946 | 0.8628 |
|
| 57 |
+
| No log | 5.0 | 75 | 0.3272 | 0.8878 |
|
| 58 |
+
| No log | 6.0 | 90 | 0.6832 | 0.8348 |
|
| 59 |
+
| 0.2242 | 7.0 | 105 | 0.4030 | 0.8740 |
|
| 60 |
+
| 0.2242 | 8.0 | 120 | 0.3450 | 0.8997 |
|
| 61 |
+
| 0.2242 | 9.0 | 135 | 0.3476 | 0.9126 |
|
| 62 |
+
| 0.2242 | 10.0 | 150 | 0.3537 | 0.9000 |
|
| 63 |
|
| 64 |
|
| 65 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 598439784
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e7048e1483b0fc90269afb947fcb1bc86c85c238a64a9a7357df6d900b77627
|
| 3 |
size 598439784
|
runs/Feb26_07-38-05_1439f1df9b0c/events.out.tfevents.1740555493.1439f1df9b0c.447.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76899815ed9cb634056bc3b3aa904f0058a23c9cee078520f4c2271e60c126aa
|
| 3 |
+
size 9531
|
tokenizer.json
CHANGED
|
@@ -1,7 +1,21 @@
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
-
"truncation":
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"added_tokens": [
|
| 6 |
{
|
| 7 |
"id": 0,
|
|
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
+
"truncation": {
|
| 4 |
+
"direction": "Right",
|
| 5 |
+
"max_length": 1024,
|
| 6 |
+
"strategy": "LongestFirst",
|
| 7 |
+
"stride": 0
|
| 8 |
+
},
|
| 9 |
+
"padding": {
|
| 10 |
+
"strategy": {
|
| 11 |
+
"Fixed": 1024
|
| 12 |
+
},
|
| 13 |
+
"direction": "Right",
|
| 14 |
+
"pad_to_multiple_of": null,
|
| 15 |
+
"pad_id": 50283,
|
| 16 |
+
"pad_type_id": 0,
|
| 17 |
+
"pad_token": "[PAD]"
|
| 18 |
+
},
|
| 19 |
"added_tokens": [
|
| 20 |
{
|
| 21 |
"id": 0,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:644b890d805bb15322d99222e55de6b1bf2ff6e72809a2db256fa0600ad02511
|
| 3 |
size 5432
|