Skip to content

Commit e793a0f

Browse files
authored
bump torch>=1.5.0. bump transformers==3.1.0. notebook installation switched to local pip install. (#1218)
1 parent 4c95331 commit e793a0f

8 files changed

+19
-94
lines changed

examples/notebooks/jiant_Basic_Example.ipynb

+3-18
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,9 @@
5656
"source": [
5757
"%%capture\n",
5858
"!git clone https://github.com/nyu-mll/jiant.git\n",
59-
"%cd jiant && git checkout tags/2.0.0"
60-
]
61-
},
62-
{
63-
"cell_type": "code",
64-
"execution_count": null,
65-
"metadata": {
66-
"colab": {},
67-
"colab_type": "code",
68-
"id": "hMUKEH2YvFPv"
69-
},
70-
"outputs": [],
71-
"source": [
72-
"%%capture\n",
73-
"# This Colab notebook already has its CUDA-runtime compatible versions of torch and torchvision installed\n",
74-
"!pip install -r jiant/requirements-no-torch.txt\n",
75-
"# Install pyarrow for nlp\n",
76-
"!pip install pyarrow==0.16.0"
59+
"%cd jiant\n",
60+
"!pip install -r requirements-no-torch.txt\n",
61+
"!pip install --no-deps -e ./"
7762
]
7863
},
7964
{

examples/notebooks/jiant_MNLI_Diagnostic_Example.ipynb

+3-18
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,9 @@
4242
"source": [
4343
"%%capture\n",
4444
"!git clone https://github.com/nyu-mll/jiant.git\n",
45-
"%cd jiant && git checkout tags/2.0.0"
46-
]
47-
},
48-
{
49-
"cell_type": "code",
50-
"execution_count": null,
51-
"metadata": {
52-
"colab": {},
53-
"colab_type": "code",
54-
"id": "hMUKEH2YvFPv"
55-
},
56-
"outputs": [],
57-
"source": [
58-
"%%capture\n",
59-
"# This Colab notebook already has its CUDA-runtime compatible versions of torch and torchvision installed\n",
60-
"!pip install -r jiant/requirements-no-torch.txt\n",
61-
"# Install pyarrow for nlp\n",
62-
"!pip install pyarrow==0.16.0"
45+
"%cd jiant\n",
46+
"!pip install -r requirements-no-torch.txt\n",
47+
"!pip install --no-deps -e ./"
6348
]
6449
},
6550
{

examples/notebooks/jiant_Multi_Task_Example.ipynb

+3-18
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,9 @@
6060
"source": [
6161
"%%capture\n",
6262
"!git clone https://github.com/nyu-mll/jiant.git\n",
63-
"%cd jiant && git checkout tags/2.0.0"
64-
]
65-
},
66-
{
67-
"cell_type": "code",
68-
"execution_count": null,
69-
"metadata": {
70-
"colab": {},
71-
"colab_type": "code",
72-
"id": "hMUKEH2YvFPv"
73-
},
74-
"outputs": [],
75-
"source": [
76-
"%%capture\n",
77-
"# This Colab notebook already has its CUDA-runtime compatible versions of torch and torchvision installed\n",
78-
"!pip install -r jiant/requirements-no-torch.txt\n",
79-
"# Install pyarrow for nlp\n",
80-
"!pip install pyarrow==0.16.0"
63+
"%cd jiant\n",
64+
"!pip install -r requirements-no-torch.txt\n",
65+
"!pip install --no-deps -e ./"
8166
]
8267
},
8368
{

examples/notebooks/jiant_STILTs_Example.ipynb

+3-18
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,9 @@
6262
"source": [
6363
"%%capture\n",
6464
"!git clone https://github.com/nyu-mll/jiant.git\n",
65-
"%cd jiant && git checkout tags/2.0.0"
66-
]
67-
},
68-
{
69-
"cell_type": "code",
70-
"execution_count": null,
71-
"metadata": {
72-
"colab": {},
73-
"colab_type": "code",
74-
"id": "hMUKEH2YvFPv"
75-
},
76-
"outputs": [],
77-
"source": [
78-
"%%capture\n",
79-
"# This Colab notebook already has its CUDA-runtime compatible versions of torch and torchvision installed\n",
80-
"!pip install -r jiant/requirements-no-torch.txt\n",
81-
"# Install pyarrow for nlp\n",
82-
"!pip install pyarrow==0.16.0"
65+
"%cd jiant\n",
66+
"!pip install -r requirements-no-torch.txt\n",
67+
"!pip install --no-deps -e ./"
8368
]
8469
},
8570
{

examples/notebooks/jiant_XNLI_Example.ipynb

+3-18
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,9 @@
6363
"source": [
6464
"%%capture\n",
6565
"!git clone https://github.com/nyu-mll/jiant.git\n",
66-
"%cd jiant && git checkout tags/2.0.0"
67-
]
68-
},
69-
{
70-
"cell_type": "code",
71-
"execution_count": null,
72-
"metadata": {
73-
"colab": {},
74-
"colab_type": "code",
75-
"id": "hMUKEH2YvFPv"
76-
},
77-
"outputs": [],
78-
"source": [
79-
"%%capture\n",
80-
"# This Colab notebook already has its CUDA-runtime compatible versions of torch and torchvision installed\n",
81-
"!pip install -r jiant/requirements-no-torch.txt\n",
82-
"# Install pyarrow for nlp\n",
83-
"!pip install pyarrow==0.16.0"
66+
"%cd jiant\n",
67+
"!pip install -r requirements-no-torch.txt\n",
68+
"!pip install --no-deps -e ./"
8469
]
8570
},
8671
{

requirements-no-torch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ scipy==1.4.1
1515
sentencepiece==0.1.86
1616
tokenizers==0.8.1.rc2
1717
tqdm==4.46.0
18-
transformers==3.0.2
18+
transformers==3.1.0

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r requirements-no-torch.txt
2-
torch==1.5.0
2+
torch>=1.5.0
33
torchvision==0.6.0

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"scipy == 1.4.1",
6969
"sentencepiece == 0.1.86",
7070
"tokenizers == 0.8.1.rc2",
71-
"torch == 1.5.0",
71+
"torch >= 1.5.0",
7272
"tqdm == 4.46.0",
73-
"transformers == 3.0.2",
73+
"transformers == 3.1.0",
7474
"torchvision == 0.6.0",
7575
],
7676
extras_require=extras,

0 commit comments

Comments
 (0)