← all repositories
Lightning-Universe/lightning-transformers

Archived: the wrapper Hugging Face and Lightning outgrew

It bundled Hugging Face Transformers into PyTorch Lightning tasks and data modules, then discovered the frameworks already worked fine together without it.

★608 stars Python ML FrameworksLanguage Models
lightning-transformers
Not currently ranked — collecting fresh signals.
star history

What it does

Lightning-Transformers was a collection of pre-built LightningModule and LightningDataModule wrappers for common Hugging Face tasks like text classification, translation, and language modeling. It also shipped with recipes for large-model inference and DeepSpeed sharding, aiming to hide boilerplate behind task-specific defaults.

The interesting bit

The project effectively argued itself out of existence: the maintainers concluded that Hugging Face Transformers and the Lightning Trainer already integrate cleanly with “no limitations or workarounds,” making the extra abstraction layer more baggage than benefit.

Key highlights

  • Archived in November 2022; repo is now read-only.
  • Provided task-specific modules for NLP jobs like classification, translation, and language modeling.
  • Included built-in support for billion-parameter models via accelerate and DeepSpeed stage-3 strategies.

Caveats

  • Explicitly archived by the maintainers, who note that Transformers and Lightning now work together out of the box without the extra abstractions.
  • Read-only since November 2022, so no updates or bug fixes are forthcoming.

Verdict

Worth a look if you’re maintaining a legacy fork or curious how to structure task-specific Lightning modules, but new projects should simply wire Hugging Face models to a pl.Trainer directly.

Frequently asked

What is Lightning-Universe/lightning-transformers?
It bundled Hugging Face Transformers into PyTorch Lightning tasks and data modules, then discovered the frameworks already worked fine together without it.
Is lightning-transformers open source?
Yes — Lightning-Universe/lightning-transformers is open source, released under the Apache-2.0 license.
What language is lightning-transformers written in?
Lightning-Universe/lightning-transformers is primarily written in Python.
How popular is lightning-transformers?
Lightning-Universe/lightning-transformers has 608 stars on GitHub.
Where can I find lightning-transformers?
Lightning-Universe/lightning-transformers is on GitHub at https://github.com/Lightning-Universe/lightning-transformers.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.