Dataset Viewer
Auto-converted to Parquet Duplicate
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
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
20