Skip to content

Instantly share code, notes, and snippets.

@goldsborough
goldsborough / install-gcc.sh
Last active July 29, 2024 16:48
Instructions for installing GCC >= 4.9 for PyTorch Extensions
# Instructions for installing GCC 4.9 on various platforms.
# The commands show instructions for GCC 4.9, but any higher version will also work!
# Ubuntu (https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu/581497#581497)
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
@W4ngatang
W4ngatang / download_glue_data.py
Last active May 23, 2024 12:55
Script for downloading data of the GLUE benchmark (gluebenchmark.com)
''' Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually.
For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example).
You should then rename and place specific files in a folder (see below for an example).
mkdir MRPC
cabextract MSRParaphraseCorpus.msi -d MRPC
@DOUDOU0314
DOUDOU0314 / comparison.txt
Last active January 11, 2021 07:51
Comparison of deepspeed and gluon-nlp in SQuAD1.1
Comparison of deepspeed and gluon-nlp in SQuAD1.1
Dataset:SQuAD1.1
GPUs:p3.8x with four teslaV100
BatchSize: 3
Epoch: 2
Max_seq_len: 384
Model: google_en_uncased_bert_wwm_large
Results:
deepspeed : 93.11/87.03 time cost: 0.71hours