зеркало из https://github.com/microsoft/DeBERTa.git
Fix dependency issue
This commit is contained in:
Родитель
2e3e748a65
Коммит
a0e332fe61
|
@ -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
|
||||
|
|
11
setup.py
11
setup.py
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче