Instructions to use livinNector/indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use livinNector/indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="livinNector/indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("livinNector/indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12") model = AutoModelForSequenceClassification.from_pretrained("livinNector/indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +89 -0
- config.json +27 -0
- default/head_config.json +19 -0
- default/pytorch_model_head.bin +3 -0
- model.safetensors +3 -0
- tam_mal_ai_aw_classification_adapter/adapter_config.json +26 -0
- tam_mal_ai_aw_classification_adapter/pytorch_adapter.bin +3 -0
- tam_mal_ai_aw_classification_head/head_config.json +21 -0
- tam_mal_ai_aw_classification_head/pytorch_model_head.bin +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: ai4bharat/IndicBERTv2-MLM-only
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- f1
|
| 10 |
+
model-index:
|
| 11 |
+
- name: indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# indic-bert-v2-mlm-only-dra-tam-mal-aw-classification-lora-r12
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [ai4bharat/IndicBERTv2-MLM-only](https://huggingface.co/ai4bharat/IndicBERTv2-MLM-only) on the None dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.5211
|
| 23 |
+
- Accuracy: 0.7539
|
| 24 |
+
- F1: 0.7405
|
| 25 |
+
|
| 26 |
+
## Model description
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Intended uses & limitations
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training and evaluation data
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training procedure
|
| 39 |
+
|
| 40 |
+
### Training hyperparameters
|
| 41 |
+
|
| 42 |
+
The following hyperparameters were used during training:
|
| 43 |
+
- learning_rate: 0.0001
|
| 44 |
+
- train_batch_size: 64
|
| 45 |
+
- eval_batch_size: 64
|
| 46 |
+
- seed: 42
|
| 47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 48 |
+
- lr_scheduler_type: linear
|
| 49 |
+
- num_epochs: 6
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 54 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
|
| 55 |
+
| 0.6914 | 0.2222 | 20 | 0.6860 | 0.5827 | 0.2928 |
|
| 56 |
+
| 0.6859 | 0.4444 | 40 | 0.6863 | 0.5338 | 0.6567 |
|
| 57 |
+
| 0.6855 | 0.6667 | 60 | 0.6765 | 0.6324 | 0.5248 |
|
| 58 |
+
| 0.6765 | 0.8889 | 80 | 0.6769 | 0.5542 | 0.6638 |
|
| 59 |
+
| 0.6689 | 1.1111 | 100 | 0.6595 | 0.6487 | 0.5174 |
|
| 60 |
+
| 0.6583 | 1.3333 | 120 | 0.6462 | 0.7001 | 0.6599 |
|
| 61 |
+
| 0.6456 | 1.5556 | 140 | 0.6297 | 0.6805 | 0.6942 |
|
| 62 |
+
| 0.626 | 1.7778 | 160 | 0.6033 | 0.7017 | 0.6995 |
|
| 63 |
+
| 0.6082 | 2.0 | 180 | 0.5898 | 0.7033 | 0.7065 |
|
| 64 |
+
| 0.5779 | 2.2222 | 200 | 0.5683 | 0.7188 | 0.6917 |
|
| 65 |
+
| 0.5886 | 2.4444 | 220 | 0.5554 | 0.7229 | 0.6909 |
|
| 66 |
+
| 0.5909 | 2.6667 | 240 | 0.5488 | 0.7311 | 0.7170 |
|
| 67 |
+
| 0.5607 | 2.8889 | 260 | 0.5435 | 0.7327 | 0.7244 |
|
| 68 |
+
| 0.5611 | 3.1111 | 280 | 0.5403 | 0.7368 | 0.7169 |
|
| 69 |
+
| 0.5375 | 3.3333 | 300 | 0.5375 | 0.7311 | 0.7140 |
|
| 70 |
+
| 0.5563 | 3.5556 | 320 | 0.5377 | 0.7425 | 0.7308 |
|
| 71 |
+
| 0.5562 | 3.7778 | 340 | 0.5340 | 0.7376 | 0.7130 |
|
| 72 |
+
| 0.568 | 4.0 | 360 | 0.5320 | 0.7457 | 0.7455 |
|
| 73 |
+
| 0.5598 | 4.2222 | 380 | 0.5265 | 0.7433 | 0.7185 |
|
| 74 |
+
| 0.5372 | 4.4444 | 400 | 0.5241 | 0.7531 | 0.7452 |
|
| 75 |
+
| 0.5366 | 4.6667 | 420 | 0.5344 | 0.7498 | 0.7542 |
|
| 76 |
+
| 0.5526 | 4.8889 | 440 | 0.5224 | 0.7514 | 0.7355 |
|
| 77 |
+
| 0.523 | 5.1111 | 460 | 0.5237 | 0.7482 | 0.7258 |
|
| 78 |
+
| 0.5362 | 5.3333 | 480 | 0.5235 | 0.7482 | 0.7406 |
|
| 79 |
+
| 0.5374 | 5.5556 | 500 | 0.5216 | 0.7514 | 0.7359 |
|
| 80 |
+
| 0.5621 | 5.7778 | 520 | 0.5213 | 0.7506 | 0.7325 |
|
| 81 |
+
| 0.5373 | 6.0 | 540 | 0.5211 | 0.7539 | 0.7405 |
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
### Framework versions
|
| 85 |
+
|
| 86 |
+
- Transformers 4.45.2
|
| 87 |
+
- Pytorch 2.5.1+cu121
|
| 88 |
+
- Datasets 3.2.0
|
| 89 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/Multilingual-MiniLM-L12-H384",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 384,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 1536,
|
| 13 |
+
"layer_norm_eps": 1e-12,
|
| 14 |
+
"max_position_embeddings": 512,
|
| 15 |
+
"model_type": "bert",
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_hidden_layers": 12,
|
| 18 |
+
"pad_token_id": 0,
|
| 19 |
+
"position_embedding_type": "absolute",
|
| 20 |
+
"problem_type": "single_label_classification",
|
| 21 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.45.2",
|
| 24 |
+
"type_vocab_size": 2,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 250037
|
| 27 |
+
}
|
default/head_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"config": {
|
| 3 |
+
"activation_function": "gelu",
|
| 4 |
+
"bias": true,
|
| 5 |
+
"embedding_size": 768,
|
| 6 |
+
"head_type": "masked_lm",
|
| 7 |
+
"label2id": null,
|
| 8 |
+
"layer_norm": true,
|
| 9 |
+
"layers": 2,
|
| 10 |
+
"shift_labels": false,
|
| 11 |
+
"vocab_size": 250000
|
| 12 |
+
},
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"model_class": "BertAdapterModel",
|
| 15 |
+
"model_name": "ai4bharat/IndicBERTv2-MLM-only",
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"name": "default",
|
| 18 |
+
"version": "adapters.1.0.1"
|
| 19 |
+
}
|
default/pytorch_model_head.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81ade58fc9df9dbd31f6b4dfb0ec3bcafffbd5f20b8f19438fbadbddf6688352
|
| 3 |
+
size 771371254
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01511a6e89ea33d7585e564bf220682b516ecdbc71b2624f47750b27eb956905
|
| 3 |
+
size 470641664
|
tam_mal_ai_aw_classification_adapter/adapter_config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"config": {
|
| 3 |
+
"alpha": 8,
|
| 4 |
+
"architecture": "lora",
|
| 5 |
+
"attn_matrices": [
|
| 6 |
+
"q",
|
| 7 |
+
"v"
|
| 8 |
+
],
|
| 9 |
+
"composition_mode": "add",
|
| 10 |
+
"dropout": 0.1,
|
| 11 |
+
"init_weights": "lora",
|
| 12 |
+
"intermediate_lora": false,
|
| 13 |
+
"leave_out": [],
|
| 14 |
+
"output_lora": false,
|
| 15 |
+
"r": 12,
|
| 16 |
+
"selfattn_lora": true,
|
| 17 |
+
"use_gating": false
|
| 18 |
+
},
|
| 19 |
+
"config_id": "a0c8452a4cfb970e",
|
| 20 |
+
"hidden_size": 768,
|
| 21 |
+
"model_class": "BertAdapterModel",
|
| 22 |
+
"model_name": "ai4bharat/IndicBERTv2-MLM-only",
|
| 23 |
+
"model_type": "bert",
|
| 24 |
+
"name": "tam_mal_ai_aw_classification_adapter",
|
| 25 |
+
"version": "adapters.1.0.1"
|
| 26 |
+
}
|
tam_mal_ai_aw_classification_adapter/pytorch_adapter.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b924cc8d8ea3bb7be73459cf3bc217f1dda9e5607a9be79faa037f4ca483f54
|
| 3 |
+
size 1788390
|
tam_mal_ai_aw_classification_head/head_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"config": {
|
| 3 |
+
"activation_function": "ReLU",
|
| 4 |
+
"bias": true,
|
| 5 |
+
"dropout_prob": null,
|
| 6 |
+
"head_type": "classification",
|
| 7 |
+
"label2id": {
|
| 8 |
+
"Abusive": 1,
|
| 9 |
+
"Non-Abusive": 0
|
| 10 |
+
},
|
| 11 |
+
"layers": 2,
|
| 12 |
+
"num_labels": 2,
|
| 13 |
+
"use_pooler": false
|
| 14 |
+
},
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"model_class": "BertAdapterModel",
|
| 17 |
+
"model_name": "ai4bharat/IndicBERTv2-MLM-only",
|
| 18 |
+
"model_type": "bert",
|
| 19 |
+
"name": "tam_mal_ai_aw_classification_head",
|
| 20 |
+
"version": "adapters.1.0.1"
|
| 21 |
+
}
|
tam_mal_ai_aw_classification_head/pytorch_model_head.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e7d8c1397bae7f2d2c0043913999e01f2c1a6cf0c1f88a37c663f5ab7f3ae94
|
| 3 |
+
size 2370792
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f52699fd125be2ed9c6f268588719031a06fd4b73fc2dd4895890df1c704f664
|
| 3 |
+
size 5304
|