slurmray 3.6.2__py3-none-any.whl → 3.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slurmray might be problematic. Click here for more details.
- slurmray/RayLauncher.py +9 -14
- slurmray/assets/slurmray_server.sh +3 -1
- {slurmray-3.6.2.dist-info → slurmray-3.6.4.dist-info}/METADATA +2 -5
- slurmray-3.6.4.dist-info/RECORD +10 -0
- slurmray-3.6.2.dist-info/RECORD +0 -10
- {slurmray-3.6.2.dist-info → slurmray-3.6.4.dist-info}/LICENSE +0 -0
- {slurmray-3.6.2.dist-info → slurmray-3.6.4.dist-info}/WHEEL +0 -0
slurmray/RayLauncher.py
CHANGED
|
@@ -64,8 +64,8 @@ class RayLauncher:
|
|
|
64
64
|
self.server_username = server_username
|
|
65
65
|
self.server_password = server_password
|
|
66
66
|
|
|
67
|
-
self.modules = ["gcc", "python/3.
|
|
68
|
-
mod for mod in modules if mod not in ["gcc", "python/3.
|
|
67
|
+
self.modules = ["gcc", "python/3.11.6"] + [
|
|
68
|
+
mod for mod in modules if mod not in ["gcc", "python/3.11.6"]
|
|
69
69
|
]
|
|
70
70
|
if self.use_gpu is True and "cuda" not in self.modules:
|
|
71
71
|
self.modules += ["cuda", "cudnn"]
|
|
@@ -74,9 +74,6 @@ class RayLauncher:
|
|
|
74
74
|
self.cluster = os.path.exists("/usr/bin/sbatch")
|
|
75
75
|
|
|
76
76
|
# Create the project directory if not exists
|
|
77
|
-
self.module_path = os.path.join(
|
|
78
|
-
os.path.dirname(os.path.abspath(__file__)), ".."
|
|
79
|
-
)
|
|
80
77
|
self.pwd_path = os.getcwd()
|
|
81
78
|
self.module_path = os.path.dirname(os.path.abspath(__file__))
|
|
82
79
|
self.project_path = os.path.join(self.pwd_path, ".slogs", self.project_name)
|
|
@@ -444,14 +441,12 @@ class RayLauncher:
|
|
|
444
441
|
# lines = [re.sub(r'torchaudio\n', 'torchaudio --pre --index-url https://download.pytorch.org/whl/nightly/cu121\n', line) for line in lines]
|
|
445
442
|
|
|
446
443
|
# lines = [re.sub(r'bitsandbytes\n', 'bitsandbytes --global-option="--cuda_ext"\n', line) for line in lines]
|
|
447
|
-
lines = [re.sub(r"slurmray\n", "", line) for line in lines]
|
|
448
|
-
# Add slurmray --pre
|
|
449
|
-
lines.append("slurmray --pre \n")
|
|
450
444
|
# Solve torch buf (https://github.com/pytorch/pytorch/issues/111469)
|
|
451
|
-
if "torchaudio\n" or "torchvision\n" in lines:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
445
|
+
# if "torchaudio\n" or "torchvision\n" in lines:
|
|
446
|
+
# lines.append(
|
|
447
|
+
# "torch==2.1.1 --index-url https://download.pytorch.org/whl/cu121\n"
|
|
448
|
+
# )
|
|
449
|
+
lines.append("slurmray\n")
|
|
455
450
|
|
|
456
451
|
with open(f"{self.project_path}/requirements.txt", "w") as file:
|
|
457
452
|
file.writelines(lines)
|
|
@@ -546,7 +541,7 @@ if __name__ == "__main__":
|
|
|
546
541
|
import torch
|
|
547
542
|
|
|
548
543
|
def function_inside_function():
|
|
549
|
-
with open("
|
|
544
|
+
with open("documentation/RayLauncher.html", "r") as f:
|
|
550
545
|
return f.read()[0:10]
|
|
551
546
|
|
|
552
547
|
def example_func(x):
|
|
@@ -563,7 +558,7 @@ if __name__ == "__main__":
|
|
|
563
558
|
func=example_func, # Function to execute
|
|
564
559
|
args={"x": 5}, # Arguments of the function
|
|
565
560
|
files=[
|
|
566
|
-
"
|
|
561
|
+
"documentation/RayLauncher.html"
|
|
567
562
|
], # List of files to push to the cluster (file path will be recreated on the cluster)
|
|
568
563
|
modules=[], # List of modules to load on the curnagl Cluster (CUDA & CUDNN are automatically added if use_gpu=True)
|
|
569
564
|
node_nbr=1, # Number of nodes to use
|
|
@@ -8,7 +8,7 @@ mv -t slurmray-server/.slogs/server func.pkl args.pkl
|
|
|
8
8
|
cd slurmray-server
|
|
9
9
|
|
|
10
10
|
# Load modules
|
|
11
|
-
module load gcc python/3.
|
|
11
|
+
module load gcc rust python/3.11.6 cuda cudnn
|
|
12
12
|
|
|
13
13
|
# Check if venv exists
|
|
14
14
|
if [ ! -d ".venv" ]; then
|
|
@@ -17,6 +17,8 @@ fi
|
|
|
17
17
|
source .venv/bin/activate
|
|
18
18
|
|
|
19
19
|
# Install requirements
|
|
20
|
+
pip install wheel
|
|
21
|
+
pip install -r requirements.txt
|
|
20
22
|
## Load all installed packages into a variable
|
|
21
23
|
installed_packages=$(pip3 list --format=freeze)
|
|
22
24
|
## Function to check if a package is installed
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: slurmray
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.4
|
|
4
4
|
Summary: SlurmRay is a module for effortlessly distributing tasks on a Slurm cluster using the Ray library.
|
|
5
5
|
Home-page: https://henri-jamet.vercel.app/
|
|
6
6
|
License: Apache License
|
|
7
7
|
Author: Henri Jamet
|
|
8
8
|
Author-email: henri.jamet@unil.ch
|
|
9
|
-
Requires-Python:
|
|
9
|
+
Requires-Python: ==3.11.6
|
|
10
10
|
Classifier: License :: Other/Proprietary License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
15
12
|
Requires-Dist: dill (>=0.3.7,<0.4.0)
|
|
16
13
|
Requires-Dist: paramiko (>=3.3.1,<4.0.0)
|
|
17
14
|
Requires-Dist: pdoc3 (>=0.10.0,<0.11.0)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
slurmray/RayLauncher.py,sha256=HAsLfXJalvyTQ8IYU6krXV_NvNcDjonacmu4olMZm_Q,23281
|
|
2
|
+
slurmray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
slurmray/assets/sbatch_template.sh,sha256=c-7J4ItzrctDrbF5Znu8p1d_xIgayC9puhjX3nLMzsk,2273
|
|
4
|
+
slurmray/assets/slurmray_server.sh,sha256=skyyegnCnM-AYF_iePegErEoIlol4HixeogLZ1Akaik,1561
|
|
5
|
+
slurmray/assets/slurmray_server_template.py,sha256=JwX2pH7K9pb10JuRxe3EsjSUp1t3xm0ojEh8H2W2lVo,461
|
|
6
|
+
slurmray/assets/spython_template.py,sha256=kRUvNQs9iCcg0wJLmm9LV0TnbUdlenZMYPr_bZPkXLg,597
|
|
7
|
+
slurmray-3.6.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
+
slurmray-3.6.4.dist-info/METADATA,sha256=WGYJw37eXvWADHttmRwXFUi8bVhVQkDPwrFA0iHLtxs,3338
|
|
9
|
+
slurmray-3.6.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
10
|
+
slurmray-3.6.4.dist-info/RECORD,,
|
slurmray-3.6.2.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
slurmray/RayLauncher.py,sha256=nJvwXVlE0Qf0IJO8zeqPVe6r5-pM140oSVOq_z09-2w,23483
|
|
2
|
-
slurmray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
slurmray/assets/sbatch_template.sh,sha256=c-7J4ItzrctDrbF5Znu8p1d_xIgayC9puhjX3nLMzsk,2273
|
|
4
|
-
slurmray/assets/slurmray_server.sh,sha256=-PpX3AitLVfAYjyNqE3BjtDu5uvk11KoiaCUVgmtcEQ,1506
|
|
5
|
-
slurmray/assets/slurmray_server_template.py,sha256=JwX2pH7K9pb10JuRxe3EsjSUp1t3xm0ojEh8H2W2lVo,461
|
|
6
|
-
slurmray/assets/spython_template.py,sha256=kRUvNQs9iCcg0wJLmm9LV0TnbUdlenZMYPr_bZPkXLg,597
|
|
7
|
-
slurmray-3.6.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
-
slurmray-3.6.2.dist-info/METADATA,sha256=UZdPwVcNWhYoQ0DAii8Nm9Htj8Yx-lkfO8XiViNBWjE,3492
|
|
9
|
-
slurmray-3.6.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
10
|
-
slurmray-3.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|