01. LLM Fundamentals & Capability Boundaries
Foundations·Chapter 01
Capability limits and common failure modes
Where this chapter fits: first make clear what models can do, what they cannot, and why. This chapter avoids specific products and covers only mechanisms: how attention and context consume compute, how tokens are counted, where hallucinations come from, and how capability evaluation should be designed. Once this chapter is understood, every trade-off later has a basis.
Questions this chapter answers
- Is the hard part of this task missing knowledge, or missing reasoning?
- The context window is advertised in the millions of tokens — how much is actually usable? Does extending it cost more and slow things down?
- When it answers wrong, is it ignorance, a calculation failure, or the prompt leading it astray?
Article index
The window says 1M, so how much can you actually use? Advertised, effective and deployable length
The advertised window is only a ceiling. Where the evidence sits, how far extrapolation training actually covers, and how much concurrency your VRAM allows decide the length you can really use.
Why it makes things up: separating hallucination into three independently testable sources
Adding "do not fabricate" to the prompt cannot fix hallucination, because it is not one failure mode. Knowledge missing, decoding picking the smoother wrong answer, and trusting the wrong side of a conflict need three different tests.
Same prompt, different bill: the three accounting bases for tokens
You budget tokens × unit price and the monthly invoice differs by several times. The unit price is not the problem; the basis is. Tokens are not characters, input has three prices, output is always full price.
Why long context is expensive: the attention compute and memory ledger
Pull apart the n² score matrix and the linear KV cache: where long context actually costs money, what FlashAttention and GQA each fix and do not fix, and how the application side should choose.
Topic backlog
- The real effect of temperature and sampling parameters (reproducible experiments)
- Designing capability evaluation: coverage, difficulty tiers and the bias of automatic scoring
- Where the open/closed model capability gap actually sits: knowledge, reasoning, or long-tail formats