Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
Python library for streamlined tracking and management of AI training processes.
pip install swanlab==0.11.0rc2 Copy PIP instructions
一个专业、现代化设计的AI训练分析平台 面向模型训练团队,与50+主流框架集成,与你的实验代码轻松结合
🔥SwanLab 在线版 · 📃 文档 · 报告问题 · 建议反馈 · 更新日志 · 基线社区 · SKILL
中文 / English / 日本語 / Русский
SwanLab 是一款AI训练分析与指标观测平台,面向模型训练团队,提供训练可视化、自动日志记录、超参数记录、实验对比、多人协同等功能,帮助团队快速发现训练问题,加速模型迭代。
在SwanLab上,研究者能基于直观的可视化图表发现训练问题,对比多个实验找到研究灵感,并通过在线网页的分享与基于组织的多人协同训练,打破团队沟通的壁垒,提高组织训练效率。
https://github.com/user-attachments/assets/7965fec4-c8b0-4956-803d-dbf177b44f54
1. 📊 实验指标与超参数跟踪: 极简的代码嵌入您的机器学习 pipeline,跟踪记录训练关键指标
☁️ 支持云端使用(类似Weights & Biases),随时随地查看训练进展。手机看实验的方法
🌸 可视化训练过程: 通过UI界面对实验跟踪数据进行可视化,可以让训练师直观地看到实验每一步的结果,分析指标走势,判断哪些变化导致了模型效果的提升,从而整体性地提升模型迭代效率。
支持的元数据类型:标量指标、图像、音频、文本、视频、3D点云、生物化学分子、Echarts自定义图表...
支持的图表类型:折线图、媒体图(图像、音频、文本、视频)、3D点云、生物化学分子、柱状图、散点图、箱线图、热力图、饼状图、雷达图、自定义图表...
LLM生成内容可视化组件:为大语言模型训练场景打造的文本内容可视化图表,支持Markdown渲染
后台自动记录:日志logging、硬件环境、Git 仓库、Python 环境、Python 库列表、项目运行目录
2. ⚡️ 全面的框架集成: PyTorch、🤗HuggingFace Transformers、PyTorch Lightning、🦙LLaMA Factory、MMDetection、Ultralytics、PaddleDetection、LightGBM、XGBoost、Keras、TensorBoard、Weights&Biases、Swift、XTuner、Stable-Baselines3、Hydra 在内的 30+ 框架
3. 💻 硬件监控: 支持实时记录与监控CPU、NPU(昇腾Ascend)、GPU(英伟达Nvidia)、AMD(AMD ROCm)、MLU(寒武纪Cambricon)、XPU(昆仑芯Kunlunxin)、DCU(海光DCU)、MetaX GPU(沐曦XPU)、Moore Threads GPU(摩尔线程)、Iluvatar GPU(天数智芯)、内存的系统级硬件指标
4. 📦 实验管理: 通过专为训练场景设计的集中式仪表板,通过整体视图速览全局,快速管理多个项目与实验
5. 🆚 比较结果: 通过在线表格与对比图表比较不同实验的超参数和结果,挖掘迭代灵感
6. 👥 在线协作: 您可以与团队进行协作式训练,支持将实验实时同步在一个项目下,您可以在线查看团队的训练记录,基于结果发表看法与建议
7. ✉️ 分享结果: 复制和发送持久的 URL 来共享每个实验,方便地发送给伙伴,或嵌入到在线笔记中
8. 💻 支持自托管: 支持离线环境使用,自托管的社区版同样可以查看仪表盘与管理实验,使用攻略
9. 🔌 插件拓展: 支持通过插件拓展SwanLab的使用场景,比如 飞书通知、Slack通知、CSV记录器等
收藏项目,你将从 GitHub 上无延迟地接收所有发布通知~ ⭐️
pip install swanlab 源码安装 如果你想体验最新的特性,可以使用源码安装。
# 方式一 git clone https://github.com/SwanHubX/SwanLab.git pip install -e . # 方式二 pip install git+https://github.com/SwanHubX/SwanLab.git 离线看板拓展安装 离线看板文档
pip install 'swanlab[dashboard]' 2.登录并获取 API Key
登录账号,在用户设置 > API Key 里复制您的 API Key
swanlab login 出现提示时,输入您的 API Key,按下回车,完成登陆。
import swanlab # 初始化一个新的swanlab实验 swanlab.init( project="my-first-ml", config={"learning-rate": 0.003}, ) # 记录指标 for i in range(10): swanlab.log({"loss": i, "acc": i}) 大功告成!前往SwanLab查看你的第一个 SwanLab 实验。
🔗 从Docker到Kubernetes迁移文档
happy-llm:从零开始的大语言模型原理与实践教程
self-llm:《开源大模型食用指南》针对中国宝宝量身打造的基于Linux环境快速微调(全参数/Lora)、部署国内外开源大模型(LLM)/多模态大模型(MLLM)教程
Minimind:🚀🚀 「大模型」2小时完全从0训练26M的小参数GPT!
unlock-deepseek:DeepSeek 系列工作解读、扩展和复现
Qwen3-SmVL: 将SmolVLM2的视觉头与Qwen3-0.6B模型进行了拼接微调
OPPO/Agent_Foundation_Models: 通过多Agent蒸馏和Agent RL的端到端Agent基础模型。
Tree-GRPO: [ICLR 2026] 树搜索在LLM Agent RL中的应用
FIPO: This code implements the algorithm of FIPO, a value-free RL recipe for eliciting deeper reasoning from a clean base model.
llm-agent-rl-lab: Reproducing and studying RL algorithms for LLM agents, including PPO, GRPO, GSPO, DAPO, OPD and beyond.
Accelerating AlphaZero Training for Connect6 via Behavioral Cloning Initialization and Prior Action Masking in Resource-Constrained Environments
SeePhys Pro: Diagnosing Modality Transfer and Blind-Training Effects in Multimodal RLVR for Physics Reasoning
MemFactory: Unified Inference & Training Framework for Agent Memory
ILL: A Lightweight Large Language Model for Legal and Courtroom Assistance
Retrieval, Reward, and Training Protocols: What Matters in Training Search Agents?
MolAct: An Agentic RL Framework for Molecular Editing and Property Optimization
CQLLM: A Framework for Generating CodeQL Security Vulnerability Detection Code Based on Large Language Model
Animation Needs Attention: A Holistic Approach to Slides Animation Comprehension with Visual-Language Models
Efficient Model Fine-Tuning with LoRA for Biomedical Named Entity Recognition
SpectrumWorld: Artificial Intelligence Foundation for Spectroscopy
CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL
A Joint Classification Method for Traditional Chinese Medicine Diseases and Syndromes Based on BertChinese-RCNNATTN
A Gradient-Norm-Aware Optimizer for Symmetry-Preserving and Stable Deep Learning
TrafficBM: A Dual-Modality Pre-Training Framework for Network Traffic Classification
Using Human Cumulative Prospect Theory to Understand Large Language Models Decision-Making
BiPACE: Bisimulation-Guided Policy Optimization with Action Counterfactual Estimation for LLM Agents
Stable Diffusion文生图微调
Qwen3-SmVL-0.6B多模态模型训练
GLM-4.5-Air-LoRA 及 SwanLab 可视化记录
RAG怎么做?SwanLab文档助手方案开源了
🌟如果你有想收录的教程,欢迎提交PR!
如果你希望记录其他硬件,欢迎提交Issue与PR!
将你最喜欢的框架与 SwanLab 结合使用! 下面是我们已集成的框架列表,欢迎提交 Issue 来反馈你想要集成的框架。
HuggingFace Transformers
Sentence Transformers
HuggingFace Accelerate
欢迎通过插件来拓展SwanLab的功能,以及开放接口将 SwanLab 的团队管理与实验分析功能集成到你的项目,从而增强你的实验管理体验!
Tensorboard vs SwanLab
☁️ 支持在线使用: 通过 SwanLab 可以方便地将训练实验在云端在线同步与保存,便于远程查看训练进展、管理历史项目、分享实验链接、发送实时消息通知、多端看实验等。而 Tensorboard 是一个离线的实验跟踪工具。
💻 持久、集中的仪表板: 无论你在何处训练模型,无论是在本地计算机上、在实验室集群还是在公有云的 GPU 实例中,你的结果都会记录到同一个集中式仪表板中。而使用 TensorBoard 需要花费时间从不同的机器复制和管理 TFEvent 文件。
Weights and Biases vs SwanLab
Weights and Biases 是一个必须联网使用的闭源 MLOps 平台
self-hosted:私有化部署脚本仓库
SwanLab-Dashboard:离线看板仓库,存放了由swanlab watch打开的轻量离线看板的web代码
GitHub Issues:使用 SwanLab 时遇到的错误和问题
如果你喜欢在工作中使用 SwanLab,请将 SwanLab 徽章添加到你的 README 中:
[](your experiment url) [](your experiment url) 更多设计素材:assets
@software{Zeyilin_SwanLab_2023, author = {Zeyi Lin, Shaohong Chen, Kang Li, Qiushan Jiang, Zirui Cai, Kaifang Ji and {The SwanLab team}}, doi = {10.5281/zenodo.11100550}, license = {Apache-2.0}, title = {{SwanLab}}, url = {https://github.com/swanhubx/swanlab}, year = {2023} } 为 SwanLab 做出贡献
本仓库遵循 Apache 2.0 License 开源协议
Released: Nov 30, 2026
Apache-2.0 View SPDX License List
machine learning reproducibility visualization
Development Status 3 - Alpha
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering
Scientific/Engineering :: Artificial Intelligence
Scientific/Engineering :: Visualization
Release files for swanlab 0.11.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distributions (wheels)
Total release size: 58.1 MB
Release files / swanlab-0.11.0rc2.tar.gz
Release files / swanlab-0.11.0rc2-py3-none-win_amd64.whl
Security for swanlab 0.11.0rc2
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
0.11.0rc2 This release
Nov 30, 2026 9 release files No provenance
Nov 27, 2026 9 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 10, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Oct 27, 2026 2 release files No provenance
Oct 9, 2026 2 release files No provenance
Sep 22, 2026 2 release files No provenance
Sep 21, 2026 2 release files No provenance
Sep 1, 2026 2 release files No provenance
Aug 25, 2026 2 release files No provenance
Aug 21, 2026 2 release files No provenance
Sep 18, 2026 2 release files No provenance
Aug 20, 2026 2 release files No provenance
Aug 19, 2026 2 release files No provenance
Aug 13, 2026 2 release files No provenance
Aug 11, 2026 2 release files No provenance
Aug 8, 2026 2 release files No provenance
Aug 7, 2026 2 release files No provenance
Jul 29, 2026 2 release files No provenance
Jul 24, 2026 2 release files No provenance
Jul 16, 2026 2 release files No provenance
Jul 14, 2026 2 release files No provenance
Jun 29, 2026 2 release files No provenance
Jun 16, 2026 2 release files No provenance
Jun 11, 2026 2 release files No provenance
Jun 8, 2026 2 release files No provenance
Jun 5, 2026 2 release files No provenance
Jun 9, 2026 2 release files No provenance
May 18, 2026 2 release files No provenance
May 12, 2026 2 release files No provenance
May 6, 2026 2 release files No provenance
Apr 21, 2026 2 release files No provenance
Apr 9, 2026 2 release files No provenance
Apr 3, 2026 2 release files No provenance
Mar 19, 2026 2 release files No provenance
Mar 8, 2026 2 release files No provenance
Mar 4, 2026 2 release files No provenance
Mar 3, 2026 2 release files No provenance
Feb 6, 2026 2 release files No provenance
Feb 4, 2026 2 release files No provenance
Jan 2, 2026 2 release files No provenance
Dec 19, 2025 2 release files No provenance
Dec 14, 2025 2 release files No provenance
Dec 5, 2025 2 release files No provenance
Nov 17, 2025 2 release files No provenance
Nov 7, 2025 2 release files No provenance
Nov 6, 2025 2 release files No provenance
Oct 24, 2025 2 release files No provenance
Oct 17, 2025 2 release files No provenance
Oct 9, 2025 2 release files No provenance
Sep 12, 2025 2 release files No provenance
Sep 9, 2025 2 release files No provenance
Jul 29, 2025 2 release files No provenance
Jul 17, 2025 2 release files No provenance
Jul 8, 2025 2 release files No provenance
Jul 7, 2025 2 release files No provenance
Jun 18, 2025 2 release files No provenance
Jun 11, 2025 2 release files No provenance
Jun 8, 2025 2 release files No provenance
Jun 5, 2025 2 release files No provenance
Jun 1, 2025 2 release files No provenance
May 25, 2025 2 release files No provenance
May 13, 2025 2 release files No provenance
Apr 26, 2025 2 release files No provenance
Apr 6, 2025 2 release files No provenance
Mar 30, 2025 2 release files No provenance
Mar 21, 2025 2 release files No provenance
Mar 14, 2025 2 release files No provenance
Mar 13, 2025 2 release files No provenance
Mar 12, 2025 2 release files No provenance
Mar 8, 2025 2 release files No provenance
Mar 5, 2025 2 release files No provenance
Mar 4, 2025 2 release files No provenance
Feb 28, 2025 2 release files No provenance
Feb 12, 2025 2 release files No provenance
Feb 3, 2025 2 release files No provenance
Jan 21, 2025 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











