Skip to content

Commit befdd9e

Browse files
committed
remove total gpu memory
1 parent 41f79a0 commit befdd9e

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
HF_TOKEN: ${{ secrets.DIFFUSERS_BOT_TOKEN }}
4747
BASE_PATH: benchmark_outputs
4848
run: |
49-
export TOTAL_GPU_MEMORY=$(python -c "import torch; print(torch.cuda.get_device_properties(0).total_memory / (1024**3))")
5049
cd benchmarks && python run_all.py && python push_results.py
5150
mkdir ${BASE_PATH} && mv *.csv ${BASE_PATH}
5251

benchmarks/push_results.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
1-
import os
2-
31
import pandas as pd
4-
import torch
52
from huggingface_hub import hf_hub_download, upload_file
63
from huggingface_hub.utils import EntryNotFoundError
74

85

9-
if torch.cuda.is_available():
10-
TOTAL_GPU_MEMORY = float(
11-
os.getenv("TOTAL_GPU_MEMORY", torch.cuda.get_device_properties(0).total_memory / (1024**3))
12-
)
13-
else:
14-
raise
15-
166
REPO_ID = "diffusers/benchmarks"
177

188

0 commit comments

Comments
 (0)