oooooorange commited on
Commit
d0cb42b
1 Parent(s): 1bba7b9

initial commit

Browse files
Files changed (1) hide show
  1. README.md +90 -1
README.md CHANGED
@@ -1 +1,90 @@
1
- Coming soon.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/model-cards
4
+ {}
5
+ ---
6
+
7
+ # Varta BERT model
8
+
9
+ <!-- Provide a quick summary of what the model is/does. -->
10
+
11
+ ### Model Description
12
+
13
+ <!-- Provide a longer summary of what this model is. -->
14
+ Varta BERT is a model pre-trained on full training set from Varta on English and 14 Indic languages (Assamese, Bhojpuri, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Oriya, Punjabi, Tamil, Telugu, and Urdu) using a masked language modeling (MLM) objective from scratch.
15
+ Varta is a large-scale headline-generation dataset for Indic languages, including 41.8 million news articles in 14 different Indic languages (and English), which come from a variety of high-quality sources.
16
+
17
+
18
+ The dataset and the model were introduced in [this paper](https://arxiv.org/pdf/2305.05858.pdf). The code was released in [this repository](https://github.com/rahular/varta). The data was released in [this bucket](https://console.cloud.google.com/storage/browser/varta-eu/data-release).
19
+
20
+
21
+ ## Uses
22
+
23
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
24
+
25
+ You can use the raw model for masked language modelling, but it's mostly intended to be fine-tuned on a downstream task. <br>
26
+
27
+
28
+ Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at our Varta T5 model.
29
+
30
+ ## Bias, Risks, and Limitations
31
+
32
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
33
+
34
+ This work is mainly dedicated to the curation of a new multilingual dataset for Indic languages, many of which are low-resource languages. During data collection, we face several limitations that can potentially result in ethical concerns. Some of the important ones are mentioned below: <br>
35
+
36
+ - Our dataset contains only those articles written by DailyHunt's partner publishers. This has the potential to result in a bias towards a particular narrative or ideology that can affect the representativeness and diversity of the dataset.
37
+ - Another limitation is the languages represented in Varta. Out of 22 languages with official status in India, our dataset has only 13. There are 122 major languages spoken by at least 10,000 people and 159 other languages which are extremely low-resourced. None of these languages are represented in our dataset.
38
+ - We do not perform any kind of debiasing on Varta. This means that societal and cultural biases may exist in the dataset, which can adversely affect the fairness and inclusivity of the models trained on it.
39
+
40
+
41
+ ## How to Get Started with the Model
42
+
43
+ You can use this model directly with a pipeline for masked language modeling.
44
+
45
+ ```python
46
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
47
+
48
+ tokenizer = AutoTokenizer.from_pretrained("rahular/varta-bert")
49
+
50
+ model = AutoModelForMaskedLM.from_pretrained("rahular/varta-bert")
51
+ ```
52
+
53
+
54
+ ## Training Details
55
+
56
+ ### Training Data
57
+ Varta contains 41.8 million high-quality news articles in 14 Indic languages and English.
58
+ With 34.5 million non-English article-headline pairs, it is the largest headline-generation dataset of its kind.
59
+
60
+ ### Pretraining
61
+ We pretrain the Varta-BERT model using the standard BERT-Base architecture with 12 encoder layers.
62
+ We train with a maximum sequence length of 512 tokens with an embedding dimension of 768.
63
+ We use 12 attention heads with feed-forward width of 3072.
64
+ To support all the 15 languages in dataset we use a wordpiece vocabulary of size 128K.
65
+ In total, the model has 184M parameters. The model is trained with AdamW optimizer with alpha=0.9 and beta=0.98.
66
+ We use an initial learning rate of 1e-4 with a warm-up of 10K steps and linearly decay the learning rate till the end of training.
67
+ We train the model for a total of 1M steps which takes 10 days to finish.
68
+ We use an effective batch size of 4096 and train the model on TPU v3-128 chips.
69
+
70
+ <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
71
+
72
+ ### Evaluation Results
73
+ To come.
74
+
75
+ ## Citation
76
+
77
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
78
+
79
+ ```
80
+ @misc{aralikatte2023varta,
81
+ title={V\=arta: A Large-Scale Headline-Generation Dataset for Indic Languages},
82
+ author={Rahul Aralikatte and Ziling Cheng and Sumanth Doddapaneni and Jackie Chi Kit Cheung},
83
+ year={2023},
84
+ eprint={2305.05858},
85
+ archivePrefix={arXiv},
86
+ primaryClass={cs.CL}
87
+ }
88
+ ```
89
+
90
+