SwanLab
Open-source AI training tracking and visualization platform with cloud and self-hosted options for logging, comparing, and sharing ML experiments.
At a Glance
About SwanLab
SwanLab is an AI training analysis and experiment-tracking platform for model training teams, developed by Emotion Machine (Beijing) Technology Co., Ltd. and published as an Apache-2.0 open-source Python project. Researchers add a few lines of code to log metrics and hyperparameters, then view results in a cloud dashboard or a self-hosted deployment.
What It Is
SwanLab is an MLOps-style experiment tracker. A training script calls swanlab.init with a project name and config, then swanlab.log to record metrics. SwanLab renders those records as charts and tables so teams can spot training problems and compare runs. It is installed with pip and authenticated through an API key via swanlab login.
Tracking and Visualization
The platform records scalar metrics, images, audio, text, video, 3D point clouds, and biochemical molecules, and offers line, media, bar, scatter, box, heatmap, pie, and radar charts plus custom ECharts. A text chart renders LLM-generated content with Markdown. In the background it automatically captures logs, hardware, Git repository, Python environment, library list, and run directory. Runs can be resumed to append metrics after completion or interruption. Hardware monitoring covers CPU, memory, and accelerators from NVIDIA, AMD, Huawei Ascend, Cambricon, Kunlunxin, Moore Threads, MetaX, Iluvatar, and Hygon.
Collaboration and Deployment
Experiments sync to shared projects so team members can view each other's runs, share persistent experiment URLs, and work in organization workspaces. Experiment tables allow searching, filtering, and comparing hyperparameters and results. A self-hosted community edition can be deployed with Docker or Kubernetes, and an offline dashboard is available. Plugins send notifications to email, Lark, DingTalk, WeCom, Discord, Slack, and Bark, and a CSV writer is included. OpenAPI and REST API access are documented.
Framework Integrations
The README lists 30+ framework integrations, including PyTorch, Hugging Face Transformers, PyTorch Lightning, LLaMA Factory, MS-Swift, veRL, TRL, Ultralytics, MMEngine, Keras, XGBoost, TensorBoard, Weights & Biases, MLflow, and Ray.
Community Discussions
Be the first to start a conversation about SwanLab
Share your experience with SwanLab, ask questions, or help others learn from your insights.
Pricing
Open Source (Self-hosted)
SwanLab core is open source under Apache License 2.0; supports cloud and self-hosted use.
- Apache License 2.0
- Self-hosted deployment via Docker and Kubernetes
- Experiment tracking and visualization
- Framework integrations
Capabilities
Key Features
- Experiment metric and hyperparameter tracking
- Training visualization with line, media, 3D, molecule, and custom ECharts charts
- LLM text content chart with Markdown rendering
- Automatic logging of terminal logs, hardware, Git, and Python environment
- Hardware monitoring across NVIDIA, AMD, Ascend, Cambricon and other accelerators
- Experiment comparison tables
- Team collaboration and organization workspaces
- Shareable experiment URLs
- Resume runs to append metrics
- Self-hosted deployment with Docker and Kubernetes
- Offline dashboard
- Notification and CSV plugins
- OpenAPI and REST API
