OPT-66B
Meta · OPT · open weights
- MHA
- Learned absolute
- Pre-norm
Facts and where they come from
| Released | 2022-05 | paperarXiv 2205.01068arXiv v1, May 2022 |
|---|---|---|
| Licence | other | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 66B | labmodel cardmodel name opt-66b |
| Active parameters | not disclosed | not disclosed |
| Context length | 2K tokens | config.jsonconfig.jsonmax_position_embeddings |
| Norm placement | pre | codemodelling codetransformers 5.18.0 opt: do_layer_norm_before: true |
| Norm type | LayerNorm | codemodelling codetransformers 5.18.0 opt: do_layer_norm_before: true |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | learned absolute | codemodelling codetransformers 5.18.0 opt: learned absolute position embeddings |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 opt: do_layer_norm_before: true |
Architecture, drawn from the data
MHA 72q/72kv. Each column is one layer: its token mixer above, its feed-forward block below. Paler columns reuse another layer’s keys and values.
Modelled costs
From the cost model, batch size 1. Totals the lab states are in the table above; differences come from rounding, from what a lab counts, or from parts the model does not describe (listed on the about page).
| Parameters (modelled) | 66.2B |
|---|---|
| Active per token (modelled) | 66.2B |
| Without embeddings and output head | 65.2B total, 65.2B active |
| KV cache per token, BF16 (layers that grow with context) | 2.25 MiB |
| KV cache + state at 2K tokens, BF16 | 4.5 GiB |
| Decode FLOPs per token at 4K context | 141 GFLOP |
| Prefill FLOPs for a 4K prompt | 554 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 9,216 | config.jsonconfig.jsonhidden_size |
| vocab | 50,272 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | false | codemodelling codetransformers 5.18.0: PretrainedConfig.tie_word_embeddings defaultnot in config |
| mixers.full.type | attn | codemodelling codeattention block |
| mixers.full.heads | 72 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.kv_heads | 72 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.head_dim | 128 | codemodelling codetransformers 5.18.0: head_dim = hidden_size / num_attention_heads |
| mixers.full.bias | true | codemodelling codebiases |
| ffns.dense.type | dense | codemodelling codeMLP block |
| ffns.dense.d_ff | 36,864 | config.jsonconfig.jsonffn_dim |
| ffns.dense.gated | false | codemodelling codeMLP: two matrices, no gate |
| ffns.dense.bias | true | codemodelling codeMLP has biases |
| layout | 64× full/dense | config.jsonconfig.jsonnum_hidden_layers |
| extra_embedding_params | 18,892,800 | codemodelling codelearned positions: (max_position_embeddings + 2) x hidden_size |
Sources
- config.json @ 7259969
- model card
- arXiv 2205.01068
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision