mirror of
https://github.com/AvaLovelace1/LegoGPT.git
synced 2026-05-18 05:48:41 -05:00
3ac205aa889e2ef0d03b85d1c64b24601f02bed8
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:
- Clone the repo:
git clone "git@github.com:AvaLovelace1/LegoGPT.git" && cd LegoGPT. - Install the ImportLDraw submodule (required for rendering LEGO visualizations):
git submodule init && git submodule update. - Some files in the ImportLDraw submodule are stored using the Git LFS system. To download these files,
install Git LFS,
cdinto the ImportLDraw directory, and rungit lfs pull. - Finally, install uv. A virtual environment will be
created, and the remaining dependencies installed automatically, upon invoking
uv run [SCRIPT_NAME].
Installing as a package
To install this repo as a package in your own Python project, run
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 interactively
Run inference with an interactive CLI using:
uv run infer --model_name_or_path MODEL_PATH
See uv run infer -h for a full list of options.
Languages
Python
99.5%
Shell
0.5%