swanlab local
bash
swanlab localIntroduction
Quickly set SwanLab to local mode in the command line.
Priority
SwanLab provides three ways to set the local mode:
- Command line
bash
swanlab local- Environment variable
bash
export SWANLAB_MODE=local- Code
python
swanlab.init(mode="local")The priority order is: Code > Environment variable > Command line.
Set to other modes
Cloud mode:
bash
swanlab onlineDisabled mode:
bash
swanlab disabledOffline mode:
bash
swanlab offline