Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Lyra

Lyra is a 326M-parameter decoder-only Transformer model trained from scratch on 6.4 billion tokens using a single RTX 3060 Ti GPU. The open-source GitHub repository provides a comprehensive pipeline covering pretraining, supervised fine-tuning, and inference capabilities for custom language model development.

View Repository
Share
View Repository
Share

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

  • 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

  1. Clone repository: Download or clone the Lyra repository from GitHub to your local machine

  2. Install dependencies: Set up your Python environment and install required libraries for model training and inference

  3. Configure data: Prepare and format your pretraining and supervised fine-tuning datasets using the provided data utilities

  4. Execute training: Run the pretraining and instruction tuning scripts to train the model

  5. Run inference: Use the generation script to test text output and evaluate model performance

  • Model Pretraining
  • Supervised Fine-Tuning
  • Text Generation
  • Educational Research
  • Consumer Hardware AI

Lyra Reviews

Loading...

Popular AI Tools Like Lyra

nanoGPT

AI GitHub Repos

nanoGPT is a minimalist, high-performance GitHub repository for training and fine-tuning medium-sized GPT models. It offers a simple, readable codebase for researchers and…

AI Models & LLMs
View Tool

AI GitHub Repos

Minimalist, high-performance GitHub repository for training and fine-tuning medium-sized GPT models. It offers a simple, readable codebase for researchers and…nanoGPT is a minimalist, high-performance GitHub repository for training and fine-tuning medium-sized GPT models. It offers a simple, readable codebase for researchers and…

FeaturedAI Models & LLMs
See the Top 250 AI GitHub Repos

Megatron-LM

AI GitHub Repos

Megatron-LM is a research project by NVIDIA focused on training transformer models at scale. It aims to enhance the efficiency and scalability of large language models, making…

AI Models & LLMs
View Tool

AI GitHub Repos

Research project by NVIDIA focused on training transformer models at scale. It aims to enhance the efficiency and scalability of large language models, making…Megatron-LM is a research project by NVIDIA focused on training transformer models at scale. It aims to enhance the efficiency and scalability of large language models, making…

AI Models & LLMs
See the Top 250 AI GitHub Repos

EleutherAI GPT-NeoX

AI GitHub Repos

EleutherAI GPT-NeoX is an open-source implementation of model parallel autoregressive transformers on GPUs. It leverages the Megatron and DeepSpeed libraries to facilitate…

AI Models & LLMs
View Tool

AI GitHub Repos

Open-source implementation of model parallel autoregressive transformers on GPUs. It leverages the Megatron and DeepSpeed libraries to facilitate…EleutherAI GPT-NeoX is an open-source implementation of model parallel autoregressive transformers on GPUs. It leverages the Megatron and DeepSpeed libraries to facilitate…

AI Models & LLMs
See the Top 250 AI GitHub Repos

ConvBERT

AI GitHub Repos

ConvBERT is an open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…

AI Models & LLMs
View Tool

AI GitHub Repos

Open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…ConvBERT is an open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…

AI Models & LLMs
See the Top 250 AI GitHub Repos

TorchTitan

AI GitHub Repos

TorchTitan is a PyTorch-native platform designed for training generative AI models. It provides a robust framework for developing and optimizing large-scale AI projects,…

Machine Learning Platforms
View Tool

AI GitHub Repos

PyTorch-native platform designed for training generative AI models. It provides a robust framework for developing and optimizing large-scale AI projects,…TorchTitan is a PyTorch-native platform designed for training generative AI models. It provides a robust framework for developing and optimizing large-scale AI projects,…

Machine Learning Platforms
See the Top 250 AI GitHub Repos

Soup

AI GitHub Repos

Soup is a GitHub repository that enables the fine-tuning of large language models (LLMs) using a single YAML file. It utilizes layer streaming to train an 8 billion parameter…

MLOps & Model Deployment
View Tool

AI GitHub Repos

GitHub repository that enables the fine-tuning of large language models (LLMs) using a single YAML file. It utilizes layer streaming to train an 8 billion parameter…Soup is a GitHub repository that enables the fine-tuning of large language models (LLMs) using a single YAML file. It utilizes layer streaming to train an 8 billion parameter…

MLOps & Model Deployment
See the Top 250 AI GitHub Repos

Train LLM from Scratch

AI GitHub Repos

Train LLM from Scratch provides a comprehensive guide to training your own large language model. It covers everything from data acquisition to text generation, making it an…

AI Models & LLMs
View Tool

AI GitHub Repos

Provides a comprehensive guide to training your own large language model. It covers everything from data acquisition to text generation, making it an…Train LLM from Scratch provides a comprehensive guide to training your own large language model. It covers everything from data acquisition to text generation, making it an…

AI Models & LLMs
See the Top 250 AI GitHub Repos

AirLLM

AI GitHub Repos

AirLLM is a GitHub project that enables 70 billion parameter inference using a single 4GB GPU. It is designed to optimize large language model performance on limited hardware,…

MLOps & Model Deployment

Ranked #79 in Machine Learning & Data Science

View Tool

AI GitHub Repos

GitHub project that enables 70 billion parameter inference using a single 4GB GPU. It is designed to optimize large language model performance on limited hardware,…AirLLM is a GitHub project that enables 70 billion parameter inference using a single 4GB GPU. It is designed to optimize large language model performance on limited hardware,…

MLOps & Model Deployment
Ranked #79 in Machine Learning & Data Science
1 of 8