Fannyjrd commited on
Commit
d44b702
·
verified ·
1 Parent(s): 09479bf

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - LabHC/bias_in_bios
4
+ language:
5
+ - en
6
+ base_model:
7
+ - FacebookAI/roberta-base
8
+ pipeline_tag: text-classification
9
+ ---
10
+
11
+ # RoBERTa-Bios
12
+
13
+ This model is a `roberta-base` model fine-tuned for profession classification on the [`LabHC/bias_in_bios`](https://huggingface.co/datasets/LabHC/bias_in_bios) dataset.
14
+
15
+ It takes biography text as input and predicts the corresponding profession label. The model was trained on the original BIOS training split.
16
+
17
+ ## Model details
18
+
19
+ * Base model: `roberta-base`
20
+ * Dataset: `LabHC/bias_in_bios`
21
+ * Input column: `hard_text`
22
+ * Label column: `profession`
23
+ * Task: profession classification
24
+ * Language: English
25
+
26
+
27
+ ## Training procedure
28
+
29
+ The model was fine-tuned with the Hugging Face `Trainer` API.
30
+
31
+ Main hyperparameters:
32
+
33
+ ```python
34
+ BASE_MODEL = "roberta-base"
35
+ MAX_LENGTH = 256
36
+ NUM_EPOCHS = 3
37
+ LEARNING_RATE = 2e-5
38
+ TRAIN_BATCH_SIZE = 32
39
+ EVAL_BATCH_SIZE = 128
40
+ SEED = 42
41
+ ```
42
+
43
+ The model was trained using:
44
+
45
+ ```python
46
+ AutoModelForSequenceClassification.from_pretrained(
47
+ "roberta-base",
48
+ num_labels=num_labels,
49
+ )
50
+ ```
51
+
52
+ The best checkpoint was selected according to macro-F1 on the development split.
53
+
54
+ ## Evaluation
55
+
56
+ Performance on the original BIOS test set:
57
+
58
+ | Evaluation set | Accuracy |
59
+ | ---------------------- | -------: |
60
+ | Original BIOS test set | 0.8689 |