We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265f1f2 commit 96449cdCopy full SHA for 96449cd
benchmarks/utils.py
@@ -26,6 +26,7 @@
26
PROMPT = "ghibli style, a fantasy landscape with castles"
27
BASE_PATH = os.getenv("BASE_PATH", ".")
28
TOTAL_GPU_MEMORY = float(os.getenv("TOTAL_GPU_MEMORY", torch.cuda.get_device_properties(0).total_memory / (1024**3)))
29
+DEVICE_NAME = torch.cuda.get_device_name()
30
31
REPO_ID = "diffusers/benchmarks"
32
FINAL_CSV_FILE = "collated_results.csv"
@@ -87,6 +88,7 @@ def generate_csv_dict_model(
87
88
"time (secs)": benchmark_info.time,
89
"memory (gbs)": benchmark_info.memory,
90
"actual_gpu_memory (gbs)": f"{(TOTAL_GPU_MEMORY):.3f}",
91
+ "device": DEVICE_NAME,
92
"github_sha": GITHUB_SHA,
93
**kwargs,
94
}
0 commit comments