LLMcompoz
Compose a language model from scratch — and learn how it works.
LLMcompoz is a PySide6 desktop app (with a matching Qt-free CLI) that walks you
through building a GPT-style language model from nothing: a tokenizer you can
watch split text, a transformer you assemble block by block, a training loop
that draws its own loss curve, and a generation panel where you scrub
temperature and top-k and watch tokens appear one at a time.
Nothing is hidden behind a framework Trainer. Every core file is meant to be
read top to bottom — the attention math, the training step, the sampling loop.
The six stages (tabs)
- 📄 Veri — load text; see character/token counts and vocab size
- 🔤 Tokenizer — char vs BPE; live view of a sentence splitting into ids
- 🧠 Model — set layers/heads/embedding; live parameter count
- 🏋️ Eğitim — live loss curve, step logs, checkpoints
- ✨ Üretim — prompt in, tokens out, live; play with temperature/top-k
- 📚 Öğren — concept notes explaining what happens under each stage
Layout
src/llmcompoz/
├── core/ # the actual ML — readable, framework-free
│ ├── tokenizer.py # CharTokenizer + from-scratch BPE
│ ├── attention.py # multi-head causal self-attention
│ ├── model.py # GPT: embeddings -> blocks -> head
│ ├── trainer.py # explicit training loop with callbacks
│ ├── sampler.py # generation helper
│ └── config.py # ModelConfig / TrainConfig dataclasses
├── gui/ # PySide6 UI (panels wire into core via callbacks)
├── learn/ # educational content
└── cli.py # Qt-free llmcompoz command
Quick start
Windows (PowerShell)
cd C:\Github\LLMcompoz
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .
llmcompoz info
llmcompoz train .\data\tiny.txt --steps 500
llmcompoz-gui
Linux / CachyOS (Bash)
cd ~/Github/LLMcompoz
python -m venv .venv
source .venv/bin/activate
pip install -e .
llmcompoz info
llmcompoz train ./data/tiny.txt --steps 500
llmcompoz-gui
Status
v0.1.0 — scaffold: working core (tokenizer, model, trainer, sampler), CLI,
and a six-tab GUI shell. Panels are placeholders to be filled in next.
License
MIT
Metadata
Release files for llmcompoz 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llmcompoz-0.1.0.tar.gz | 13.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmcompoz-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.4 kB
Release files / llmcompoz-0.1.0.tar.gz
| Download URL | llmcompoz-0.1.0.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cccb725646f496d6f8a59ddc2cea6f5813372ef783ba1ffca7d3e9ca959c029
|
|
BLAKE2b-256 checksum How to use checksums |
5348e30609d8b4180ec1e2fb9820c1997a1e14c4832acda4d0c16e6cd82ceeb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logRelease files / llmcompoz-0.1.0-py3-none-any.whl
| Download URL | llmcompoz-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83b051bb185698660cb12f24316dfe250eb65062ead69bdc5c51ba9ef9d51801
|
|
BLAKE2b-256 checksum How to use checksums |
4a3ec6d8185aa1b1c45ba85e2c8233cca9af6881814ede767430af2a66988bd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logSecurity for llmcompoz 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for llmcompoz-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.