Instructions to use dandankim/distilbert-token-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dandankim/distilbert-token-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="dandankim/distilbert-token-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("dandankim/distilbert-token-classifier") model = AutoModelForTokenClassification.from_pretrained("dandankim/distilbert-token-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
dandankim/token_classifier2
Browse files
README.md
CHANGED
|
@@ -21,11 +21,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 21 |
|
| 22 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 23 |
It achieves the following results on the evaluation set:
|
| 24 |
-
- Loss: 0.
|
| 25 |
-
- Precision: 0.
|
| 26 |
-
- Recall: 0.
|
| 27 |
-
- F1: 0.
|
| 28 |
-
- Accuracy: 0.
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
@@ -56,11 +56,11 @@ The following hyperparameters were used during training:
|
|
| 56 |
|
| 57 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 58 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|
|
|
|
| 21 |
|
| 22 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 23 |
It achieves the following results on the evaluation set:
|
| 24 |
+
- Loss: 0.1176
|
| 25 |
+
- Precision: 0.9506
|
| 26 |
+
- Recall: 0.9667
|
| 27 |
+
- F1: 0.9586
|
| 28 |
+
- Accuracy: 0.9643
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
|
|
| 56 |
|
| 57 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 58 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 59 |
+
| 0.1206 | 1.0 | 141 | 0.1424 | 0.9569 | 0.9473 | 0.9521 | 0.9582 |
|
| 60 |
+
| 0.1188 | 2.0 | 282 | 0.1482 | 0.9206 | 0.9536 | 0.9368 | 0.9434 |
|
| 61 |
+
| 0.1165 | 3.0 | 423 | 0.1362 | 0.9278 | 0.9557 | 0.9416 | 0.9456 |
|
| 62 |
+
| 0.0767 | 4.0 | 564 | 0.1490 | 0.9322 | 0.9562 | 0.9441 | 0.9487 |
|
| 63 |
+
| 0.1163 | 5.0 | 705 | 0.1407 | 0.9343 | 0.9594 | 0.9467 | 0.9503 |
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 265506928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c41c9256aa8ac33147b293ecbf179db2a1d4856f503052bea3364a050911f4f
|
| 3 |
size 265506928
|
runs/Feb12_07-25-04_5754239aeac9/events.out.tfevents.1739345106.5754239aeac9.303.5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3051907c0860ede269330237e7e1a43843eedd0045186d29f035d18e82c20e16
|
| 3 |
+
size 23127
|
runs/Feb12_07-25-04_5754239aeac9/events.out.tfevents.1739345275.5754239aeac9.303.6
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b328c677ffe623acd46e5a421c772df7bbd02a9063ecb47afdad42da1091fec4
|
| 3 |
+
size 560
|
tokenizer.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
-
"max_length":
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
|
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
+
"max_length": 512,
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86238d6d93f770547d35d171ec072c86b217243d219e84c87e5a9d29ef62a74c
|
| 3 |
size 5368
|