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 +10 -10
- config.json +12 -4
- model.safetensors +2 -2
- runs/Feb12_06-38-03_5754239aeac9/events.out.tfevents.1739342285.5754239aeac9.303.4 +3 -0
- training_args.bin +1 -1
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.0691
|
| 25 |
+
- Precision: 0.9524
|
| 26 |
+
- Recall: 0.9846
|
| 27 |
+
- F1: 0.9682
|
| 28 |
+
- Accuracy: 0.9818
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
|
|
| 56 |
|
| 57 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 58 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 59 |
+
| 0.0542 | 1.0 | 141 | 0.0766 | 0.9508 | 0.9815 | 0.9659 | 0.9807 |
|
| 60 |
+
| 0.0776 | 2.0 | 282 | 0.0550 | 0.9595 | 0.9846 | 0.9719 | 0.9853 |
|
| 61 |
+
| 0.063 | 3.0 | 423 | 0.0837 | 0.9481 | 0.9831 | 0.9653 | 0.9795 |
|
| 62 |
+
| 0.0378 | 4.0 | 564 | 0.0890 | 0.9467 | 0.9846 | 0.9653 | 0.9795 |
|
| 63 |
+
| 0.0588 | 5.0 | 705 | 0.0691 | 0.9524 | 0.9846 | 0.9682 | 0.9818 |
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|
config.json
CHANGED
|
@@ -17,8 +17,12 @@
|
|
| 17 |
"5": "B-QUOTE_TOKEN",
|
| 18 |
"6": "B-STOPLOSS",
|
| 19 |
"7": "B-TARGET_SELL_PRICE",
|
| 20 |
-
"8": "I-
|
| 21 |
-
"9": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
},
|
| 23 |
"initializer_range": 0.02,
|
| 24 |
"label2id": {
|
|
@@ -30,8 +34,12 @@
|
|
| 30 |
"B-QUOTE_TOKEN": 5,
|
| 31 |
"B-STOPLOSS": 6,
|
| 32 |
"B-TARGET_SELL_PRICE": 7,
|
| 33 |
-
"I-
|
| 34 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
},
|
| 36 |
"max_position_embeddings": 512,
|
| 37 |
"model_type": "distilbert",
|
|
|
|
| 17 |
"5": "B-QUOTE_TOKEN",
|
| 18 |
"6": "B-STOPLOSS",
|
| 19 |
"7": "B-TARGET_SELL_PRICE",
|
| 20 |
+
"8": "I-ACTION",
|
| 21 |
+
"9": "I-BASE_TOKEN",
|
| 22 |
+
"10": "I-ENTRY_PRICE",
|
| 23 |
+
"11": "I-LEVERAGE",
|
| 24 |
+
"12": "I-TARGET_SELL_PRICE",
|
| 25 |
+
"13": "O"
|
| 26 |
},
|
| 27 |
"initializer_range": 0.02,
|
| 28 |
"label2id": {
|
|
|
|
| 34 |
"B-QUOTE_TOKEN": 5,
|
| 35 |
"B-STOPLOSS": 6,
|
| 36 |
"B-TARGET_SELL_PRICE": 7,
|
| 37 |
+
"I-ACTION": 8,
|
| 38 |
+
"I-BASE_TOKEN": 9,
|
| 39 |
+
"I-ENTRY_PRICE": 10,
|
| 40 |
+
"I-LEVERAGE": 11,
|
| 41 |
+
"I-TARGET_SELL_PRICE": 12,
|
| 42 |
+
"O": 13
|
| 43 |
},
|
| 44 |
"max_position_embeddings": 512,
|
| 45 |
"model_type": "distilbert",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4340fc2106c7e6ea005e1abb7aa3a8acb8a463ee69adb0ede9d6a59a8b7bb9a9
|
| 3 |
+
size 265506928
|
runs/Feb12_06-38-03_5754239aeac9/events.out.tfevents.1739342285.5754239aeac9.303.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4723a2a7a9f40a18c595edf9c397d046e896269af95d95ff1a07f37e185756d0
|
| 3 |
+
size 23127
|
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:fc23b2f6500e05987d0d9a69156e7a0e41eb81b30ef872901450636f55d94153
|
| 3 |
size 5368
|