abersbail's picture
Add local small LLM Python Space
740c342 verified

A newer version of the Gradio SDK is available: 6.17.3

Upgrade
metadata
title: Local Small LLM Python
colorFrom: blue
colorTo: gray
sdk: gradio
app_file: app.py
pinned: false
license: mit

Local Small LLM Python

This is a small local language model project written in Python from scratch.

What it includes

  • Character tokenizer
  • Tiny transformer decoder
  • Local training loop
  • Checkpoint save and load
  • Gradio interface for training and generation

Important

  • No external pretrained LLM is used
  • The model is tiny and educational
  • It runs on CPU and is meant for local experimentation
  • The first generate or train call will initialize and train the tiny model locally

Run locally

pip install -r requirements.txt
python app.py