marin  by marin-community

Framework for reproducible foundation model research and development

Created 2 years ago
1,216 stars

Top 31.5% on SourcePulse

GitHubView on GitHub
Project Summary

Marin is an open-source framework designed for the reproducible research and development of foundation models, particularly large language models. It targets researchers and engineers by providing a transparent and auditable workflow, tracking every experimental step from raw data to final model, including failed attempts.

How It Works

Marin structures experiments as a directed acyclic graph (DAG) of steps, similar to a Makefile. Each step represents a distinct operation (e.g., data curation, tokenization, training, evaluation) and can depend on the output of previous steps. This dependency management ensures a reproducible and auditable workflow, allowing users to trace the lineage of their models and understand the impact of each experimental decision.

Quick Start & Requirements

  • Install: pip install marin
  • Prerequisites: Python 3.8+, PyTorch. GPU and CUDA are recommended for larger models.
  • Demo: The README provides a Python script for training a tiny language model on TinyStories.
  • Documentation: Available on ReadTheDocs or in the docs/ folder.

Highlighted Details

  • Enables end-to-end reproducibility for LLM training pipelines, including data processing, tokenization, and evaluation.
  • Supports scaling to large datasets and distributed training across TPUs and multi-node GPUs.
  • Used to train an 8B parameter model that outperforms Llama 3.1 8B.
  • Features a "Datashop" for community data contribution and creation.

Maintenance & Community

  • Active community engagement via Discord.
  • Hosts a "Marin Speedrun" competition for efficient LLM training.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

  • The project is primarily focused on LLM training; broader applicability to other foundation model types is not detailed.
  • While multi-node GPU support is mentioned as upcoming, current primary examples focus on CPU-only or TPU configurations.
Health Check
Last Commit

22 hours ago

Responsiveness

Inactive

Pull Requests (30d)
34
Issues (30d)
14
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by Jiayi Pan Jiayi Pan(Author of SWE-Gym; MTS at xAI), Christian Laforte Christian Laforte(Distinguished Engineer at NVIDIA; Former CTO at Stability AI), and
3 more.

lightning-hydra-template by ashleve

0%
5k
ML experimentation template using PyTorch Lightning + Hydra
Created 5 years ago
Updated 2 months ago
Starred by Shizhe Diao Shizhe Diao(Author of LMFlow; Research Scientist at NVIDIA), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

AI-Scientist by SakanaAI

0%
14k
AI system for automated scientific discovery using LLMs
Created 2 years ago
Updated 8 months ago
Feedback? Help us improve.