Instructions to use ciphertext/vijil-bias-detector-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ciphertext/vijil-bias-detector-v4 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ciphertext/vijil-bias-detector-v4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
v3: multi-task with hard example mining
Browse files- README.md +85 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- trackio
|
| 5 |
+
- trackio:https://huggingface.co/spaces/ciphertext/trackio
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- f1
|
| 10 |
+
- precision
|
| 11 |
+
- recall
|
| 12 |
+
model-index:
|
| 13 |
+
- name: vijil-bias-detector-v4
|
| 14 |
+
results: []
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
<a href="https://huggingface.co/spaces/ciphertext/trackio" target="_blank"><img src="https://raw.githubusercontent.com/gradio-app/trackio/refs/heads/main/trackio/assets/badge.png" alt="Visualize in Trackio" title="Visualize in Trackio" style="height: 40px;"/></a>
|
| 21 |
+
# vijil-bias-detector-v4
|
| 22 |
+
|
| 23 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 24 |
+
It achieves the following results on the evaluation set:
|
| 25 |
+
- Loss: 0.1877
|
| 26 |
+
- Accuracy: 0.9050
|
| 27 |
+
- F1: 0.9094
|
| 28 |
+
- Precision: 0.8983
|
| 29 |
+
- Recall: 0.9207
|
| 30 |
+
|
| 31 |
+
## Model description
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Intended uses & limitations
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training and evaluation data
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Training procedure
|
| 44 |
+
|
| 45 |
+
### Training hyperparameters
|
| 46 |
+
|
| 47 |
+
The following hyperparameters were used during training:
|
| 48 |
+
- learning_rate: 2e-05
|
| 49 |
+
- train_batch_size: 32
|
| 50 |
+
- eval_batch_size: 64
|
| 51 |
+
- seed: 42
|
| 52 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 53 |
+
- lr_scheduler_type: linear
|
| 54 |
+
- lr_scheduler_warmup_steps: 0.1
|
| 55 |
+
- num_epochs: 5
|
| 56 |
+
- mixed_precision_training: Native AMP
|
| 57 |
+
|
| 58 |
+
### Training results
|
| 59 |
+
|
| 60 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
| 61 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
| 62 |
+
| 0.5963 | 0.3221 | 200 | 0.4896 | 0.7339 | 0.7245 | 0.7808 | 0.6757 |
|
| 63 |
+
| 0.3916 | 0.6441 | 400 | 0.3866 | 0.7681 | 0.7700 | 0.7915 | 0.7496 |
|
| 64 |
+
| 0.3415 | 0.9662 | 600 | 0.3335 | 0.7959 | 0.8076 | 0.7887 | 0.8274 |
|
| 65 |
+
| 0.3058 | 1.2882 | 800 | 0.3029 | 0.8172 | 0.8225 | 0.8270 | 0.8180 |
|
| 66 |
+
| 0.2417 | 1.6103 | 1000 | 0.2334 | 0.8720 | 0.8797 | 0.8564 | 0.9044 |
|
| 67 |
+
| 0.2137 | 1.9324 | 1200 | 0.2192 | 0.8853 | 0.8891 | 0.8901 | 0.8880 |
|
| 68 |
+
| 0.1833 | 2.2544 | 1400 | 0.2099 | 0.8921 | 0.9011 | 0.8574 | 0.9495 |
|
| 69 |
+
| 0.1805 | 2.5765 | 1600 | 0.2022 | 0.8937 | 0.8992 | 0.8831 | 0.9160 |
|
| 70 |
+
| 0.1733 | 2.8986 | 1800 | 0.2048 | 0.8869 | 0.8861 | 0.9255 | 0.8499 |
|
| 71 |
+
| 0.1473 | 3.2206 | 2000 | 0.1850 | 0.9058 | 0.9116 | 0.8868 | 0.9378 |
|
| 72 |
+
| 0.1271 | 3.5427 | 2200 | 0.1941 | 0.9066 | 0.9121 | 0.8892 | 0.9362 |
|
| 73 |
+
| 0.1159 | 3.8647 | 2400 | 0.1865 | 0.9070 | 0.9108 | 0.9042 | 0.9176 |
|
| 74 |
+
| 0.0996 | 4.1868 | 2600 | 0.1906 | 0.9034 | 0.9076 | 0.8986 | 0.9168 |
|
| 75 |
+
| 0.1017 | 4.5089 | 2800 | 0.1923 | 0.9022 | 0.9078 | 0.8866 | 0.9300 |
|
| 76 |
+
| 0.0952 | 4.8309 | 3000 | 0.1902 | 0.9046 | 0.9099 | 0.8905 | 0.9300 |
|
| 77 |
+
| 0.0945 | 5.0 | 3105 | 0.1877 | 0.9050 | 0.9094 | 0.8983 | 0.9207 |
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
### Framework versions
|
| 81 |
+
|
| 82 |
+
- Transformers 5.5.0
|
| 83 |
+
- Pytorch 2.11.0+cu130
|
| 84 |
+
- Datasets 4.8.4
|
| 85 |
+
- Tokenizers 0.22.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 596095760
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6557cb8f84a70cfe2485d31985aad00e0ded272dab253d5bb5583ad296cd4b31
|
| 3 |
size 596095760
|