Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.22 KB

GETTING_STARTED.md

File metadata and controls

40 lines (26 loc) · 1.22 KB

Getting Started

This document provides a brief orientation to the code and instructions for installation.

Projects

We have two ongoing projects organized into separate source directories

  • columnformers: Introduces the "Columnformer" ViT architecture which consists of a single ViT block with untied weights across token positions and recursive unrolling (i.e. depthwise weight sharing) similar to the Universal Transformer.

  • topomoe: Introduces the Topographic Mixture-of-Experts (TopoMoE) ViT architecture. Each block consists of one or more experts, each of which is assigned to an area of the patch grid.

Installation

To get started working with the code, you can fork the repo and install the projects in a local environment:

python3 -m venv .venv
source .venv/bin/activate

pip install -U pip
pip install -r requirements.txt

pip install -e ./columnformers
pip install -e ./topomoe

If you want to contribute changes, please also install the pre-commit hooks

pre-commit install