MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. AI & Prompt Engineering
  3. LLM Basics: Tokens, Context and Sampling
Public deck

AI & Prompt Engineering

Vendor-neutral fundamentals of working with large language models: tokens and sampling, prompting patterns, embeddings and vector search, retrieval-augmented generation, and the failure modes that bite in production.

Engineering
AShared by Alex Chen
0Sign in to add this deckTry itSign in to clone

Add it to your projects to study it here with your progress saved. Try it plays a round and saves nothing. Clone makes your own copy that you can change.

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

LLM Basics: Tokens, Context and Sampling

What a model actually reads, how much of it fits, and the knobs that decide what comes out.

Try this topicBack to deck

Content

50 total questions

MCQ: 12
Fill-in: 9
Flashcards: 14
Pair match: 15
LLM Basics: Tokens, Context and Sampling – Flashcards
Flashcards

Card #1

What is a token?

Card #2

Why does the same sentence cost more tokens in some languages than in English?

Card #3

What is the context window?

11 more questions in this game

Showing 3 of 14. Sign up free to see the rest.

Sign up freeLog in
LLM Basics: Tokens, Context and Sampling – MCQ
Multiple Choice Questions
  1. 1. Why do language models often miscount the letters in a word such as strawberry?

    • They see the word as a few tokens, not as single letters
    • Their training data spells most common words incorrectly
    • Counting needs a calculator tool that the model lacks
    • The word is too long to fit inside the context window
  2. 2. To many tokenizers, " Paris" with a leading space and "Paris" without one are different tokens. Why?

    • Capital letters always force a word into a token of its own
    • Place names are stored in a separate list from other words
    • The leading space is folded into the token along with the word
    • Every space in a prompt is removed before the text is tokenized
  3. 3. Beam search keeps several candidate sequences and picks the most likely overall. Why is it rarely used for open-ended chat?

    • It only works on models that have fewer than a billion parameters
    • It cannot produce more than one sentence before it has to stop
    • It needs the full answer in advance in order to score the beams
    • It tends to produce bland, repetitive text in open-ended writing
9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in
LLM Basics: Tokens, Context and Sampling – Fill-in-the-blank
Fill in the Blank
  1. 1. Byte-pair ___ builds a tokenizer's vocabulary by repeatedly merging the most frequent pair of symbols.

    Answer:encoding

    Hint: The E in BPE

  2. 2. The ___ function turns a list of raw scores into probabilities that add up to one.

    Answer:softmaxalso: soft max

    Hint: A soft version of picking the maximum

  3. 3. The special token that tells the model its output is finished is the end-of-___ token.

    Answer:sequencealso: text

    Hint: Often written EOS

6 more questions in this game

Showing 3 of 9. Sign up free to see the rest.

Sign up freeLog in
LLM Basics: Tokens, Context and Sampling – Pair match
Pair Match
Max tokens↔Cap on how many tokens one reply may contain
Embedding layer↔Turns token ids into vectors at the model's input
Decoder-only↔Architecture that writes left to right, used by chat models
12 more questions in this game

Showing 3 of 15. Sign up free to see the rest.

Sign up freeLog in