2025-04-16 10:27:47 -04:00
2025-04-10 13:59:40 -04:00
2025-03-22 17:21:42 -04:00
2025-04-08 14:43:20 -04:00
2025-04-03 21:31:50 -04:00
2025-04-16 10:27:47 -04:00
2025-04-08 17:02:29 -04:00

LegoGPT

Installation

Prerequisites

You need a Gurobi licence to use Gurobi for stability analysis. Get a free academic licence here.

Installing as a standalone project

This repo uses the Python project manager uv. To install this repo as a standalone project, simply install uv. The remaining dependencies will be downloaded and installed upon invoking uv run.

Installing as a package

You can also install this repo as a package in your own project via

uv add "git+ssh://git@github.com/AvaLovelace1/LegoGPT.git"

if using uv, or

pip install "git+ssh://git@github.com/AvaLovelace1/LegoGPT.git"

if using pip.

Finetuning

uv run accelerate config  # Initialize the Accelerate config file
uv run ./finetune.zsh

Running inference

Run inference with a finetuned LegoGPT model using:

uv run infer --model_name_or_path MODEL_PATH

See uv run infer -h for a full list of options.

S
Description
Official repository for LegoGPT, the first approach for generating physically stable LEGO brick models from text prompts.
Readme MIT 249 MiB
Languages
Python 99.5%
Shell 0.5%