slurmray 3.6.2__tar.gz → 3.6.4__tar.gz

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.

@@ -1,17 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: slurmray
3
- Version: 3.6.2
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: >=3.9,<4.0
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)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "slurmray"
3
- version = "3.6.2"
3
+ version = "3.6.4"
4
4
  description = "SlurmRay is a module for effortlessly distributing tasks on a Slurm cluster using the Ray library. "
5
5
  authors = ["Henri Jamet <henri.jamet@unil.ch>"]
6
6
  license = "Apache License"
@@ -9,7 +9,7 @@ documentation = "https://henri-jamet.vercel.app/cards/documentation/slurm-ray/sl
9
9
  readme = "README.md"
10
10
 
11
11
  [tool.poetry.dependencies]
12
- python = "^3.9"
12
+ python = "3.11.6"
13
13
  dill = "^0.3.7"
14
14
  ray = {extras = ["data", "serve", "train", "tune"], version = "^2.7.1"}
15
15
  pdoc3 = "^0.10.0"
@@ -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.9.13"] + [
68
- mod for mod in modules if mod not in ["gcc", "python/3.9.13"]
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
- lines.append(
453
- "torch==2.1.1 --index-url https://download.pytorch.org/whl/cu121\n"
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("slurmray/RayLauncher.py", "r") as f:
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
- "slurmray/RayLauncher.py"
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.9.13 cuda cudnn
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
File without changes
File without changes
File without changes