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 +5 -23
- model.safetensors +2 -2
- tokenizer.json +1 -10
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -1,32 +1,14 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "google-bert/bert-
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 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,
|
| 29 |
-
"hidden_size":
|
| 30 |
"id2label": {
|
| 31 |
"0": "d",
|
| 32 |
"1": "y",
|
|
@@ -64,7 +46,7 @@
|
|
| 64 |
"33": "positive_perception"
|
| 65 |
},
|
| 66 |
"initializer_range": 0.02,
|
| 67 |
-
"intermediate_size":
|
| 68 |
"label2id": {
|
| 69 |
"accumulated wealth": 6,
|
| 70 |
"business": 22,
|
|
@@ -104,8 +86,8 @@
|
|
| 104 |
"layer_norm_eps": 1e-12,
|
| 105 |
"max_position_embeddings": 512,
|
| 106 |
"model_type": "bert",
|
| 107 |
-
"num_attention_heads":
|
| 108 |
-
"num_hidden_layers":
|
| 109 |
"pad_token_id": 0,
|
| 110 |
"position_embedding_type": "absolute",
|
| 111 |
"task_specific_params": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "google-bert/bert-large-uncased",
|
| 3 |
"architectures": [
|
| 4 |
"BertForSequenceClassification"
|
| 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,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
"id2label": {
|
| 13 |
"0": "d",
|
| 14 |
"1": "y",
|
|
|
|
| 46 |
"33": "positive_perception"
|
| 47 |
},
|
| 48 |
"initializer_range": 0.02,
|
| 49 |
+
"intermediate_size": 4096,
|
| 50 |
"label2id": {
|
| 51 |
"accumulated wealth": 6,
|
| 52 |
"business": 22,
|
|
|
|
| 86 |
"layer_norm_eps": 1e-12,
|
| 87 |
"max_position_embeddings": 512,
|
| 88 |
"model_type": "bert",
|
| 89 |
+
"num_attention_heads": 16,
|
| 90 |
+
"num_hidden_layers": 24,
|
| 91 |
"pad_token_id": 0,
|
| 92 |
"position_embedding_type": "absolute",
|
| 93 |
"task_specific_params": {
|
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:c2ffb10f3afec070053097a823908133d0c060cbdf47186122825a22ca673336
|
| 3 |
+
size 1340753968
|
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:24441a5c5eac7a327d27fb0efacbb46534247f26598002cfcbf4bfb03aefbcdd
|
| 3 |
size 5368
|