File size: 698 Bytes
84ddb23
740c342
84ddb23
740c342
84ddb23
 
 
740c342
84ddb23
 
740c342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
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

```bash
pip install -r requirements.txt
python app.py
```