Skip to content

Commit b67ac87

Browse files
committed
Moved the setup.py to the correct folder. The setup now works and installs the flexnlp package.
1 parent c99776a commit b67ac87

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

flexnlp/notebooks/Federated IMDb PT using FLExible with a GRU.ipynb

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,9 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
6-
"metadata": {},
7-
"outputs": [
8-
{
9-
"ename": "ModuleNotFoundError",
10-
"evalue": "No module named 'flexnlp'",
11-
"output_type": "error",
12-
"traceback": [
13-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
14-
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
15-
"\u001b[1;32m/Users/albertoargentedelcastillogarrido/Documents/UGR-Work/ArticuloTesis/flex-nlp/flexnlp/notebooks/Federated IMDb PT using FLExible with a GRU.ipynb Celda 1\u001b[0m line \u001b[0;36m1\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/albertoargentedelcastillogarrido/Documents/UGR-Work/ArticuloTesis/flex-nlp/flexnlp/notebooks/Federated%20IMDb%20PT%20using%20FLExible%20with%20a%20GRU.ipynb#W0sZmlsZQ%3D%3D?line=8'>9</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mtorch\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mutils\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mdata\u001b[39;00m \u001b[39mimport\u001b[39;00m Dataset \u001b[39mas\u001b[39;00m TorchDataset\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/albertoargentedelcastillogarrido/Documents/UGR-Work/ArticuloTesis/flex-nlp/flexnlp/notebooks/Federated%20IMDb%20PT%20using%20FLExible%20with%20a%20GRU.ipynb#W0sZmlsZQ%3D%3D?line=9'>10</a>\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mtorchtext\u001b[39;00m\n\u001b[0;32m---> <a href='vscode-notebook-cell:/Users/albertoargentedelcastillogarrido/Documents/UGR-Work/ArticuloTesis/flex-nlp/flexnlp/notebooks/Federated%20IMDb%20PT%20using%20FLExible%20with%20a%20GRU.ipynb#W0sZmlsZQ%3D%3D?line=11'>12</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mflexnlp\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mutils\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mcollators\u001b[39;00m \u001b[39mimport\u001b[39;00m ClassificationCollator\n",
16-
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'flexnlp'"
17-
]
18-
}
19-
],
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
208
"source": [
219
"from copy import deepcopy\n",
2210
"import numpy as np\n",
@@ -694,7 +682,7 @@
694682
"name": "python",
695683
"nbconvert_exporter": "python",
696684
"pygments_lexer": "ipython3",
697-
"version": "3.11.4"
685+
"version": "3.11.3"
698686
},
699687
"orig_nbformat": 4
700688
},

flexnlp/setup.py renamed to setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"tensorflow_hub"
77
]
88

9+
PT_requires = ["torch",
10+
"torchvision",
11+
"torchtext",
12+
"torchdata",
13+
"portalocker",
14+
]
15+
916
HF_requires = ["datasets"]
1017

1118
setup(
@@ -25,7 +32,7 @@
2532
"tqdm",
2633
"scipy",
2734
"gdown",
28-
"flexible",
35+
# "flexible",
2936
"torch",
3037
"torchtext",
3138
"portalocker",

0 commit comments

Comments
 (0)