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 position-wise feed-forward network in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating position-wise feed-forward network, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_ffn_small.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: Position-Wise Feed-Forward Network. ... | <think>
This sample isolates one concept -- the per-token 'thinking' step inside each transformer block, expanding then projecting back down. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=... | 201 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating layernorm vs rmsnorm, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_layernorm_rmsnorm_small.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: LayerNorm vs RMSNorm. Toy config for... | <think>
This sample isolates one concept -- why most modern LLMs use RMSNorm instead of LayerNorm to stabilize activations. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level, vo... | 202 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating residual (skip) connections, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_residual_small.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: Residual (Skip) Connections. Toy confi... | <think>
This sample isolates one concept -- why deep stacks of transformer blocks remain trainable instead of the gradient vanishing. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char... | 203 | llm_v1.jsonl |
Explain next-token prediction loss in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating next-token prediction loss, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_cross_entropy_loss_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Next-Token Prediction Loss. Toy c... | <think>
This sample isolates one concept -- the single loss function -- cross-entropy on the next token -- that drives all LLM pretraining. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (ch... | 204 | llm_v1.jsonl |
Explain autoregressive generation loop in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating autoregressive generation loop, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_generation_loop_small.py
Pipeline position: STEP 7 (Generation) of the LLM pipeline, tier v1 (basic), concept: Autoregressive Generation Loop. Toy... | <think>
This sample isolates one concept -- sampling one token at a time and feeding it back in as input for the next step. It sits at STEP 7 (Generation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level, vocab_siz... | 205 | llm_v1.jsonl |
Explain temperature and top-k sampling in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating temperature and top-k sampling, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_sampling_strategies_small.py
Pipeline position: STEP 7 (Generation) of the LLM pipeline, tier v1 (basic), concept: Temperature and Top-k Sampling.... | <think>
This sample isolates one concept -- controlling how random or deterministic generated text is by reshaping the probability distribution. It sits at STEP 7 (Generation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (... | 206 | llm_v1.jsonl |
Explain weight tying between embedding and output head in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating weight tying between embedding and output head, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_tying_small.py
Pipeline position: STEP 5 (Full Model) of the LLM pipeline, tier v1 (basic), concept: Weight Tying Between E... | <think>
This sample isolates one concept -- sharing one matrix between the input embedding table and the output projection to save parameters. It sits at STEP 5 (Full Model) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (ch... | 207 | llm_v1.jsonl |
Explain learning rate warmup + cosine decay in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating learning rate warmup + cosine decay, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_lr_schedule_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Learning Rate Warmup + Cosine D... | <think>
This sample isolates one concept -- the standard LLM learning-rate schedule: ramp up gently, then decay smoothly to a floor. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-leve... | 208 | llm_v1.jsonl |
Explain gradient clipping in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating gradient clipping, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_clip_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Gradient Clipping. Toy config for this sample: dim=... | <think>
This sample isolates one concept -- capping the global gradient norm so a single bad batch cannot destabilize training. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level, vo... | 209 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating rotary positional embeddings (rope), and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_rope_small.py
Pipeline position: STEP 2 (Config / Positional Encoding) of the LLM pipeline, tier v1 (basic), concept: Rotary Positional Embed... | <think>
This sample isolates one concept -- encoding position by rotating query/key vectors instead of adding a separate position vector. It sits at STEP 2 (Config / Positional Encoding) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, bloc... | 210 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating kv-cache for fast autoregressive inference, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_kv_cache_small.py
Pipeline position: STEP 3 (Self-Attention (inference-time)) of the LLM pipeline, tier v1 (basic), concept: KV-Cache ... | <think>
This sample isolates one concept -- avoiding recomputation of past keys/values at every generation step. It sits at STEP 3 (Self-Attention (inference-time)) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level,... | 211 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating grouped query attention (gqa), and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_gqa_small.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Grouped Query Attention (GQA). Toy config fo... | <think>
This sample isolates one concept -- sharing fewer key/value heads across more query heads to cut KV-cache memory at inference time. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (c... | 212 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating multi-head latent attention (mla) basics, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mla_basics_small.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Multi-Head Latent Attentio... | <think>
This sample isolates one concept -- compressing keys and values into a small latent vector before caching, the mechanism the production model actually uses. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_l... | 213 | llm_v1.jsonl |
Explain mixed precision (bf16) training in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating mixed precision (bf16) training, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mixed_precision_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Mixed Precision (bf16) Training... | <think>
This sample isolates one concept -- training in bf16 instead of fp32 to cut memory and increase throughput on modern GPUs. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level,... | 214 | llm_v1.jsonl |
Explain gradient checkpointing in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating gradient checkpointing, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_checkpoint_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Gradient Checkpointing. Toy config for t... | <think>
This sample isolates one concept -- trading extra recompute for lower memory usage across a deep stack of layers. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-level, vocab_si... | 215 | llm_v1.jsonl |
Explain dropout regularization in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating dropout regularization, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_dropout_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Dropout Regularization. Toy config for this samp... | <think>
This sample isolates one concept -- randomly zeroing activations during training to reduce overfitting, disabled at eval time. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 (char-le... | 216 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating toy byte-pair-style subword tokenizer, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_bpe_toy_small.py
Pipeline position: STEP 1 (Data + Tokenizer) of the LLM pipeline, tier v1 (basic), concept: Toy Byte-Pair-Style Subword To... | <think>
This sample isolates one concept -- merging frequent character pairs into subword units, the core idea behind production tokenizers. It sits at STEP 1 (Data + Tokenizer) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32... | 217 | llm_v1.jsonl |
Explain batch construction for next-token training in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating batch construction for next-token training, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_batching_small.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Batch Construction for Next... | <think>
This sample isolates one concept -- turning a flat stream of token ids into (input, target) pairs where target is input shifted by one. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32... | 218 | llm_v1.jsonl |
Explain perplexity as an evaluation metric in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating perplexity as an evaluation metric, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_perplexity_small.py
Pipeline position: STEP 8 (Test / Evaluation) of the LLM pipeline, tier v1 (basic), concept: Perplexity as an Evaluation M... | <think>
This sample isolates one concept -- converting cross-entropy loss into perplexity, the standard human-readable LLM quality metric. It sits at STEP 8 (Test / Evaluation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_size=32 ... | 219 | llm_v1.jsonl |
Explain depth-scaled weight initialization in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating depth-scaled weight initialization, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_init_small.py
Pipeline position: STEP 5 (Full Model) of the LLM pipeline, tier v1 (basic), concept: Depth-Scaled Weight Initialization.... | <think>
This sample isolates one concept -- why initialization variance must shrink as layer count grows, to keep the residual stream stable at depth. It sits at STEP 5 (Full Model) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbers are dim=64, n_heads=4, n_layers=3, block_siz... | 220 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- relu, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_relu_small.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 (basic), c... | <think>
This sample isolates one concept -- swapping the FFN activation function in the model config to ReLU and observing the effect (hard zeroing of negative activations). It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the ... | 221 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu / swish in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- silu / swish, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swish_small.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 (... | <think>
This sample isolates one concept -- swapping the FFN activation function in the model config to SiLU (Swish), a smooth alternative to ReLU used in many production LLMs. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier t... | 222 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- gated swiglu, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swiglu_small.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 ... | <think>
This sample isolates one concept -- replacing a plain activation with a gated SwiGLU feed-forward layer, the config choice used by many current production LLMs. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small' tier the numbe... | 223 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating comparing ffn activation functions side by side, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_comparison_small.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 (... | <think>
This sample isolates one concept -- running ReLU, GELU, and SiLU through the same weights and input to see how the activation-function config choice changes output statistics. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'small'... | 224 | llm_v1.jsonl |
Explain character-level tokenizer in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating character-level tokenizer, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_tokenizer_char_medium.py
Pipeline position: STEP 1 (Data + Tokenizer) of the LLM pipeline, tier v1 (basic), concept: Character-Level Tokenizer. Toy con... | <think>
This sample isolates one concept -- the tokenizer stage: raw text turned into integer ids, the first step before any model math happens. It sits at STEP 1 (Data + Tokenizer) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_s... | 225 | llm_v1.jsonl |
Explain learned absolute positional embeddings in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating learned absolute positional embeddings, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_pos_embed_medium.py
Pipeline position: STEP 2 (Config / Positional Encoding) of the LLM pipeline, tier v1 (basic), concept: Learned Absolu... | <think>
This sample isolates one concept -- giving the model a sense of token order by adding a position vector to each token embedding. It sits at STEP 2 (Config / Positional Encoding) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, blo... | 226 | llm_v1.jsonl |
Explain causal self-attention mask in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating causal self-attention mask, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_causal_mask_medium.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Causal Self-Attention Mask. Toy config... | <think>
This sample isolates one concept -- why a language model must never attend to future tokens, and how the triangular mask enforces that. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size... | 227 | llm_v1.jsonl |
Explain multi-head attention (split, attend, merge) in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating multi-head attention (split, attend, merge), and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mha_medium.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Multi-Head Attention (split, ... | <think>
This sample isolates one concept -- splitting the hidden dimension into independent attention heads so the model can attend to different relationships in parallel. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_hea... | 228 | llm_v1.jsonl |
Explain position-wise feed-forward network in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating position-wise feed-forward network, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_ffn_medium.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: Position-Wise Feed-Forward Network.... | <think>
This sample isolates one concept -- the per-token 'thinking' step inside each transformer block, expanding then projecting back down. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_siz... | 229 | llm_v1.jsonl |
Explain layernorm vs rmsnorm in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating layernorm vs rmsnorm, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_layernorm_rmsnorm_medium.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: LayerNorm vs RMSNorm. Toy config fo... | <think>
This sample isolates one concept -- why most modern LLMs use RMSNorm instead of LayerNorm to stabilize activations. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-level, ... | 230 | llm_v1.jsonl |
Explain residual (skip) connections in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating residual (skip) connections, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_residual_medium.py
Pipeline position: STEP 4 (Transformer Block) of the LLM pipeline, tier v1 (basic), concept: Residual (Skip) Connections. Toy conf... | <think>
This sample isolates one concept -- why deep stacks of transformer blocks remain trainable instead of the gradient vanishing. It sits at STEP 4 (Transformer Block) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (ch... | 231 | llm_v1.jsonl |
Explain next-token prediction loss in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating next-token prediction loss, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_cross_entropy_loss_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Next-Token Prediction Loss. Toy ... | <think>
This sample isolates one concept -- the single loss function -- cross-entropy on the next token -- that drives all LLM pretraining. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (... | 232 | llm_v1.jsonl |
Explain autoregressive generation loop in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating autoregressive generation loop, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_generation_loop_medium.py
Pipeline position: STEP 7 (Generation) of the LLM pipeline, tier v1 (basic), concept: Autoregressive Generation Loop. To... | <think>
This sample isolates one concept -- sampling one token at a time and feeding it back in as input for the next step. It sits at STEP 7 (Generation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-level, vocab_s... | 233 | llm_v1.jsonl |
Explain temperature and top-k sampling in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating temperature and top-k sampling, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_sampling_strategies_medium.py
Pipeline position: STEP 7 (Generation) of the LLM pipeline, tier v1 (basic), concept: Temperature and Top-k Sampling... | <think>
This sample isolates one concept -- controlling how random or deterministic generated text is by reshaping the probability distribution. It sits at STEP 7 (Generation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64... | 234 | llm_v1.jsonl |
Explain weight tying between embedding and output head in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating weight tying between embedding and output head, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_tying_medium.py
Pipeline position: STEP 5 (Full Model) of the LLM pipeline, tier v1 (basic), concept: Weight Tying Between ... | <think>
This sample isolates one concept -- sharing one matrix between the input embedding table and the output projection to save parameters. It sits at STEP 5 (Full Model) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (... | 235 | llm_v1.jsonl |
Explain learning rate warmup + cosine decay in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating learning rate warmup + cosine decay, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_lr_schedule_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Learning Rate Warmup + Cosine ... | <think>
This sample isolates one concept -- the standard LLM learning-rate schedule: ramp up gently, then decay smoothly to a floor. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-le... | 236 | llm_v1.jsonl |
Explain gradient clipping in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating gradient clipping, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_clip_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Gradient Clipping. Toy config for this sample: dim... | <think>
This sample isolates one concept -- capping the global gradient norm so a single bad batch cannot destabilize training. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-level, ... | 237 | llm_v1.jsonl |
Explain rotary positional embeddings (rope) in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating rotary positional embeddings (rope), and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_rope_medium.py
Pipeline position: STEP 2 (Config / Positional Encoding) of the LLM pipeline, tier v1 (basic), concept: Rotary Positional Embe... | <think>
This sample isolates one concept -- encoding position by rotating query/key vectors instead of adding a separate position vector. It sits at STEP 2 (Config / Positional Encoding) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, bl... | 238 | llm_v1.jsonl |
Explain kv-cache for fast autoregressive inference in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating kv-cache for fast autoregressive inference, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_kv_cache_medium.py
Pipeline position: STEP 3 (Self-Attention (inference-time)) of the LLM pipeline, tier v1 (basic), concept: KV-Cache... | <think>
This sample isolates one concept -- avoiding recomputation of past keys/values at every generation step. It sits at STEP 3 (Self-Attention (inference-time)) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-leve... | 239 | llm_v1.jsonl |
Explain grouped query attention (gqa) in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating grouped query attention (gqa), and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_gqa_medium.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Grouped Query Attention (GQA). Toy config f... | <think>
This sample isolates one concept -- sharing fewer key/value heads across more query heads to cut KV-cache memory at inference time. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 ... | 240 | llm_v1.jsonl |
Explain multi-head latent attention (mla) basics in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating multi-head latent attention (mla) basics, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mla_basics_medium.py
Pipeline position: STEP 3 (Self-Attention) of the LLM pipeline, tier v1 (basic), concept: Multi-Head Latent Attenti... | <think>
This sample isolates one concept -- compressing keys and values into a small latent vector before caching, the mechanism the production model actually uses. It sits at STEP 3 (Self-Attention) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n... | 241 | llm_v1.jsonl |
Explain mixed precision (bf16) training in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating mixed precision (bf16) training, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_mixed_precision_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Mixed Precision (bf16) Trainin... | <think>
This sample isolates one concept -- training in bf16 instead of fp32 to cut memory and increase throughput on modern GPUs. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-leve... | 242 | llm_v1.jsonl |
Explain gradient checkpointing in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating gradient checkpointing, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_grad_checkpoint_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Gradient Checkpointing. Toy config for ... | <think>
This sample isolates one concept -- trading extra recompute for lower memory usage across a deep stack of layers. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-level, vocab_... | 243 | llm_v1.jsonl |
Explain dropout regularization in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating dropout regularization, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_dropout_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Dropout Regularization. Toy config for this sam... | <think>
This sample isolates one concept -- randomly zeroing activations during training to reduce overfitting, disabled at eval time. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=64 (char-... | 244 | llm_v1.jsonl |
Explain toy byte-pair-style subword tokenizer in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating toy byte-pair-style subword tokenizer, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_bpe_toy_medium.py
Pipeline position: STEP 1 (Data + Tokenizer) of the LLM pipeline, tier v1 (basic), concept: Toy Byte-Pair-Style Subword T... | <think>
This sample isolates one concept -- merging frequent character pairs into subword units, the core idea behind production tokenizers. It sits at STEP 1 (Data + Tokenizer) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=... | 245 | llm_v1.jsonl |
Explain batch construction for next-token training in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating batch construction for next-token training, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_batching_medium.py
Pipeline position: STEP 6 (Training Loop) of the LLM pipeline, tier v1 (basic), concept: Batch Construction for Nex... | <think>
This sample isolates one concept -- turning a flat stream of token ids into (input, target) pairs where target is input shifted by one. It sits at STEP 6 (Training Loop) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=... | 246 | llm_v1.jsonl |
Explain perplexity as an evaluation metric in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating perplexity as an evaluation metric, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_perplexity_medium.py
Pipeline position: STEP 8 (Test / Evaluation) of the LLM pipeline, tier v1 (basic), concept: Perplexity as an Evaluation ... | <think>
This sample isolates one concept -- converting cross-entropy loss into perplexity, the standard human-readable LLM quality metric. It sits at STEP 8 (Test / Evaluation) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_size=6... | 247 | llm_v1.jsonl |
Explain depth-scaled weight initialization in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating depth-scaled weight initialization, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_weight_init_medium.py
Pipeline position: STEP 5 (Full Model) of the LLM pipeline, tier v1 (basic), concept: Depth-Scaled Weight Initialization... | <think>
This sample isolates one concept -- why initialization variance must shrink as layer count grows, to keep the residual stream stable at depth. It sits at STEP 5 (Full Model) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numbers are dim=128, n_heads=8, n_layers=4, block_s... | 248 | llm_v1.jsonl |
Explain changing the ffn activation function -- relu in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- relu, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_relu_medium.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 (basic), ... | <think>
This sample isolates one concept -- swapping the FFN activation function in the model config to ReLU and observing the effect (hard zeroing of negative activations). It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the... | 249 | llm_v1.jsonl |
Explain changing the ffn activation function -- silu / swish in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- silu / swish, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swish_medium.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 ... | <think>
This sample isolates one concept -- swapping the FFN activation function in the model config to SiLU (Swish), a smooth alternative to ReLU used in many production LLMs. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier ... | 250 | llm_v1.jsonl |
Explain changing the ffn activation function -- gated swiglu in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating changing the ffn activation function -- gated swiglu, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_swiglu_medium.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1... | <think>
This sample isolates one concept -- replacing a plain activation with a gated SwiGLU feed-forward layer, the config choice used by many current production LLMs. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium' tier the numb... | 251 | llm_v1.jsonl |
Explain comparing ffn activation functions side by side in a decoder-only transformer LLM, starting from a minimal working example, and connect it to how a production-scale model implements the same mechanism at billion-parameter scale. | None | Write standalone runnable code demonstrating comparing ffn activation functions side by side, and explain how it scales toward a production-scale (1.5B-parameter) configuration.
File: llm_v1_activation_comparison_medium.py
Pipeline position: STEP 4 (Transformer Block / Activation Function) of the LLM pipeline, tier v1 ... | <think>
This sample isolates one concept -- running ReLU, GELU, and SiLU through the same weights and input to see how the activation-function config choice changes output statistics. It sits at STEP 4 (Transformer Block / Activation Function) in the overall pipeline, the same numbering tiny_llm.py uses. At the 'medium... | 252 | llm_v1.jsonl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.