Count the parameters of a decoder-only transformer by component

EasyConcept10 minRERSMLE

The question

For a decoder-only model with hidden size d, L layers, vocabulary V and a feed-forward size of 4d, break the parameter count down by component.

What the interviewer is looking for

  • Counts embeddings as V x d
  • Counts attention as about 4d^2 per layer
  • Counts the MLP as about 8d^2 per layer
  • Mentions norms, biases and tied embeddings

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported MiniMax question type: count parameters per model component and evaluate text and multimodal output quality.

Reported in: nowcoder.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official MiniMax question.