Setup & Install

Prerequisites

  • Python 3.12+
  • uv package manager
  • NVIDIA GPU with 16GB+ VRAM (tested on RTX 5060 Ti 16GB (Blackwell))
  • GitHub personal access token (for data collection)
  • HuggingFace account (for dataset + model upload)

Installation

# 1. Clone the repo
git clone https://github.com/cmndcntrlcyber/code-trainer
cd code-trainer

# 2. Install Python dependencies
uv sync

# 3. Install Playwright (for screenshot capture)
playwright install chromium

# 4. Configure environment
cp .env.example .env
# Edit .env — set GITHUB_TOKEN and HF_USERNAME

Environment Variables

VariableDescription
GITHUB_TOKENGitHub personal access token (read:repo scope)
HF_USERNAMEHuggingFace username for dataset/model upload

Verify Setup

uv run pytest tests/