Skip to content

Commit fddb33e

Browse files
baogorekclaude
andcommitted
Remove nonpreemptible from GPU functions (Modal does not support it)
Modal rejects nonpreemptible=True on GPU workloads at deploy time. CPU-only functions retain nonpreemptible=True. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 679f3ee commit fddb33e

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

modal_app/remote_calibration_runner.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ def check_volume_package() -> dict:
517517
gpu="T4",
518518
timeout=14400,
519519
volumes={PIPELINE_MOUNT: pipeline_vol},
520-
nonpreemptible=True,
521520
)
522521
def fit_weights_t4(
523522
branch: str = "main",
@@ -553,7 +552,6 @@ def fit_weights_t4(
553552
gpu="A10",
554553
timeout=14400,
555554
volumes={PIPELINE_MOUNT: pipeline_vol},
556-
nonpreemptible=True,
557555
)
558556
def fit_weights_a10(
559557
branch: str = "main",
@@ -589,7 +587,6 @@ def fit_weights_a10(
589587
gpu="A100-40GB",
590588
timeout=14400,
591589
volumes={PIPELINE_MOUNT: pipeline_vol},
592-
nonpreemptible=True,
593590
)
594591
def fit_weights_a100_40(
595592
branch: str = "main",
@@ -625,7 +622,6 @@ def fit_weights_a100_40(
625622
gpu="A100-80GB",
626623
timeout=14400,
627624
volumes={PIPELINE_MOUNT: pipeline_vol},
628-
nonpreemptible=True,
629625
)
630626
def fit_weights_a100_80(
631627
branch: str = "main",
@@ -661,7 +657,6 @@ def fit_weights_a100_80(
661657
gpu="H100",
662658
timeout=14400,
663659
volumes={PIPELINE_MOUNT: pipeline_vol},
664-
nonpreemptible=True,
665660
)
666661
def fit_weights_h100(
667662
branch: str = "main",
@@ -708,7 +703,6 @@ def fit_weights_h100(
708703
gpu="T4",
709704
timeout=14400,
710705
volumes={PIPELINE_MOUNT: pipeline_vol},
711-
nonpreemptible=True,
712706
)
713707
def fit_from_package_t4(
714708
branch: str = "main",
@@ -741,7 +735,6 @@ def fit_from_package_t4(
741735
gpu="A10",
742736
timeout=14400,
743737
volumes={PIPELINE_MOUNT: pipeline_vol},
744-
nonpreemptible=True,
745738
)
746739
def fit_from_package_a10(
747740
branch: str = "main",
@@ -774,7 +767,6 @@ def fit_from_package_a10(
774767
gpu="A100-40GB",
775768
timeout=14400,
776769
volumes={PIPELINE_MOUNT: pipeline_vol},
777-
nonpreemptible=True,
778770
)
779771
def fit_from_package_a100_40(
780772
branch: str = "main",
@@ -807,7 +799,6 @@ def fit_from_package_a100_40(
807799
gpu="A100-80GB",
808800
timeout=14400,
809801
volumes={PIPELINE_MOUNT: pipeline_vol},
810-
nonpreemptible=True,
811802
)
812803
def fit_from_package_a100_80(
813804
branch: str = "main",
@@ -840,7 +831,6 @@ def fit_from_package_a100_80(
840831
gpu="H100",
841832
timeout=14400,
842833
volumes={PIPELINE_MOUNT: pipeline_vol},
843-
nonpreemptible=True,
844834
)
845835
def fit_from_package_h100(
846836
branch: str = "main",

0 commit comments

Comments
 (0)