Skip to content

Commit 4784b8b

Browse files
committed
fixes
1 parent befdd9e commit 4784b8b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
run: |
3838
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3939
python -m uv pip install -e [quality,test]
40-
python -m uv pip install pandas peft bitsandbytes torchprofile
40+
python -m uv pip install pandas peft torchprofile
41+
# Temporary.
42+
pip install --force-reinstall https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl
4143
- name: Environment
4244
run: |
4345
python utils/print_env.py

benchmarks/benchmarking_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def post_benchmark(self, model):
105105
@torch.no_grad()
106106
def run_benchmark(self, scenario: BenchmarkScenario):
107107
# 0) Basic stats
108+
logger.info(f"Running scenario: {scenario.name}.")
108109
model = model_init_fn(scenario.model_cls, **scenario.model_init_kwargs)
109110
num_params = round(calculate_params(model) / 1e6, 2)
110111
flops = round(calculate_flops(model, input_dict=scenario.get_model_input_dict()) / 1e6, 2)

benchmarks/run_all.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ def run_scripts():
4444
if file != "benchmarking_utils.py":
4545
logger.info(f"****** Running file: {file} ******")
4646
command = f"python {file}"
47-
run_command(command.split())
47+
try:
48+
run_command(command)
49+
except SubprocessCallException as e:
50+
logger.error(f"Error running {file}: {e}")
51+
continue
4852

4953

5054
def merge_csvs():

0 commit comments

Comments
 (0)