Skip to content

Commit

Permalink
load gcc module on jasmin
Browse files Browse the repository at this point in the history
so version of GCC is compatible with PyTorch (I think) and so can also re-enable model imports in predict.py
  • Loading branch information
henryaddison committed Aug 5, 2024
1 parent 9777319 commit 0b641f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bin/jasmin/lotus-sampling-wrapper
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Wrapper script around commands for training a model to queue on LOTUS on JASMIN

module use gcc
module load gcc

source ~/.bashrc
mamba activate mv-mlde
Expand Down
2 changes: 2 additions & 0 deletions bin/jasmin/lotus-wrapper
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Wrapper script around commands for training a model to queue on LOTUS on JASMIN

module load gcc

source ~/.bashrc
mamba activate mv-mlde

Expand Down
18 changes: 9 additions & 9 deletions bin/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
import ml_downscaling_emulator.score_sde_pytorch.models as models # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import utils as mutils

# from ml_downscaling_emulator.score_sde_pytorch.models import cncsnpp # noqa: F401
# from ml_downscaling_emulator.score_sde_pytorch.models import cunet # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import cncsnpp # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import cunet # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import det_cunet # noqa: F401

# from ml_downscaling_emulator.score_sde_pytorch.models import ( # noqa: F401
# layerspp, # noqa: F401
# ) # noqa: F401
# from ml_downscaling_emulator.score_sde_pytorch.models import layers # noqa: F401
# from ml_downscaling_emulator.score_sde_pytorch.models import ( # noqa: F401
# normalization, # noqa: F401
# ) # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import ( # noqa: F401
layerspp, # noqa: F401
) # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import layers # noqa: F401
from ml_downscaling_emulator.score_sde_pytorch.models import ( # noqa: F401
normalization, # noqa: F401
) # noqa: F401
import ml_downscaling_emulator.score_sde_pytorch.sampling as sampling

from ml_downscaling_emulator.score_sde_pytorch.sde_lib import (
Expand Down

0 comments on commit 0b641f5

Please sign in to comment.