Fabryka.API

Fabryka AI · LLM od zera · edition 3

Want to build an LLM, just not right now?

The second edition does not fit your schedule? Leave your details for the third. We will let you know once the date is set and signups open.

The course is taught in Polish only. Lectures, materials and code review are all in Polish.

I want to join edition 3 →See the current edition

No payment and no obligation to buy. We contact you only about the course.

Third edition · interest list

The next edition of LLM od zera

From the tokenizer and data to training, evaluation and your own API. Your own project, experiments and hands-on work with language models.

Date
To be set
Price
Announced when signups open
Signing up
Free and without obligation
Support
Buying the course supports the work of the Fabryka AI lab.

This is an interest list. We will confirm the detailed programme, schedule and terms before you buy.

Programme outline

One model. Five layers of work.

Every week builds on the same project. Here is the scope of the current edition. We will confirm the details of the third before it starts.

Block I · Foundations

  1. Tokenizer · BPE · Polish

    Byte-level BPE, compression and the traps of Polish morphology.

    Artefact: your own tokenizer and a comparison report.

  2. Data · quality · deduplication

    Sources, licences, quality filtering, MinHash/LSH, PII and deterministic splits.

    Artefact: a data pipeline with a provenance manifest.

  3. Language as probability · bigram · MLP

    From counts to networks, embeddings, backprop and negative log likelihood.

    Artefact: a bigram model and an MLP that generate their first samples.

Block II · Transformer

  1. Attention · Q · K · V

    Self-attention step by step, the causal mask, multi-head attention and positions.

    Artefact: single-head attention without a ready-made module.

  2. The full GPT architecture · residual · norm · MLP

    Transformer blocks, pre-norm, RMSNorm, SwiGLU, GQA and deliberate architecture decisions.

    Artefact: a model that runs a full forward pass.

  3. Training · optimisation · debugging

    Batching, AdamW, the LR schedule, mixed precision, checkpointing and loss diagnostics. The first longer training experiment.

    Artefact: a trained checkpoint and a run card.

Block III · Scale and measurement

  1. Scaling · compute · DDP

    Scaling laws, the token budget, multi-GPU training and the economics of training.

    Artefact: a costed plan for a larger experiment.

  2. Evaluation · protocol · Polish

    Held-out loss, downstream tasks, Polish benchmarks and the risk of contamination.

    Artefact: your own small benchmark with a methodology card.

Block IV · From base to instruct

  1. SFT, LoRA and QLoRA · fine-tuning

    Instruction data, chat templates and low-rank adaptation.

    Artefact: a comparison of the model before and after fine-tuning.

  2. Preferences and DPO · alignment

    Preference data, the DPO objective and the typical mistakes when aligning small models.

    Artefact: a controlled DPO experiment.

Block V · Production

  1. Inference · GGUF · API

    KV-cache, batching, quantisation, llama.cpp and measuring tokens per second.

    Artefact: a local API with a performance benchmark.

  2. Capstone · demo · publication

    An end-to-end project: data, training or fine-tuning, evaluation and deployment. A joint article by the cohort.

    Artefact: a project demo and a record of the decisions.

Signups for edition 3

Leave your details now. Join when you have the time.

Give your name and e-mail. We will send you the date, programme and price of the third edition once they are ready. Then you decide whether to join.

FAQ

How do signups work?

The interest list is free and commits you to nothing.

When does the third edition start?

The date is not set yet. Everyone on the list will hear about the start and the terms of taking part.

Does signing up mean buying the course?

No. This is a free interest list. You decide whether to buy once you know the date, programme and price.

What if I can start right now?

See the second edition of the course →