instruction stringlengths 206 259 | context stringclasses 1
value | question stringlengths 621 850 | completion stringlengths 2.31k 13.7k | id int64 1 252 | source_file stringclasses 1
value |
|---|---|---|---|---|---|
Explain character-level tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates character-level tokenizer -- the tokenizer stage: raw text turned into integer ids -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_tokenizer_char_nano.py
Pipeline positio... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 1 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates toy byte-pair-style subword tokenizer -- merging frequent character pairs into subword units before training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_bpe_toy_nano.... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 2 | llm_v1.jsonl |
Explain learned absolute positional embeddings in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learned absolute positional embeddings -- giving the model a sense of token order via a learned position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_pos_embed_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 3 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates rotary positional embeddings (rope) -- encoding position by rotating Q/K instead of adding a position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_rope_nano.py
... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 4 | llm_v1.jsonl |
Explain causal self-attention mask in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates causal self-attention mask -- why the model must never attend to future tokens -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_causal_mask_nano.py
Pipeline position: STEP... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 5 | llm_v1.jsonl |
Explain multi-head attention in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head attention -- splitting the hidden dimension into independent attention heads -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mha_nano.py
Pipeline position: STE... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 6 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates grouped query attention (gqa) -- sharing fewer K/V heads across more Q heads to cut inference memory -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_gqa_nano.py
Pipeline ... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 7 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head latent attention (mla) basics -- compressing K/V into a low-rank latent before caching -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mla_basics_nano.py
Pipel... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 8 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates kv-cache for fast autoregressive inference -- reusing past keys/values instead of recomputing them every step -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_kv_cache_nan... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 9 | llm_v1.jsonl |
Explain position-wise feed-forward network in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates position-wise feed-forward network -- the per-token 'thinking' step inside each transformer block -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_ffn_nano.py
Pipeline pos... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 10 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates layernorm vs rmsnorm -- swapping LayerNorm for RMSNorm to stabilize activations -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_layernorm_rmsnorm_nano.py
Pipeline positio... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 11 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates residual (skip) connections -- why deep stacks of layers remain trainable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_residual_nano.py
Pipeline position: STEP 4 (Tran... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 12 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- relu -- swapping the FFN activation in the model config to ReLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_relu_na... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 13 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu/swish in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- silu/swish -- swapping the FFN activation in the model config to SiLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_s... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 14 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- gated swiglu -- replacing the FFN with a gated SwiGLU layer -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swiglu_nano... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 15 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates comparing ffn activation functions side by side -- training with GELU, then comparing ReLU/GELU/SiLU output stats -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activati... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 16 | llm_v1.jsonl |
Explain weight tying between embedding and output head in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates weight tying between embedding and output head -- sharing one matrix between input embedding and output projection -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 17 | llm_v1.jsonl |
Explain depth-scaled weight initialization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates depth-scaled weight initialization -- shrinking init variance as layer count grows to keep training stable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_init_nan... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 18 | llm_v1.jsonl |
Explain next-token prediction loss in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates next-token prediction loss -- the cross-entropy loss that drives all LLM pretraining -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_cross_entropy_loss_nano.py
Pipeline p... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 19 | llm_v1.jsonl |
Explain learning rate warmup + cosine decay in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learning rate warmup + cosine decay -- the standard LLM learning-rate schedule -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_lr_schedule_nano.py
Pipeline position: STEP... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 20 | llm_v1.jsonl |
Explain gradient clipping in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient clipping -- capping the global gradient norm so one bad batch can't destabilize training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_clip_nano.py
Pipeli... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 21 | llm_v1.jsonl |
Explain gradient checkpointing in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient checkpointing -- trading extra recompute for lower memory usage across a deep stack -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_checkpoint_nano.py
Pipel... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 22 | llm_v1.jsonl |
Explain dropout regularization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates dropout regularization -- randomly zeroing activations during training to reduce overfitting -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_dropout_nano.py
Pipeline posi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 23 | llm_v1.jsonl |
Explain batch construction for next-token training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates batch construction for next-token training -- turning a flat token stream into shifted (input, target) pairs -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_batching_nano... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 24 | llm_v1.jsonl |
Explain mixed precision (bf16) training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates mixed precision (bf16) training -- training in bf16 instead of fp32 for memory and speed -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mixed_precision_nano.py
Pipeline ... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 25 | llm_v1.jsonl |
Explain autoregressive generation loop in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates autoregressive generation loop -- sampling one token at a time and feeding it back in -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_generation_loop_nano.py
Pipeline pos... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 26 | llm_v1.jsonl |
Explain temperature and top-k sampling in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates temperature and top-k sampling -- controlling how random or deterministic generated text is -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_sampling_strategies_nano.py
Pi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 27 | llm_v1.jsonl |
Explain perplexity as an evaluation metric in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates perplexity as an evaluation metric -- converting cross-entropy loss into the standard LLM quality metric -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_perplexity_nano.p... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 28 | llm_v1.jsonl |
Explain character-level tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates character-level tokenizer -- the tokenizer stage: raw text turned into integer ids -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_tokenizer_char_small.py
Pipeline positi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 29 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates toy byte-pair-style subword tokenizer -- merging frequent character pairs into subword units before training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_bpe_toy_small... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 30 | llm_v1.jsonl |
Explain learned absolute positional embeddings in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learned absolute positional embeddings -- giving the model a sense of token order via a learned position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_pos_embed_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 31 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates rotary positional embeddings (rope) -- encoding position by rotating Q/K instead of adding a position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_rope_small.py... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 32 | llm_v1.jsonl |
Explain causal self-attention mask in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates causal self-attention mask -- why the model must never attend to future tokens -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_causal_mask_small.py
Pipeline position: STE... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 33 | llm_v1.jsonl |
Explain multi-head attention in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head attention -- splitting the hidden dimension into independent attention heads -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mha_small.py
Pipeline position: ST... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 34 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates grouped query attention (gqa) -- sharing fewer K/V heads across more Q heads to cut inference memory -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_gqa_small.py
Pipeline... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 35 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head latent attention (mla) basics -- compressing K/V into a low-rank latent before caching -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mla_basics_small.py
Pipe... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 36 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates kv-cache for fast autoregressive inference -- reusing past keys/values instead of recomputing them every step -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_kv_cache_sma... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 37 | llm_v1.jsonl |
Explain position-wise feed-forward network in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates position-wise feed-forward network -- the per-token 'thinking' step inside each transformer block -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_ffn_small.py
Pipeline po... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 38 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates layernorm vs rmsnorm -- swapping LayerNorm for RMSNorm to stabilize activations -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_layernorm_rmsnorm_small.py
Pipeline positi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 39 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates residual (skip) connections -- why deep stacks of layers remain trainable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_residual_small.py
Pipeline position: STEP 4 (Tra... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 40 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- relu -- swapping the FFN activation in the model config to ReLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_relu_sm... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 41 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu/swish in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- silu/swish -- swapping the FFN activation in the model config to SiLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_s... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 42 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- gated swiglu -- replacing the FFN with a gated SwiGLU layer -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swiglu_smal... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 43 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates comparing ffn activation functions side by side -- training with GELU, then comparing ReLU/GELU/SiLU output stats -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activati... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 44 | llm_v1.jsonl |
Explain weight tying between embedding and output head in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates weight tying between embedding and output head -- sharing one matrix between input embedding and output projection -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 45 | llm_v1.jsonl |
Explain depth-scaled weight initialization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates depth-scaled weight initialization -- shrinking init variance as layer count grows to keep training stable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_init_sma... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 46 | llm_v1.jsonl |
Explain next-token prediction loss in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates next-token prediction loss -- the cross-entropy loss that drives all LLM pretraining -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_cross_entropy_loss_small.py
Pipeline ... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 47 | llm_v1.jsonl |
Explain learning rate warmup + cosine decay in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learning rate warmup + cosine decay -- the standard LLM learning-rate schedule -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_lr_schedule_small.py
Pipeline position: STE... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 48 | llm_v1.jsonl |
Explain gradient clipping in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient clipping -- capping the global gradient norm so one bad batch can't destabilize training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_clip_small.py
Pipel... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 49 | llm_v1.jsonl |
Explain gradient checkpointing in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient checkpointing -- trading extra recompute for lower memory usage across a deep stack -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_checkpoint_small.py
Pipe... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 50 | llm_v1.jsonl |
Explain dropout regularization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates dropout regularization -- randomly zeroing activations during training to reduce overfitting -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_dropout_small.py
Pipeline pos... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 51 | llm_v1.jsonl |
Explain batch construction for next-token training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates batch construction for next-token training -- turning a flat token stream into shifted (input, target) pairs -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_batching_smal... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 52 | llm_v1.jsonl |
Explain mixed precision (bf16) training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates mixed precision (bf16) training -- training in bf16 instead of fp32 for memory and speed -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mixed_precision_small.py
Pipeline... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 53 | llm_v1.jsonl |
Explain autoregressive generation loop in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates autoregressive generation loop -- sampling one token at a time and feeding it back in -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_generation_loop_small.py
Pipeline po... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 54 | llm_v1.jsonl |
Explain temperature and top-k sampling in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates temperature and top-k sampling -- controlling how random or deterministic generated text is -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_sampling_strategies_small.py
P... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 55 | llm_v1.jsonl |
Explain perplexity as an evaluation metric in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates perplexity as an evaluation metric -- converting cross-entropy loss into the standard LLM quality metric -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_perplexity_small.... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 56 | llm_v1.jsonl |
Explain character-level tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates character-level tokenizer -- the tokenizer stage: raw text turned into integer ids -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_tokenizer_char_medium.py
Pipeline posit... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 57 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates toy byte-pair-style subword tokenizer -- merging frequent character pairs into subword units before training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_bpe_toy_mediu... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 58 | llm_v1.jsonl |
Explain learned absolute positional embeddings in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learned absolute positional embeddings -- giving the model a sense of token order via a learned position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_pos_embed_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 59 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates rotary positional embeddings (rope) -- encoding position by rotating Q/K instead of adding a position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_rope_medium.p... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 60 | llm_v1.jsonl |
Explain causal self-attention mask in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates causal self-attention mask -- why the model must never attend to future tokens -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_causal_mask_medium.py
Pipeline position: ST... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 61 | llm_v1.jsonl |
Explain multi-head attention in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head attention -- splitting the hidden dimension into independent attention heads -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mha_medium.py
Pipeline position: S... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 62 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates grouped query attention (gqa) -- sharing fewer K/V heads across more Q heads to cut inference memory -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_gqa_medium.py
Pipelin... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 63 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head latent attention (mla) basics -- compressing K/V into a low-rank latent before caching -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mla_basics_medium.py
Pip... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 64 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates kv-cache for fast autoregressive inference -- reusing past keys/values instead of recomputing them every step -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_kv_cache_med... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 65 | llm_v1.jsonl |
Explain position-wise feed-forward network in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates position-wise feed-forward network -- the per-token 'thinking' step inside each transformer block -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_ffn_medium.py
Pipeline p... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 66 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates layernorm vs rmsnorm -- swapping LayerNorm for RMSNorm to stabilize activations -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_layernorm_rmsnorm_medium.py
Pipeline posit... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 67 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates residual (skip) connections -- why deep stacks of layers remain trainable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_residual_medium.py
Pipeline position: STEP 4 (Tr... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 68 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- relu -- swapping the FFN activation in the model config to ReLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_relu_me... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 69 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu/swish in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- silu/swish -- swapping the FFN activation in the model config to SiLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_s... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 70 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- gated swiglu -- replacing the FFN with a gated SwiGLU layer -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swiglu_medi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 71 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates comparing ffn activation functions side by side -- training with GELU, then comparing ReLU/GELU/SiLU output stats -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activati... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 72 | llm_v1.jsonl |
Explain weight tying between embedding and output head in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates weight tying between embedding and output head -- sharing one matrix between input embedding and output projection -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 73 | llm_v1.jsonl |
Explain depth-scaled weight initialization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates depth-scaled weight initialization -- shrinking init variance as layer count grows to keep training stable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_init_med... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 74 | llm_v1.jsonl |
Explain next-token prediction loss in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates next-token prediction loss -- the cross-entropy loss that drives all LLM pretraining -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_cross_entropy_loss_medium.py
Pipeline... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 75 | llm_v1.jsonl |
Explain learning rate warmup + cosine decay in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learning rate warmup + cosine decay -- the standard LLM learning-rate schedule -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_lr_schedule_medium.py
Pipeline position: ST... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 76 | llm_v1.jsonl |
Explain gradient clipping in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient clipping -- capping the global gradient norm so one bad batch can't destabilize training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_clip_medium.py
Pipe... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 77 | llm_v1.jsonl |
Explain gradient checkpointing in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates gradient checkpointing -- trading extra recompute for lower memory usage across a deep stack -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_checkpoint_medium.py
Pip... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 78 | llm_v1.jsonl |
Explain dropout regularization in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates dropout regularization -- randomly zeroing activations during training to reduce overfitting -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_dropout_medium.py
Pipeline po... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 79 | llm_v1.jsonl |
Explain batch construction for next-token training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates batch construction for next-token training -- turning a flat token stream into shifted (input, target) pairs -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_batching_medi... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 80 | llm_v1.jsonl |
Explain mixed precision (bf16) training in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates mixed precision (bf16) training -- training in bf16 instead of fp32 for memory and speed -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mixed_precision_medium.py
Pipelin... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 81 | llm_v1.jsonl |
Explain autoregressive generation loop in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates autoregressive generation loop -- sampling one token at a time and feeding it back in -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_generation_loop_medium.py
Pipeline p... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 82 | llm_v1.jsonl |
Explain temperature and top-k sampling in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates temperature and top-k sampling -- controlling how random or deterministic generated text is -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_sampling_strategies_medium.py
... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 83 | llm_v1.jsonl |
Explain perplexity as an evaluation metric in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates perplexity as an evaluation metric -- converting cross-entropy loss into the standard LLM quality metric -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_perplexity_medium... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 84 | llm_v1.jsonl |
Explain character-level tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates character-level tokenizer -- the tokenizer stage: raw text turned into integer ids -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_tokenizer_char_nano.py
Pipeline positio... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 85 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates toy byte-pair-style subword tokenizer -- merging frequent character pairs into subword units before training -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_bpe_toy_nano.... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 86 | llm_v1.jsonl |
Explain learned absolute positional embeddings in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates learned absolute positional embeddings -- giving the model a sense of token order via a learned position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_pos_embed_... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 87 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates rotary positional embeddings (rope) -- encoding position by rotating Q/K instead of adding a position vector -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_rope_nano.py
... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 88 | llm_v1.jsonl |
Explain causal self-attention mask in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates causal self-attention mask -- why the model must never attend to future tokens -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_causal_mask_nano.py
Pipeline position: STEP... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 89 | llm_v1.jsonl |
Explain multi-head attention in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head attention -- splitting the hidden dimension into independent attention heads -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_mha_nano.py
Pipeline position: STE... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 90 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates grouped query attention (gqa) -- sharing fewer K/V heads across more Q heads to cut inference memory -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_gqa_nano.py
Pipeline ... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 91 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates multi-head latent attention (mla) basics -- compressing K/V into a low-rank latent before caching -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_mla_basics_nano.py
Pipel... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 92 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates kv-cache for fast autoregressive inference -- reusing past keys/values instead of recomputing them every step -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_kv_cache_nan... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 93 | llm_v1.jsonl |
Explain position-wise feed-forward network in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates position-wise feed-forward network -- the per-token 'thinking' step inside each transformer block -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_ffn_nano.py
Pipeline pos... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 94 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates layernorm vs rmsnorm -- swapping LayerNorm for RMSNorm to stabilize activations -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_layernorm_rmsnorm_nano.py
Pipeline positio... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 95 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates residual (skip) connections -- why deep stacks of layers remain trainable -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_residual_nano.py
Pipeline position: STEP 4 (Tran... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 96 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- relu -- swapping the FFN activation in the model config to ReLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_activation_relu_na... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 97 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu/swish in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- silu/swish -- swapping the FFN activation in the model config to SiLU -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_activation_s... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 98 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates changing the ffn activation function -- gated swiglu -- replacing the FFN with a gated SwiGLU layer -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_activation_swiglu_nano... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 99 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM by building a complete, runnable tiny language model end to end, and connect the mechanism to how a production-scale model implements it at billion-parameter scale. | None | Write the full, single-file, runnable tiny LLM code (STEP 1 through STEP 8) that isolates comparing ffn activation functions side by side -- training with GELU, then comparing ReLU/GELU/SiLU output stats -- and explain how this piece scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v2_activati... | <think>
The person wants a complete, trainable tiny LLM in one file, not an isolated snippet -- something they can literally run on a MacBook or a Windows laptop and see loss go down and real text come out, the same shape as the original tiny_llm.py. So every sample needs all eight pipeline stages present: tokenizer, c... | 100 | llm_v1.jsonl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.