Skip to content

Commit

Permalink
Fix bug with passing capture_* args to neptune callback (huggingface#…
Browse files Browse the repository at this point in the history
…29041)

* Fix bug with passing capture_* args to neptune callback

* ruff happy?

* instantiate (frozen)set only once

* code review

* code review 2

* ruff happy?

* code review
  • Loading branch information
AleksanderWWW committed Mar 5, 2024
1 parent fb1c62e commit 8f3f8e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/integrations/integration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,9 @@ def _initialize_run(self, **additional_neptune_kwargs):
self._stop_run_if_exists()

try:
self._run = init_run(**self._init_run_kwargs, **additional_neptune_kwargs)
run_params = additional_neptune_kwargs.copy()
run_params.update(self._init_run_kwargs)
self._run = init_run(**run_params)
self._run_id = self._run["sys/id"].fetch()
except (NeptuneMissingProjectNameException, NeptuneMissingApiTokenException) as e:
raise NeptuneMissingConfiguration() from e
Expand Down

0 comments on commit 8f3f8e6

Please sign in to comment.