Skip to main content
Sshuhari.ai
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
  • Courses
    • Start here
    • Learning paths9 paths
    • Modules15 modules
    • Projects10 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep12 question banks
    • Cheat sheets15 sheets
    • Glossary292 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
Part of the courseBack to Generative AI
  1. Reference
  2. Causal mask

Glossary

Causal mask

A rule in attention that blocks each token from looking at later tokens. Without it the model could copy the answer it is supposed to predict.

Where it is explained

  • How LLMs workLLM foundations

See also

Terms explained in the same lessons.

  • Autoregressive generation
  • Large language model (LLM)
  • Multi-head attention
  • Positional encoding
  • Query, key and value (Q, K, V)
  • Self-attention
Previous termCanary releaseNext termChain-of-thought (CoT)

All terms, A to Z

Sshuhari.ai

Learn the fundamentals. Break the limits. Build what's next.

  • Privacy
  • Search