Skip to content
Merged
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

## 🌟 最近更新

- 2025.02.05:`swanlab.init`支持嵌套字典,适配Jax框架特性;支持`name`与`notes`参数;

- 2025.01.22:新增`sync_tensorboardX`与`sync_tensorboard_torch`功能,支持与此两种TensorBoard框架同步实验跟踪;

- 2025.01.17:新增`sync_wandb`功能,[文档](https://docs.swanlab.cn/guide_cloud/integration/integration-wandb.html),支持与Weights & Biases实验跟踪同步;大幅改进了日志渲染性能
Expand All @@ -65,8 +67,12 @@

- 2024.12.06:新增对[LightGBM](https://docs.swanlab.cn/guide_cloud/integration/integration-lightgbm.html)、[XGBoost](https://docs.swanlab.cn/guide_cloud/integration/integration-xgboost.html)的集成;提高了对日志记录单行长度的限制。

<details><summary>完整更新日志</summary>

- 2024.11.26:环境选项卡-硬件部分支持识别**华为昇腾NPU**与**鲲鹏CPU**;云厂商部分支持识别青云**基石智算**。

</details>

<br>

## 👋🏻 什么是SwanLab
Expand Down
5 changes: 5 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Supports both cloud/offline usage, integrates with 30+ mainstream frameworks, an

## 🌟 Recent Updates

- 2025.02.05: `swanlab.init` supports nested dictionaries, adapting Jax framework features; supports `name` and `notes` parameters.
- 2025.01.22: Added `sync_tensorboardX` and `sync_tensorboard_torch` features, supporting synchronization of experiment tracking with these two TensorBoard frameworks.

- 2025.01.17: Added `sync_wandb` feature, [docs](https://docs.swanlab.cn/en/guide_cloud/integration/integration-wandb.html), supporting synchronization with Weights & Biases experiment tracking; significantly improved log rendering performance.
Expand All @@ -65,8 +66,12 @@ Supports both cloud/offline usage, integrates with 30+ mainstream frameworks, an

- 2024.12.06: Added integration with [LightGBM](https://docs.swanlab.cn/guide_cloud/integration/integration-lightgbm.html) and [XGBoost](https://docs.swanlab.cn/guide_cloud/integration/integration-xgboost.html); increased the limit for single-line log length.

<details><summary>Full Changelog</summary>

- 2024.11.26: Environment tab - Hardware section now supports identifying **Huawei Ascend NPU** and **Kunpeng CPU**; cloud provider section now supports identifying **QingCloud Jishi Computing**.

</details>

<br>

## 👋🏻 What is SwanLab
Expand Down
6 changes: 6 additions & 0 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

## 🌟 最近の更新

- 2025.02.05:`swanlab.init`はネストされた辞書をサポートし、Jaxフレームワークの特性に適応;`name`と`notes`パラメータをサポート
- 2025.01.22:`sync_tensorboardX`と`sync_tensorboard_torch`機能を追加し、この2つのTensorBoardフレームワークとの実験追跡の同期をサポート

- 2025.01.17:`sync_wandb`機能を追加し、[ドキュメント](https://docs.swanlab.cn/en/guide_cloud/integration/integration-wandb.html)、Weights & Biases実験追跡との同期をサポート;ログレンダリング性能を大幅に最適化
Expand All @@ -66,8 +67,13 @@

- 2024.12.06:[LightGBM](https://docs.swanlab.cn/guide_cloud/integration/integration-lightgbm.html)、[XGBoost](https://docs.swanlab.cn/guide_cloud/integration/integration-xgboost.html)の統合を追加;ログ記録の1行あたりの長さ制限を引き上げ

<details><summary>完全な更新履歴</summary>

- 2024.11.26:環境タブのハードウェアセクションで**華為昇騰NPU**と**鯤鵬CPU**の識別をサポート;クラウドプロバイダーセクションで**青雲基石智算**の識別をサポート

</details>


<br>

## 👋🏻 SwanLabとは
Expand Down
6 changes: 6 additions & 0 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

## 🌟 Последние обновления

- 2025.02.05: `swanlab.init` поддерживает вложенные словари, поддерживает параметры `name` и `notes`.

- 2025.01.22: Добавлена функция `sync_tensorboardX` и `sync_tensorboard_torch`, поддерживающая синхронизацию с этими двумя TensorBoard фреймворками.

- 2025.01.17: Добавлена функция `sync_wandb`, [документация](https://docs.swanlab.cn/en/guide_cloud/integration/integration-wandb.html), поддерживающая синхронизацию с отслеживанием экспериментов Weights & Biases; значительно улучшена производительность рендеринга логов.
Expand All @@ -65,8 +67,12 @@

- 2024.12.06: Добавлена интеграция с [LightGBM](https://docs.swanlab.cn/guide_cloud/integration/integration-lightgbm.html) и [XGBoost](https://docs.swanlab.cn/guide_cloud/integration/integration-xgboost.html); увеличено ограничение на длину строки в логах.

<details><summary>Полный список изменений</summary>

- 2024.11.26: Вкладка "Окружение" — раздел "Оборудование" теперь поддерживает распознавание **Huawei Ascend NPU** и **Kunpeng CPU**; раздел "Облачные провайдеры" поддерживает распознавание **QingCloud**.

</details>

<br>

## 👋🏻 Что такое SwanLab
Expand Down
8 changes: 8 additions & 0 deletions swanlab/data/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ def init(
swanlog.warning("You have already initialized a run, the init function will be ignored")
return get_run()
# ---------------------------------- 一些变量、格式检查 ----------------------------------

# for https://github.com/SwanHubX/SwanLab/issues/809
if experiment_name is None and kwargs.get("name", None) is not None:
experiment_name = kwargs.get("name")
if description is None and kwargs.get("notes", None) is not None:
description = kwargs.get("notes")

# 从文件中加载数据
if load:
load_data = check_load_json_yaml(load, load)
experiment_name = _load_data(load_data, "experiment_name", experiment_name)
Expand Down