Skip to content

Commit

Permalink
Fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomlago committed Jan 16, 2025
1 parent 15cb1bb commit d5da11a
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions tests/brevitas_examples/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ def run_test_models_run_args(args, model_with_ppl):
float_ppl, quant_ppl, model = validate_args_and_run_main(args)


@pytest.fixture(scope="session", autouse=True)
def set_env():
os.environ["CUDA_VISIBLE_DEVICES"] = "1"


# yapf: disable
@pytest_cases.fixture(
ids=[
Expand Down Expand Up @@ -851,6 +846,8 @@ def test_small_models_rotation_ppl(caplog, rotation_ppl_args_and_ppl):
"nsamples_rot_calibration": 2,
"no_float16": True,
"unknown_args": [
"--learning_rate",
"1.5",
"--max_steps",
"2",
"--per_device_train_batch_size",
Expand All @@ -869,11 +866,10 @@ def test_small_models_rotation_ppl(caplog, rotation_ppl_args_and_ppl):
"rotation_orphan_sink": False,
"rotation_mode": "ort",
"nsamples_rot_calibration": 2,
"max_steps": 2,
"per_device_train_batch_size": 1,
"gradient_accumulation_steps": 1,
"no_float16": True,
"unknown_args": [
"--learning_rate",
"1.5",
"--max_steps",
"2",
"--per_device_train_batch_size",
Expand All @@ -892,11 +888,10 @@ def test_small_models_rotation_ppl(caplog, rotation_ppl_args_and_ppl):
"rotation_orphan_sink": True,
"rotation_mode": "had",
"nsamples_rot_calibration": 2,
"max_steps": 2,
"per_device_train_batch_size": 1,
"gradient_accumulation_steps": 1,
"no_float16": True,
"unknown_args": [
"--learning_rate",
"1.5",
"--max_steps",
"2",
"--per_device_train_batch_size",
Expand All @@ -915,11 +910,10 @@ def test_small_models_rotation_ppl(caplog, rotation_ppl_args_and_ppl):
"rotation_orphan_sink": False,
"rotation_mode": "had",
"nsamples_rot_calibration": 2,
"max_steps": 2,
"per_device_train_batch_size": 1,
"gradient_accumulation_steps": 1,
"no_float16": True,
"unknown_args": [
"--learning_rate",
"1.5",
"--max_steps",
"2",
"--per_device_train_batch_size",
Expand Down

0 comments on commit d5da11a

Please sign in to comment.