Skip to content

Commit f1ee631

Browse files
committed
update
1 parent 6cc4707 commit f1ee631

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

benchmarks/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pandas
22
peft
3+
psutil
34
torchprofile
45
bitsandbytes
56
psycopg2==2.9.9

utils/print_env.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828

2929
print("OS platform:", platform.platform())
3030
print("OS architecture:", platform.machine())
31+
try:
32+
import psutil
33+
34+
vm = psutil.virtual_memory()
35+
total_gb = vm.total / (1024**3)
36+
available_gb = vm.available / (1024**3)
37+
print(f"Total RAM: {total_gb:.2f} GB")
38+
print(f"Available RAM: {available_gb:.2f} GB")
39+
except ImportError:
40+
pass
3141

3242
try:
3343
import torch

0 commit comments

Comments
 (0)