Skip to content

Commit

Permalink
remove iterable dataset from example script
Browse files Browse the repository at this point in the history
Signed-off-by: Alex-Brooks <[email protected]>
  • Loading branch information
alex-jw-brooks committed Sep 12, 2023
1 parent 8f7012f commit 6648036
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/run_fine_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,7 @@ def register_common_arguments(subparser: argparse.ArgumentParser) -> None:
help="Run inference using TGIS. NOTE: This involves saving and reloading model in TGIS container",
action="store_true",
)
subparser.add_argument(
"--iterable_dataset",
help="Enable evaluation on trained model",
action="store_true",
)


def validate_common_args(args: argparse.Namespace):
"""Validates common arguments to ensure values make sense; here, we only validate things that
Expand Down Expand Up @@ -231,7 +227,6 @@ def show_experiment_configuration(args, dataset_info, model_type) -> None:
"- Enable evaluation: [{}]".format(args.evaluate),
"- Evaluation metrics: [{}]".format(args.metrics),
"- Torch dtype to use for training: [{}]".format(args.torch_dtype),
"- Using iterable dataset: [{}]".format(args.iterable_dataset)
]
# Log and sleep for a few seconds in case people actually want to read this...
print_colored("\n".join([print_str for print_str in print_strs if print_str]))
Expand Down Expand Up @@ -334,7 +329,6 @@ def export_model_preds(preds_file, predictions, validation_stream):
batch_size=args.batch_size,
accumulate_steps=args.accumulate_steps,
num_epochs=args.num_epochs,
use_iterable_dataset=args.iterable_dataset,
)

print_colored("[Training Complete]")
Expand Down

0 comments on commit 6648036

Please sign in to comment.