model documentation

#7
by nazneen - opened
Files changed (1) hide show
  1. README.md +195 -0
README.md ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - bert
4
+ - fill-mask
5
+ ---
6
+
7
+ # Model Card for biobert-base-cased-v1.2
8
+
9
+ # Model Details
10
+
11
+ ## Model Description
12
+
13
+ More information needed
14
+
15
+ - **Developed by:** DMIS-lab (Data Mining and Information Systems Lab, Korea University)
16
+ - **Shared by [Optional]:** Jinhyuk Lee
17
+
18
+ - **Model type:** Fill-Mask
19
+ - **Language(s) (NLP):** More information needed
20
+ - **License:** More information needed
21
+ - **Parent Model:** BERT
22
+ - **Resources for more information:**
23
+ - [GitHub Repo](https://github.com/jhyuklee/biobert)
24
+
25
+
26
+ # Uses
27
+
28
+
29
+ ## Direct Use
30
+ This model can be used for the task of Fill-Mask.
31
+
32
+ ## Downstream Use [Optional]
33
+
34
+ More information needed.
35
+
36
+ ## Out-of-Scope Use
37
+
38
+ The model should not be used to intentionally create hostile or alienating environments for people.
39
+
40
+ # Bias, Risks, and Limitations
41
+
42
+
43
+ Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
44
+
45
+
46
+
47
+ ## Recommendations
48
+
49
+
50
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
51
+
52
+ # Training Details
53
+
54
+ ## Training Data
55
+
56
+ The model creators note in the [associated paper](https://arxiv.org/pdf/1901.08746.pdf):
57
+ > We used the BERTBASE model pre-trained on English Wikipedia and BooksCorpus for 1M steps. BioBERT v1.0 (þ PubMed þ PMC) is the version of BioBERT (þ PubMed þ PMC) trained for 470 K steps. When using both the PubMed and PMC corpora, we found that 200K and 270K pre-training steps were optimal for PubMed and PMC, respectively. We also used the ablated versions of BioBERT v1.0, which were pre-trained on only PubMed for 200K steps (BioBERT v1.0 (þ PubMed)) and PMC for 270K steps (BioBERT v1.0 (þ PMC))
58
+
59
+
60
+ ## Training Procedure
61
+
62
+
63
+ ### Preprocessing
64
+
65
+ The model creators note in the [associated paper](https://arxiv.org/pdf/1901.08746.pdf):
66
+ > We pre-trained BioBERT using Naver Smart Machine Learning (NSML) (Sung et al., 2017), which is utilized for large-scale experiments that need to be run on several GPUs
67
+
68
+
69
+
70
+
71
+
72
+ ### Speeds, Sizes, Times
73
+
74
+ The model creators note in the [associated paper](https://arxiv.org/pdf/1901.08746.pdf):
75
+ > The maximum sequence length was fixed to 512 and the mini-batch size was set to 192, resulting in 98 304 words per iteration.
76
+
77
+
78
+
79
+
80
+
81
+ # Evaluation
82
+
83
+
84
+ ## Testing Data, Factors & Metrics
85
+
86
+ ### Testing Data
87
+
88
+ More information needed
89
+
90
+ ### Factors
91
+ More information needed
92
+
93
+ ### Metrics
94
+
95
+ More information needed
96
+
97
+
98
+ ## Results
99
+
100
+ More information needed
101
+
102
+
103
+ # Model Examination
104
+
105
+ More information needed
106
+
107
+ # Environmental Impact
108
+
109
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
110
+
111
+ - **Hardware Type:** More information needed
112
+ - **Hours used:**
113
+ - **Training**: Eight NVIDIA V100 (32GB) GPUs [ for training],
114
+ - **Fine-tuning:** a single NVIDIA Titan Xp (12GB) GPU to fine-tune BioBERT on each task
115
+ - **Cloud Provider:** More information needed
116
+ - **Compute Region:** More information needed
117
+ - **Carbon Emitted:** More information needed
118
+
119
+ # Technical Specifications [optional]
120
+
121
+ ## Model Architecture and Objective
122
+
123
+ More information needed
124
+
125
+ ## Compute Infrastructure
126
+
127
+ More information needed
128
+
129
+ ### Hardware
130
+
131
+
132
+ More information needed
133
+
134
+ ### Software
135
+
136
+ More information needed.
137
+
138
+ # Citation
139
+
140
+
141
+ **BibTeX:**
142
+
143
+ ```bibtex
144
+ @article{lee2020biobert,
145
+ title={BioBERT: a pre-trained biomedical language representation model for biomedical text mining},
146
+ author={Lee, Jinhyuk and Yoon, Wonjin and Kim, Sungdong and Kim, Donghyeon and Kim, Sunkyu and So, Chan Ho and Kang, Jaewoo},
147
+ journal={Bioinformatics},
148
+ volume={36},
149
+ number={4},
150
+ pages={1234--1240},
151
+ year={2020},
152
+ publisher={Oxford University Press}
153
+ }
154
+ ```
155
+
156
+
157
+
158
+ **APA:**
159
+
160
+ More information needed
161
+
162
+ # Glossary [optional]
163
+
164
+ More information needed
165
+
166
+ # More Information [optional]
167
+
168
+ For help or issues using BioBERT, please submit a GitHub issue. Please contact Jinhyuk Lee(`lee.jnhk (at) gmail.com`), or Wonjin Yoon (`wonjin.info (at) gmail.com`) for communication related to BioBERT.
169
+
170
+ # Model Card Authors [optional]
171
+
172
+ DMIS-lab (Data Mining and Information Systems Lab, Korea University) in collaboration with Ezi Ozoani and the Hugging Face team
173
+
174
+ # Model Card Contact
175
+
176
+ More information needed
177
+
178
+ # How to Get Started with the Model
179
+
180
+ Use the code below to get started with the model.
181
+
182
+ <details>
183
+ <summary> Click to expand </summary>
184
+
185
+ ```python
186
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
187
+
188
+ tokenizer = AutoTokenizer.from_pretrained("dmis-lab/biobert-base-cased-v1.2")
189
+
190
+ model = AutoModelForMaskedLM.from_pretrained("dmis-lab/biobert-base-cased-v1.2")
191
+
192
+ ```
193
+ </details>
194
+
195
+