Skip to content

Commit

Permalink
speed up blender with L40S
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye committed Dec 20, 2024
1 parent cc64ef6 commit 287b287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 06_gpu_and_ml/blender/blender_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@


@app.function(
gpu="A10G" if WITH_GPU else None,
gpu="L40S" if WITH_GPU else None,
# default limits on Modal free tier
concurrency_limit=10 if WITH_GPU else 100,
image=rendering_image,
Expand Down Expand Up @@ -174,8 +174,8 @@ def combine(frames_bytes: list[bytes], fps: int = FPS) -> bytes:

# The bytes for the video come back to our local machine, and we write them to a file.

# The whole rendering process (for 4 seconds of 1080p 60 FPS video) takes about five minutes to run on 10 A10G GPUs,
# with a per-frame latency of about 10 seconds, and about five minutes to run on 100 CPUs, with a per-frame latency of about one minute.
# The whole rendering process (for four seconds of 1080p 60 FPS video) takes about three minutes to run on 10 L40S GPUs,
# with a per-frame latency of about six seconds, and about five minutes to run on 100 CPUs, with a per-frame latency of about one minute.


@app.local_entrypoint()
Expand Down

0 comments on commit 287b287

Please sign in to comment.