aburzio-nv commited on
Commit
0fd8007
·
verified ·
1 Parent(s): 3e7d04d

Cap Blackwell GPU quota reservation at 120 seconds after duration factor

Browse files
Files changed (2) hide show
  1. README.md +5 -0
  2. src/dvlt/scripts/gradio_demo.py +3 -2
README.md CHANGED
@@ -24,6 +24,11 @@ Displayed throughput FPS is input frame count divided by network forward seconds
24
  Visualization-only changes retain the last timing; cached examples do not
25
  run the network or display a newly measured time.
26
 
 
 
 
 
 
27
  The deployed Space uses **Public** visibility. The app and its source repository
28
  are publicly accessible. Visibility is a Space setting, not controlled by this README.
29
 
 
24
  Visualization-only changes retain the last timing; cached examples do not
25
  run the network or display a newly measured time.
26
 
27
+ Reconstruction declares an 80-second ZeroGPU function duration. The current
28
+ Blackwell hardware applies a 1.5x duration factor, giving a 120-second quota
29
+ reservation. Visualization updates declare 60 seconds (90 quota seconds).
30
+ The visitor's remaining quota must cover the reservation before execution.
31
+
32
  The deployed Space uses **Public** visibility. The app and its source repository
33
  are publicly accessible. Visibility is a Space setting, not controlled by this README.
34
 
src/dvlt/scripts/gradio_demo.py CHANGED
@@ -627,8 +627,9 @@ def build_app(
627
  if os.getenv("SPACES_ZERO_GPU"):
628
  import spaces
629
 
630
- _run = spaces.GPU(duration=120)(_run)
631
- _on_model_change = spaces.GPU(duration=120)(_on_model_change)
 
632
  _update_viz = spaces.GPU(duration=60)(_update_viz)
633
 
634
  with gr.Blocks(
 
627
  if os.getenv("SPACES_ZERO_GPU"):
628
  import spaces
629
 
630
+ # Blackwell ZeroGPU applies a 1.5x quota factor: 80s reserves 120s.
631
+ _run = spaces.GPU(duration=80)(_run)
632
+ _on_model_change = spaces.GPU(duration=80)(_on_model_change)
633
  _update_viz = spaces.GPU(duration=60)(_update_viz)
634
 
635
  with gr.Blocks(