Skip to content

Commit

Permalink
Merge pull request #493 from vyom1611/master-2
Browse files Browse the repository at this point in the history
Modal benchmarking script updated to replace deprecated calls
  • Loading branch information
karpathy authored May 29, 2024
2 parents 2db7716 + 062f096 commit 55f3665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/cuda/benchmark_on_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
N_GPUS = int(os.environ.get("N_GPUS", 1))
GPU_MEM = int(os.environ.get("GPU_MEM", 40))
GPU_NAME = os.environ.get("GPU_NAME", "A100")
GPU_CONFIG = GPU_NAME_TO_MODAL_CLASS_MAP[GPU_NAME](count=N_GPUS, memory=GPU_MEM)
GPU_CONFIG = GPU_NAME_TO_MODAL_CLASS_MAP[GPU_NAME](count=N_GPUS, size=str(GPU_MEM)+'GB')

APP_NAME = "llm.c benchmark run"

Expand All @@ -51,7 +51,7 @@
)
)

stub = Stub(APP_NAME)
stub = modal.App(APP_NAME)


def execute_command(command: str):
Expand Down

0 comments on commit 55f3665

Please sign in to comment.