Instructions to use ZON8955/classification_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZON8955/classification_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ZON8955/classification_1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ZON8955/classification_1") model = AutoModelForSequenceClassification.from_pretrained("ZON8955/classification_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files- config.json +11 -8
- model.safetensors +2 -2
- tokenizer.json +2 -2
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"classifier_dropout": null,
|
|
@@ -9,16 +9,20 @@
|
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
|
|
|
|
|
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
| 18 |
"label2id": {
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
|
|
|
|
|
|
| 22 |
},
|
| 23 |
"layer_norm_eps": 1e-12,
|
| 24 |
"max_position_embeddings": 512,
|
|
@@ -32,7 +36,6 @@
|
|
| 32 |
"pooler_size_per_head": 128,
|
| 33 |
"pooler_type": "first_token_transform",
|
| 34 |
"position_embedding_type": "absolute",
|
| 35 |
-
"problem_type": "single_label_classification",
|
| 36 |
"torch_dtype": "float32",
|
| 37 |
"transformers_version": "4.51.3",
|
| 38 |
"type_vocab_size": 2,
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"BertForTokenClassification"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"classifier_dropout": null,
|
|
|
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "B-CLASS",
|
| 13 |
+
"1": "B-SUP",
|
| 14 |
+
"2": "I-CLASS",
|
| 15 |
+
"3": "I-SUP",
|
| 16 |
+
"4": "O"
|
| 17 |
},
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"intermediate_size": 3072,
|
| 20 |
"label2id": {
|
| 21 |
+
"B-CLASS": 0,
|
| 22 |
+
"B-SUP": 1,
|
| 23 |
+
"I-CLASS": 2,
|
| 24 |
+
"I-SUP": 3,
|
| 25 |
+
"O": 4
|
| 26 |
},
|
| 27 |
"layer_norm_eps": 1e-12,
|
| 28 |
"max_position_embeddings": 512,
|
|
|
|
| 36 |
"pooler_size_per_head": 128,
|
| 37 |
"pooler_type": "first_token_transform",
|
| 38 |
"position_embedding_type": "absolute",
|
|
|
|
| 39 |
"torch_dtype": "float32",
|
| 40 |
"transformers_version": "4.51.3",
|
| 41 |
"type_vocab_size": 2,
|
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:b33885fcb154ca92da667a528fc83c524ce2ebf6953f1674fe4b3959a339e1a7
|
| 3 |
+
size 406746908
|
tokenizer.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
-
"max_length":
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
"padding": {
|
| 10 |
"strategy": {
|
| 11 |
-
"Fixed":
|
| 12 |
},
|
| 13 |
"direction": "Right",
|
| 14 |
"pad_to_multiple_of": null,
|
|
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
+
"max_length": 128,
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
"padding": {
|
| 10 |
"strategy": {
|
| 11 |
+
"Fixed": 128
|
| 12 |
},
|
| 13 |
"direction": "Right",
|
| 14 |
"pad_to_multiple_of": null,
|
training_args.bin
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:b463feb685aa5c09747f3a5609c4f10b366dd1cb43bc0652dce4f0a205cc6d75
|
| 3 |
+
size 5240
|