Description
Lyra is a compact 326M-parameter decoder-only Transformer model designed and trained from scratch on a dataset of 6.4 billion tokens. Developed to run on accessible hardware, the entire training process was executed using a single RTX 3060 Ti graphics card, making it a valuable resource for researchers and developers interested in efficient small-scale language model training.
Read More
The repository provides the complete end-to-end pipeline needed to work with the model, spanning data preparation, pretraining, supervised fine-tuning (SFT), and inference generation. Users can examine the implementation details across multiple Python scripts that handle training routines, evaluation, dataset parsing, and text generation.
Key components of the codebase include the core model architecture definition, data processing utilities, pretraining execution scripts, instruction tuning scripts, and inference generation tools. Documentation is also included within the repository to explain the underlying architecture decisions and guide users through the implementation.
Lyra is suited for students, hobbyists, and AI researchers who want to study, reproduce, or build upon a complete language model training pipeline without requiring large-scale enterprise clusters. By operating within consumer-grade hardware constraints, it demonstrates practical approaches to training custom Transformers from the ground up.
While the model offers a complete learning and experimentation framework, users should note that smaller 326M-parameter models have inherent limitations in broad zero-shot generalization compared to massive frontier models, requiring task-specific fine-tuning for optimal performance.
- CategoryAI Models & LLMs
- Pricing ModelOpen source
- DeploymentSelf-hosted
- PlatformsWeb
Lyra's Core Features
326M-parameter decoder-only Transformer architecture
Trained from scratch on 6.4 billion tokens
Trained using a single RTX 3060 Ti consumer GPU
Includes complete pretraining pipeline
Includes supervised fine-tuning (SFT) pipeline
Includes inference generation pipeline
Modular Python codebase for model definition and data processing
Architectural documentation included
Getting Started with Lyra
Clone repository: Download or clone the Lyra repository from GitHub to your local machine
Install dependencies: Set up your Python environment and install required libraries for model training and inference
Configure data: Prepare and format your pretraining and supervised fine-tuning datasets using the provided data utilities
Execute training: Run the pretraining and instruction tuning scripts to train the model
Run inference: Use the generation script to test text output and evaluate model performance
Lyra's Use Cases
- Model Pretraining
- Supervised Fine-Tuning
- Text Generation
- Educational Research
- Consumer Hardware AI








