Skip to main content

Efficient Large-Scale Distributed Training with Colossal-AI and Lightning AI.

Project description

Lightning ⚡ Colossal-AI

Efficient Large-Scale Distributed Training with Colossal-AI and Lightning AI

lightning PyPI Status PyPI - Python Version PyPI Status Deploy Docs

General checks CI testing Build Status pre-commit.ci status


Installation

pip install -U lightning-colossalai

Usage

Simply set the strategy argument in the Trainer:

import lightning as L

trainer = L.Trainer(strategy="colossalai", precision="16-mixed", devices=...)

For more fine-grained tuning of Colossal-AI's parameters, pass the strategy object to the Trainer:

import lightning as L
from lightning_colossalai import ColossalAIStrategy

strategy = ColossalAIStrategy(...)
trainer = L.Trainer(strategy=strategy, precision="16-mixed", devices=...)

Find all configuration options in the docs!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightning-colossalai-0.1.0.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

lightning_colossalai-0.1.0-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page