Skip to content

LLM Core v0.1.0

Latest

Choose a tag to compare

@puchkovs puchkovs released this 26 Nov 13:51
· 2 commits to main since this release

LLM Core v0.1.0 — experimental release

An experimental educational CPU language-model implementation. Release assets are
wheel, sdist and SHA-256 checksums. No corpus, trained weights or PyPI upload.

Included

Independent byte BPE, reproducible UTF-8 preparation and checked uint16 datasets;
decoder-only causal Pre-LN Transformer; CPU FP32 training with AdamW/scheduling/
clipping; atomic safe checkpoints and exact same-environment resume; autoregressive
greedy/temperature/top-k/top-p generation; actual-token-weighted evaluation and
smoothed bigram baseline; local experiment records and bounded CPU benchmarks.

Micro 136,960 / Tiny 875,264 / Small 5,066,752 parameters. All instantiate and have
architecture tests; only Micro/Tiny received bounded training. Tests/CI use original
synthetic fixtures, while separate source-verified literary experiments document
actual held-out results. Model outputs remain incoherent and repetitive.

Natural-language test PPL: bigram 87.571765, Micro 83.592982, Tiny 55.889910 on the
same 3,495 targets. Both Transformers trained 458,752 targets from the same training
split, with validation-only checkpoint choice. Micro is slightly worse than bigram
on validation. No broad language competence or production reliability is claimed.

Source licensing/provenance, configurations, all generations, measured learning
curves and resource samples are documented. Wheel/sdist are built separately from
runtime artifacts; full restoration retains Git history without rewriting commits.

Local verification

325 regression tests, 95.21% branch-aware coverage, model/config 100%; Ruff and format
checks, CPU-only build, clean-wheel install and full public CLI pipeline. Exact
resume, safe loading, atomic failure, causal invariance and mathematical attention/
gradient reference checks pass. See qa-results.json for machine-readable status.

Compatibility and limitations

Python 3.12, Linux x86-64, torch CPU FP32 and NumPy; use the locked uv environment.
No GPU/distributed/mixed precision path, KV cache, instruction tuning, service/API or
external LLM provider. Checkpoint/data/tokenizer formats remain version 1. Exact
resume requires matching supported environment/configs and fixed total LR horizon.
Only trusted checkpoints should be loaded. See SECURITY.md and MODEL_CARD.md.

Verification and licensing

Full-history review found no blocking secret or copied-implementation evidence.
Historical dataset planning links remain preserved without rewriting history.
Source publication and hosted CI are verified; release requires successful CI for
its exact revision. Local checks include 325 tests and isolated wheel installation.

Software is MIT licensed. Source/rights facts are in dataset.md; software MIT terms
do not automatically license third-party text or trademarks.