Skip to content

Commit

Permalink
move code block below title
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye committed Sep 26, 2024
1 parent 80dbfdd commit 36c8d35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 06_gpu_and_ml/gpu_fallbacks.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import subprocess

import modal

app = modal.App("example-gpu-fallbacks")

# # Set "fallback" GPUs
#
# GPU availabilities on Modal can fluctuate, especially for
Expand All @@ -16,6 +10,12 @@
#
# The code below demonstrates the usage of the `gpu` parameter with a list of GPUs.

import subprocess

import modal

app = modal.App("example-gpu-fallbacks")


@app.function(
gpu=["h100", "a100", "any"], # "any" means any of L4, A10, or T4
Expand Down

0 comments on commit 36c8d35

Please sign in to comment.