Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2024
1 parent cc9bb6a commit de19d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ludwig/utils/batch_size_tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

TOTAL_STEPS = 5


@DeveloperAPI
class BatchSizeEvaluator(ABC):
def select_best_batch_size(
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_tests/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ def test_llm_encoding(llm_encoder_config, adapter, quantization, tmpdir):
model = LudwigModel(config)
model.train(dataset=dataset_path, output_directory=str(tmpdir))


def test_llm_batch_size_tuning():
dataset = pd.DataFrame({"instruction": ["a"] * 100, "output": ["a"] * 100})
config = yaml.safe_load(
Expand Down Expand Up @@ -1341,4 +1342,4 @@ def test_llm_used_tokens(tmpdir):
"4": 0,
"5": 204,
"6": 0,
}
}

0 comments on commit de19d8c

Please sign in to comment.