Skip to content
StackDecode
LLM Library
Mixture of expertsOpen weightsArchitecture animation

Grok-1

A large open-weight mixture-of-experts base model.

At a glance

Made by
xAI
Released
2023
Type
Mixture of experts
Access
Open weights
Parameters
314B
Active per token
about 25% active
Context window
8,192 tokens
Attention
Multi-head attention

How it works

Grok-1 was released as a raw base checkpoint with 8 experts and 2 used per token. It was not fine-tuned for chat in the release.

Architecture, step by step

A token travels from text in to prediction out. The boxed layers repeat many times.

× N layersText inTokenizerEmbedding + positionNormSelf-attentionAdd (residual)NormRouter picks top-k expertsSelected experts (MLPs)Add (residual)Final normLM head (vocabulary scores)Softmax, then sample next token

Raw text enters the system, for example "The cat sat on the".

stage:
1/13
part:
Text in
1/13

The green dot is one token travelling through the model. The boxed section repeats for every layer.

What stands out

  • 314B parameter MoE
  • 8 experts, 2 active
  • Released as a base model

Keep in mind

Very large to run, with limited documentation.

Related models