This commit is contained in:
Pengcheng He 2020-06-23 19:07:24 -04:00
Родитель 2e3e748a65
Коммит a0e332fe61
3 изменённых файлов: 12 добавлений и 18 удалений

Просмотреть файл

@ -34,11 +34,12 @@ Read our [documentation](https://deberta.readthedocs.io/en/latest/)
There are several ways to try our code,
### Use docker
Docker is the recommended way to run the code as we already built every dependency into the our docker [bagai/deberta](https://hub.docker.com/r/bagai/deberta)
Docker is the recommended way to run the code as we already built every dependency into the our docker [bagai/deberta](https://hub.docker.com/r/bagai/deberta) and you can follow the [docker official site](https://docs.docker.com/engine/install/ubuntu/) to install docker on your machine.
To run with docker, make sure your system fullfil the requirements in the above list. Here are the steps to try the GLUE experiments: Pull the code, run `./run_docker.sh`
, and then you can run the bash commands under `/DeBERTa/experiments/glue/`
### Use pip
Pull the code and run `pip3 install -r requirements.txt` in the root directory of the code, then enter `experiments/glue/` folder of the code and try the bash commands under that folder for glue experiments.

Просмотреть файл

@ -1,17 +1 @@
recommonmark
sphinx
sphinx-markdown-tables
sphinx-rtd-theme
nltk
spacy
numpy
pytest
regex
scipy
sklearn
torch==1.3.0
torchvision==0.3.0
tqdm
ujson
seqeval
psutil

Просмотреть файл

@ -1,6 +1,15 @@
import subprocess
import datetime
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
install('setuptools')
install('gitpython')
import setuptools
import git
import datetime
repo = git.Repo(search_parent_directories=True)
date=datetime.datetime.utcnow()