Skip to content
The AI Database
Screenshot of Pico

Pico

www.picolm.io

Pico is a lightweight open toolkit for training and analyzing language models, built around the pico-train and pico-analyze libraries. It provides a model suite from 11 million to 570 million parameters and tools for studying learning dynamics such as convergence rates, effective rank and gradient magnitudes.

Visit website (opens in a new tab)

At a glance

Pico: A Lightweight Framework for Studying Learning Dynamics

Overview

Pico is a lightweight and efficient toolkit designed to facilitate the training and analysis of language models, thereby demystifying how these models learn. Its infrastructure is built around two core libraries: pico-train for model training and pico-analyze for in-depth analysis. These libraries work seamlessly together, providing researchers with a cohesive environment to experiment with and understand language models across various scales.

Key Features

Training Made Easy with pico-train

The pico-train library simplifies the model training process, allowing researchers to engage in complex experiments without getting bogged down by implementation details. Key features include:

  • Versatility in Model Sizes: Researchers can train models ranging from 1 million to 1 billion parameters, making it feasible to explore different training paradigms.

  • Advanced Checkpointing: The framework retains access to model activations, gradients, and other detailed information throughout the training process, which is particularly useful for mechanistic interpretability research.

  • Effortless Retraining: With a modular codebase, users can easily modify and retrain the entire model suite, adapting training paradigms to their needs.

  • Built on PyTorch Lightning: Leveraging PyTorch Lightning allows for efficient, scalable training while minimizing boilerplate code.

  • Minimal Dependencies: Designed to be lightweight, pico-train has only essential dependencies, making installation and modification straightforward.

  • Research Orientation: The framework is specifically tailored for researchers, providing a flexible toolset ideal for academic exploration and experimentation.

Learning Dynamics with pico-analyze

The pico-analyze library offers robust tools for capturing and analyzing training metrics, giving insights into the learning dynamics of models. Some of the notable features include:

  • Convergence Rates: Users can compute layer convergence rates across different model sizes by utilizing automatically stored activation checkpoints.

  • Effective Rank Analysis: This feature allows researchers to analyze the dimensional utilization across layers, helping identify complexity distribution and potential bottlenecks.

  • Gradient Magnitude Tracking: By monitoring gradient magnitudes throughout the training process, users can gain insights into optimization dynamics and identify potential instabilities.

  • Model Sparsity Measurement: pico-analyze can measure the percentage of near-zero weights in models, aiding in understanding pruning potential and overall model efficiency.

Utilizing checkpoints created by pico-train, pico-analyze enables researchers to extract critical insights about model behavior throughout training, which can inform architectural enhancements and optimization strategies.

The Pico Model Suite

Pico includes a suite of language models, specifically the pico-decoder family, which are trained on the Dolma dataset. These models vary in size, and all are trained using the same methodology, with only the scale differing. The following models make up the suite:

  • pico-tiny: 11 million parameters trained on 400 billion tokens.
  • pico-small: 65 million parameters trained on the same dataset.
  • pico-medium: 181 million parameters.
  • pico-large: 570 million parameters.
  • pico-xl: Coming soon, featuring 1 billion parameters.

Each model is accompanied by rich training checkpoints, enhancing interpretability research.

Furthermore, the Dolma dataset used for training is pre-processed, tokenized, and prepared for immediate use, requiring minimal storage space (only 78MB).

Research Utilization

Pico has been instrumental in research that investigates learning dynamics in language models. Some notable papers utilizing the Pico framework include:

  1. Tending Towards Stability: Convergence Challenges in Small Language Models

    • Key Findings: Larger models stabilize faster during training, while smaller models exhibit slower convergence patterns. The effective rank of parameters was found to correlate with layer convergence.
  2. Mitigating Frequency Bias and Anisotropy in Language Models

    • Key Findings: The study highlighted the strong frequency bias prevalent during pre-training, with model representations clustering in high-dimensional cones.

Through these research efforts, Pico facilitates a deeper understanding of how language models learn, offering insights that can drive further advancements in the field.

Conclusion

Pico stands out as a specialized framework for those looking to delve into the complexities of language model training and analysis. Its dual library system, encompassing both training and analysis capabilities, makes it particularly valuable for researchers who aim to examine and innovate within the realm of machine learning. The simplicity and effectiveness of the framework ensure that academic exploration remains focused on the research questions at hand, rather than on technical intricacies. With support for wide-ranging model sizes and in-depth analysis tools, Pico is an essential resource for anyone interested in the dynamics of learning in language models.

Ready to try it? Visit www.picolm.io (opens in a new tab)

  • Screenshot of Tinker

    Tinker

    thinkingmachines.ai
    Category
    Development Tools
    What it does
    Tinker is a training API from Thinking Machines Lab for fine-tuning machine learning models, including open-source models such as Qwen, Llama, GPT-OSS and DeepSeek. It exposes functions for forward and backward passes, optimizer steps, sampling and saving training state, and uses LoRA adapters.
  • Screenshot of Prime Intellect

    Prime Intellect

    primeintellect.ai
    Category
    Development Tools
    What it does
    Prime Intellect is a platform that aggregates GPU compute across data centers for training and running machine learning models, with single-node and multi-node cluster reservations. It also runs decentralized training projects such as INTELLECT-1 and INTELLECT-2 and hosts reinforcement learning environments.
  • Screenshot of Helicone

    Helicone

    helicone.ai
    Category
    Development Tools
    What it does
    Helicone is an open-source platform for logging, monitoring and debugging applications built on large language models. It provides a dashboard for tracking usage, performance metrics and debugging logs in real time.
  • Screenshot of Latitude

    Latitude

    latitude.so
    Category
    Development Tools
    What it does
    Latitude is an open-source platform for developing and deploying large language model features through prompt engineering. It lets domain experts and engineers collaborate on prompts, testing and production deployment of LLM applications.