TL;DR: Lyra is a decoder-only Transformer architecture designed for constrained hardware, utilizing custom data streaming and VRAM management to train on a single 8GB GPU.
Best for: Developers interested in the mechanics of LLM pretraining and SFT on consumer-grade hardware.
Repository snapshot: ⭐ 1 410 stars · 🍴 145 forks · Python · Apache-2.0
Daily picks: Follow GitHub Open Source on Telegram
What it is
Lyra is a Python-based, decoder-only Transformer architecture designed to democratize the training lifecycle. Unlike enterprise frameworks that demand multi-GPU clusters, Lyra is optimized for constrained hardware, specifically targeting consumer-grade GPUs like the RTX 3060 Ti with 8GB of VRAM. It provides a full-stack experience, including pretraining, supervised fine-tuning (SFT), and terminal-based inference.
How it works
Lyra achieves this efficiency through custom data streaming and aggressive VRAM management.…