All models

Polyglot-Ko

An autoregressive Transformer decoder language model with rotary position embeddings.

Language · 1,150 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (54 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.3B
Operations
1,150
Framework
PyTorch
Recurrent
No
Published
Proceedings of BigScience Episode #5 -- Workshop on Challenges & Perspectives in Creating Large Language Models (arXiv 2022)
Cited by
67 (as of 22 October 2026)
Authors
Sid Black, Stella Biderman, Eric Hallahan and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12832
Graph hash
d72b544f75326bb78964db27133d5d291ea116da883f0b34a3485ea438455ef4
Skeleton hash
bc3d8597c25d5cd0cd6cdfa45b761e6301cdaece293a0e114b774b77dd11aa2e
Architecture hash
b7dd10157c9bb35fa0d872246b5575711e515a2e13dce082d89fa51d23a2e8e9
Diagram SHA-256
0fd1a7b7dc0b5681e3afecc9003d2c3af85cc9c8c160adc9c655e5d5902a3378
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForCausalLM.from_config()

What it is

This model is Polyglot-Ko-1.3B, one of a series of Korean autoregressive language models made by the EleutherAI polyglot team. It consists of 24 transformer layers with a model dimension of 2048 and a feedforward dimension of 8192.

GPT-NeoX is the architecture introduced with GPT-NeoX-20B, which its paper presents as a 20 billion parameter autoregressive language model trained on the Pile, with weights made openly available under a permissive license. It is an autoregressive Transformer decoder whose design largely follows GPT-3, with a few deliberate deviations.

Positions are encoded with rotary embeddings instead of the learned positional embeddings used in GPT models. In each block the attention and feed-forward layers are computed in parallel and their results summed, rather than run in series. All layers are dense, whereas GPT-3 alternates dense and sparse layers.

The paper also records an oversight in the code: two independent layer norms are applied where a single tied layer norm was intended. For GPT-NeoX-20B itself the paper reports 44 layers, a hidden dimension size of 6144 and 64 heads.

Key idea. GPT-NeoX-20B is a 20 billion parameter autoregressive language model trained on the Pile, released with its weights and its training and evaluation code.

  • gpt-neox
  • gpt-neox-20b
  • gpt neox
  • autoregressive language model
  • causal language model
  • rotary embeddings
  • the pile
  • polyglot-ko
  • text generation
  • open-source language model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{black2022gptneox20bopensourceautoregressivelanguage,
      title={GPT-NeoX-20B: An Open-Source Autoregressive Language Model}, 
      author={Sid Black and Stella Biderman and Eric Hallahan and Quentin Anthony and Leo Gao and Laurence Golding and Horace He and Connor Leahy and Kyle McDonell and Jason Phang and Michael Pieler and USVSN Sai Prashanth and Shivanshu Purohit and Laria Reynolds and Jonathan Tow and Ben Wang and Samuel Weinbach},
      year={2022},
      eprint={2204.06745},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2204.06745}, 
}