Skip to content

Commit

Permalink
More corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
metric-space committed Nov 23, 2023
1 parent 14f65c5 commit 55f03ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dalm/pipelines/reading_comprehension_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def pipeline(

dataset = datasets.Dataset.from_list(in_memory_dataset)

dataset.save_to_disk(output_dataset_name)
if not os.path.exists(output_dataset_name):
dataset.save_to_disk(output_dataset_name)

train_generator(
model_name=model_name,
Expand Down
1 change: 0 additions & 1 deletion dalm/training/generator_only/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ def train_generator(
quantization_config=bnb_config,
device_map={"": Accelerator().local_process_index},
trust_remote_code=True,
use_auth_token=True,
)

base_model.config.use_cache = False
Expand Down

0 comments on commit 55f03ef

Please sign in to comment.