Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions edit_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ def get_span(orig, new, editType):

if not flag:
raise RuntimeError(f"wrong editing with the specified edit type:\n original: {orig}\n new: {new}\n, editType: {editType}")

return orig_span, new_span
print("1")
return orig_span, new_span
Binary file added hcI5jr1otBM.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
formatter = (
"%(asctime)s [%(levelname)s] %(filename)s:%(lineno)d || %(message)s"
)
print(logging)
logging.basicConfig(format=formatter, level=logging.INFO)

torch.cuda.empty_cache()
Expand Down Expand Up @@ -42,4 +43,4 @@
world_size = dist.get_world_size()
torch.cuda.set_device(rank)
my_trainer = trainer.Trainer(args, world_size, rank)
my_trainer.train()
my_trainer.train()