Skip to content

Commit 6f3c99a

Browse files
authored
add ability to connect a neptune.ai run (huggingface#13319)
when `NEPTUNE_RUN_ID` environmetnt variable is set, neptune will log into the previous run with id `NEPTUNE_RUN_ID`
1 parent f4f4e6b commit 6f3c99a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transformers/integrations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ def setup(self, args, state, model):
728728
api_token=os.getenv("NEPTUNE_API_TOKEN"),
729729
mode=os.getenv("NEPTUNE_CONNECTION_MODE", "async"),
730730
name=os.getenv("NEPTUNE_RUN_NAME", None),
731+
run=os.getenv("NEPTUNE_RUN_ID", None),
731732
)
732733
combined_dict = args.to_dict()
733734
if hasattr(model, "config") and model.config is not None:

0 commit comments

Comments
 (0)