Skip to content

Commit bc83065

Browse files
committed
rename infer_test_set for greater clarity
1 parent 557719f commit bc83065

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llmtune/cli/toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def run_one_experiment(config: Config, config_path: str) -> None:
6868
results_file_path = join(dir_helper.save_paths.results, "results.csv")
6969
if not exists(results_path) or exists(results_file_path):
7070
inference_runner = LoRAInference(test, test_column, config, dir_helper)
71-
inference_runner.infer_all()
71+
inference_runner.infer_test_set()
7272
RichUI.after_inference(results_path)
7373
else:
7474
RichUI.inference_found(results_path)

llmtune/inference/generics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ def infer_one(self, prompt: str):
77
pass
88

99
@abstractmethod
10-
def infer_all(self):
10+
def infer_test_set(self):
1111
pass

llmtune/inference/lora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _get_merged_model(self, weights_path: str):
6464

6565
return model, tokenizer
6666

67-
def infer_all(self):
67+
def infer_test_set(self):
6868
results = []
6969
prompts = self.test_dataset["formatted_prompt"]
7070
labels = self.test_dataset[self.label_column]

0 commit comments

Comments
 (0)