Skip to content

Issues when updating the .gitignore file in run_clm_no_trainer.py #41896

@wwt17

Description

@wwt17

with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:
w+ mode will truncate the file to zero length. Also,
the file cannot be iterated over twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions