You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: support overwrite metric
* fix: overwrite existing if explicitly set step
* feat: support overwrite under any circumstance
* fix: step auto increment
* Support metric overwrite and preserve epochs
Allow duplicated steps to overwrite existing metric entries while preserving the original epoch mapping. Key changes: add metric_overwrite flag to MetricInfo, maintain per-key _step_epochs and _step_summary_values in SwanLabKey, rebuild summaries on overwrite, and update in-memory collections to replace existing step entries. LocalRunCallback now rewrites log slice files when overwriting (helper _rewrite_metric_file), and several docstrings/log levels updated to reflect overwrite semantics. Tests updated to assert overwrite behavior and epoch preservation.
* fix: memory reduce
* chore: update warning
* refactor: rebuild by step
* feat: add parallel run support and update run_id validation (#1491)
* Add parallel run support and update run_id validation
Introduce a parallel run option and related env var, propagate slug usage, and relax run_id validation:
- Add a `parallel` parameter to SwanLabInitializer (and SWANLAB_RUN_PARALLEL env) to enable shared parallel runs; when enabled it forces mode='cloud', resume='allow', and generates an id if missing.
- Load `parallel` from config/env and validate it during initialization; minor warning/formatting tweaks.
- Add ExperimentInfo.slug property and use it in Client.web_exp_url to prefer exp.slug over exp_id when available.
- Update run_id validation: allow lengths 1–64 and disallow characters '/ \ # ? % :', with corresponding updates to tests.
- Add missing import (random) required for id generation.
Tests updated to reflect new run_id rules and additional valid/invalid cases.
* Update sdk.py
* Update sdk.py
* feat: support overwrite metric
* fix: overwrite existing if explicitly set step
* feat: support overwrite under any circumstance
* fix: step auto increment
* Support metric overwrite and preserve epochs
Allow duplicated steps to overwrite existing metric entries while preserving the original epoch mapping. Key changes: add metric_overwrite flag to MetricInfo, maintain per-key _step_epochs and _step_summary_values in SwanLabKey, rebuild summaries on overwrite, and update in-memory collections to replace existing step entries. LocalRunCallback now rewrites log slice files when overwriting (helper _rewrite_metric_file), and several docstrings/log levels updated to reflect overwrite semantics. Tests updated to assert overwrite behavior and epoch preservation.
* fix: memory reduce
* chore: update warning
* refactor: rebuild by step
---------
Co-authored-by: Kang Li <79990647+SAKURA-CAT@users.noreply.github.com>
0 commit comments