expt-logger 0.1.0.dev20__tar.gz → 0.1.0.dev21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/PKG-INFO +1 -1
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/pyproject.toml +1 -1
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/run.py +6 -2
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/.gitignore +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/.pre-commit-config.yaml +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/DEVELOPMENT.md +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/README.md +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/__init__.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/buffer.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/client.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/config.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/env.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/exceptions.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/py.typed +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/types.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/src/expt_logger/validation.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/conftest.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_buffer.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_client.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_client_integration.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_config.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_env.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_exceptions.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_global_api.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_integration_e2e.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_run.py +0 -0
- {expt_logger-0.1.0.dev20 → expt_logger-0.1.0.dev21}/tests/test_validation.py +0 -0
|
@@ -82,7 +82,9 @@ class Run:
|
|
|
82
82
|
resolved_experiment_id = get_experiment_id(experiment_id, is_main_process=False)
|
|
83
83
|
if resolved_experiment_id is not None:
|
|
84
84
|
self._experiment_id = resolved_experiment_id
|
|
85
|
-
|
|
85
|
+
# Do not set the config if already attached to an experiment to avoid
|
|
86
|
+
# overwriting existing settings
|
|
87
|
+
self._validate_and_attach_experiment()
|
|
86
88
|
logger.info(
|
|
87
89
|
f"[expt_logger] Attached to experiment ID: {self._experiment_id} (subprocess)"
|
|
88
90
|
)
|
|
@@ -305,7 +307,9 @@ class Run:
|
|
|
305
307
|
try:
|
|
306
308
|
self._queue.put_nowait(("log_environment", env_cmd))
|
|
307
309
|
except Full:
|
|
308
|
-
logger.warning(
|
|
310
|
+
logger.warning(
|
|
311
|
+
f"Command queue full, dropping environment log for rollout: {rollout_id}"
|
|
312
|
+
)
|
|
309
313
|
|
|
310
314
|
def log_error(
|
|
311
315
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|