sultan commited on
Commit
d17fc44
1 Parent(s): 5200757

Update README.md

Browse files

adding python code

Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -44,6 +44,27 @@ epoch = 2.0
44
 
45
  ```
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  Citation
48
 
49
 
 
44
 
45
  ```
46
 
47
+ To reproduce results in Google Colab:
48
+ - Make sure you have GPU enabled.
49
+ - Clone and install required libraries through this code
50
+
51
+ !git clone https://github.com/huggingface/transformers
52
+ !pip3 install -e transformers
53
+ !pip3 install sentencepiece
54
+ !pip3 install -r /content/transformers/examples/pytorch/question-answering/requirements.txt
55
+
56
+ - Run this python code:
57
+ ```python
58
+ python /content/transformers/examples/pytorch/question-answering/run_qa.py --model_name_or_path sultan/BioM-ELECTRA-Large-SQuAD2 \
59
+ --do_eval \
60
+ --version_2_with_negative \
61
+ --per_device_eval_batch_size 8 \
62
+ --dataset_name squad_v2 \
63
+ --overwrite_output_dir \
64
+ --fp16 \
65
+ --output_dir out
66
+ ```
67
+
68
  Citation
69
 
70