Skip to content
nschaettiPublic

About

The simplest, fastest repository for training/finetuning GPTs on board games

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorldLab

Research code for world models, from autoregressive board-game transformers to joint-embedding predictive architectures.

  • LeJEPA lives in worldlab.nn. The reproduction guide covers pretraining, linear probes, fine-tuning and experiment matrices.
  • LeWorldModel adds action-conditioned latent dynamics and planning. See the reproduction guide for training, control and physical diagnostics.
  • Platonic Representation Hypothesis compares independently trained vision and text representations. See the PRH experiment guide.
  • BoardGPT lives in worldlab.board, with its PyTorch models in worldlab.nn. See the training configuration and interpretability toolkit.

Installation

conda (recommended)

conda env create -f environment.yml
conda activate WorldLab

This creates the WorldLab environment (Python 3.11), installs the package in editable mode and pulls all dependencies from requirements.txt (CUDA-enabled PyTorch via the cu128 index).

  • CPU-only: remove the --extra-index-url https://download.pytorch.org/whl/cu128 line from requirements.txt and re-run conda env create -f environment.yml --force.
  • Python version note: requires-python = ">=3.10"; check that the desired PyTorch build publishes a wheel for your Python version (3.11 is the default here).

pip only

python -m pip install -e '.[lejepa]'
worldlab-lejepa train --preset smoke --device cpu --output runs/lejepa-smoke

Install the board dependencies with python -m pip install -e '.[board]'. Import the board models alongside the JEPAs:

from worldlab.nn import GPTConfig, GameGPT, GameAutoEncoder, LeJEPA, LeWorldModel
from worldlab.board.games import OthelloGame

Use worldlab-board for the game CLI and worldlab-board-train, worldlab-board-autoencoder or worldlab-board-probe for training. Existing boardGPT imports and root training scripts are compatibility entry points. Board model state dicts and training checkpoint keys use the original format.

About

The simplest, fastest repository for training/finetuning GPTs on board games

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages