Instructions to use lekhnathrijal/bert-question-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lekhnathrijal/bert-question-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lekhnathrijal/bert-question-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lekhnathrijal/bert-question-classifier") model = AutoModelForSequenceClassification.from_pretrained("lekhnathrijal/bert-question-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 100
Browse files- config.json +0 -18
- model.safetensors +1 -1
- tokenizer.json +1 -10
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -5,24 +5,6 @@
|
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
| 8 |
-
"custom_pipelines": {
|
| 9 |
-
"question-classifier": {
|
| 10 |
-
"default": {
|
| 11 |
-
"model": {
|
| 12 |
-
"pt": [
|
| 13 |
-
"ai-research-lab/bert-question-classifier",
|
| 14 |
-
"main"
|
| 15 |
-
]
|
| 16 |
-
}
|
| 17 |
-
},
|
| 18 |
-
"impl": "classifier_pipeline.MultiTaskClassifierPipeline",
|
| 19 |
-
"pt": [
|
| 20 |
-
"AutoModelForSequenceClassification"
|
| 21 |
-
],
|
| 22 |
-
"tf": [],
|
| 23 |
-
"type": "text"
|
| 24 |
-
}
|
| 25 |
-
},
|
| 26 |
"gradient_checkpointing": false,
|
| 27 |
"hidden_act": "gelu",
|
| 28 |
"hidden_dropout_prob": 0.1,
|
|
|
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"gradient_checkpointing": false,
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
"hidden_dropout_prob": 0.1,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 438057080
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:230bf492f0cd451a04bcfc275df95ff183337c4ed43f507c0a7fd181a8c02fa8
|
| 3 |
size 438057080
|
tokenizer.json
CHANGED
|
@@ -6,16 +6,7 @@
|
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
-
"padding":
|
| 10 |
-
"strategy": {
|
| 11 |
-
"Fixed": 512
|
| 12 |
-
},
|
| 13 |
-
"direction": "Right",
|
| 14 |
-
"pad_to_multiple_of": null,
|
| 15 |
-
"pad_id": 0,
|
| 16 |
-
"pad_type_id": 0,
|
| 17 |
-
"pad_token": "[PAD]"
|
| 18 |
-
},
|
| 19 |
"added_tokens": [
|
| 20 |
{
|
| 21 |
"id": 0,
|
|
|
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
+
"padding": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"added_tokens": [
|
| 11 |
{
|
| 12 |
"id": 0,
|
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:39c9c6ff85036a0661c7b2d32908778e03b628ee26c263ae8fa4c0a2d686e8a4
|
| 3 |
size 5368
|