File size: 1,500 Bytes
f61e4be
 
 
 
 
 
 
 
 
 
 
 
 
 
1e81d97
 
f61e4be
 
 
 
e59260f
 
 
 
 
 
 
 
 
 
 
 
f61e4be
 
 
 
 
 
 
 
 
 
 
 
 
e59260f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
license: apache-2.0
datasets:
- fgs218ok/WikiEditBias
language:
- en
---

# Model Card for distilRoberta model finetuned on WikiEditBias dataset

<!-- Provide a quick summary of what the model is/does. -->

The [distilRoberta-base](distilbert/distilroberta-base) model finetuned on WikiEditBias dataset on the format of edit diff data and 200k samples.

For training data, please ref: https://huggingface.co/datasets/fgs218ok/WikiEditBias/viewer/train200k_val2k_test2k_edit_diff

## Uses

<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->

### Input format
The input should be in diff format: 

```
<old_text>{old_sentence1} ... {old_sentenceN}<new_text>{new_sentence1} ... {new_sentenceN}
```

For example:
```
<old_text>He is a boy.<new_text>He is a nice boy
```

### Direct Use

<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
```
model = AutoModel.from_pretrained("fgs218ok/WikiEditBias200k")
tokenizer = AutoTokenizer.from_pretrained("fgs218ok/WikiEditBias200k")
```

## Evaluation

<!-- This section describes the evaluation protocols and provides the results. -->
This model achieves the 83.45% accuracy on fgs218ok/WikiEditBias200k dataset, outperforms GPT-3.5-turbo by large margin while competitive to GPT4o:

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6661e0ac10021fc434ad8e72/gc-XRVZVjCUwJzOvwJRy8.png)