Skip to main content

LLM Research Lab

LLM Research Lab is a local research codebase for building and evaluating small language models from randomly initialized weights. It makes corpus provenance, tokenizer behavior, checkpoint recovery, and held-out evaluation inspectable at each stage.

What is here

  • Data processing with revision-pinned inputs, provenance and license records, filtering, deduplication, and reproducible split manifests.
  • Tokenization and modeling with byte-level BPE and a compact PyTorch decoder with rotary position embeddings and tied input and output weights.
  • Training and evaluation tooling for reproducible configuration, checkpointing, inference, and explicit separation of held-out data.

The first experimental model, GEN-00, has approximately 6.9 million parameters. A documented local run completed 6,000 pretraining steps. Held-out evaluation measured 3.450 nats per target, and qualitative outputs included repetition and factual errors. The measurements describe a research prototype. Training report · Evaluation report

Quick start

Python 3.12 on Linux or WSL is the reference environment. Follow Installation for the installable package and the separate contributor workflow, then run the small offline examples. The examples build a tokenizer from hand-written fixtures and run a single inference pass with synthetic input. They require no corpus, checkpoint, GPU, or model service.

export PYTHONPATH="$PWD/src"
python -m pytest -q
python -m unittest discover -s scripts/data

The repository contains source code, configurations, and selected research reports. Corpus downloads, held-out examples, local caches, and model checkpoints are stored separately. See Data governance for asset-specific terms and the project status for current experiments.

Project guides

Guide Scope
Installation Isolated CPU setup and local checks
Examples Offline tokenizer round-trip and decoder inference
Data engine Corpus workflow and local acquisition controls
Model and training Architecture, model contract, and research workflow
Roadmap Phase history and research gates

Contributing and licensing

Read Contributing, the Code of Conduct, and the Security Policy. Project-owned source code and documentation are licensed under Apache 2.0. The NOTICE describes the scope and third-party attributions.

Metadata

Release files for llm-research-lab 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-research-lab 0.1.0
File Size Uploaded Provenance Actions
llm_research_lab-0.1.0.tar.gz 75.5 kB With provenance Details for llm_research_lab-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-research-lab 0.1.0
File Interpreter ABI Platform Actions
llm_research_lab-0.1.0-py3-none-any.whl Python 3 none any Details for llm_research_lab-0.1.0-py3-none-any.whl

Total release size: 165.9 kB

Release files / llm_research_lab-0.1.0.tar.gz

Download URL llm_research_lab-0.1.0.tar.gz
Size 75.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6bf49958c102281194f9f3e5f624c6462ceec6647898a427c30179879e1c72c
BLAKE2b-256 checksum
How to use checksums
72952a96ba168f4a2c103768b88b104674ebdc62d86ead391f3310f7cf9758cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 4, 2026.

Transparency log

Release files / llm_research_lab-0.1.0-py3-none-any.whl

Download URL llm_research_lab-0.1.0-py3-none-any.whl
Size 90.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05e99a57c35172bdf28986532af2685f0e589a90ce5f32bf5aebda985e968ca7
BLAKE2b-256 checksum
How to use checksums
00d843c2b765f1bdfba178db2ff3ae7a5e697c792587950a63fe301bf80b874b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 4, 2026.

Transparency log

Security for llm-research-lab 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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llm_research_lab-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 Dec 4, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page