File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- import os
2-
31import pandas as pd
4- import torch
52from huggingface_hub import hf_hub_download , upload_file
63from 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-
166REPO_ID = "diffusers/benchmarks"
177
188
You can’t perform that action at this time.
0 commit comments