sultan commited on
Commit
7a3db1d
1 Parent(s): b537b0b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -1
README.md CHANGED
@@ -25,8 +25,32 @@ models.
25
  This model is fine-tuned on the SQuAD2.0 dataset. Fine-tuning the biomedical language model on the SQuAD dataset helps improve the score on the BioASQ challenge. If you plan to work with BioASQ or biomedical QA tasks, it's better to use this model over BioM-ALBERT-xxlarge.
26
 
27
  Huggingface library doesn't implement the Layer-Wise decay feature, which affects the performance on the SQuAD task. The reported result of BioM-ALBERT-xxlarge-SQuAD in our paper is 87.00 (F1) since we use ALBERT open-source code with TF checkpoint, which uses Layer-Wise decay.
28
- Citation
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  ```bibtex
32
  @inproceedings{alrowili-shanker-2021-biom,
 
25
  This model is fine-tuned on the SQuAD2.0 dataset. Fine-tuning the biomedical language model on the SQuAD dataset helps improve the score on the BioASQ challenge. If you plan to work with BioASQ or biomedical QA tasks, it's better to use this model over BioM-ALBERT-xxlarge.
26
 
27
  Huggingface library doesn't implement the Layer-Wise decay feature, which affects the performance on the SQuAD task. The reported result of BioM-ALBERT-xxlarge-SQuAD in our paper is 87.00 (F1) since we use ALBERT open-source code with TF checkpoint, which uses Layer-Wise decay.
 
28
 
29
+ To reproduce results in Google Colab:
30
+ - Make sure you have GPU enabled.
31
+ - Clone and install required libraries through this code
32
+
33
+ !git clone https://github.com/huggingface/transformers
34
+ !pip3 install -e transformers
35
+ !pip3 install sentencepiece
36
+ !pip3 install -r /content/transformers/examples/pytorch/question-answering/requirements.txt
37
+
38
+ - Run this python code:
39
+
40
+ ```python
41
+ python /content/transformers/examples/pytorch/question-answering/run_qa.py --model_name_or_path sultan/BioM-ELECTRA-Large-SQuAD2 \\
42
+ --do_eval \\
43
+ --version_2_with_negative \\
44
+ --per_device_eval_batch_size 8 \\
45
+ --dataset_name squad_v2 \\
46
+ --overwrite_output_dir \\
47
+ --fp16 \\
48
+ --output_dir out
49
+ ```
50
+
51
+ You don't need to download the SQuAD2 dataset. The code will download it from the HuggingFace datasets hub.
52
+
53
+ Citation
54
 
55
  ```bibtex
56
  @inproceedings{alrowili-shanker-2021-biom,