BLOOM
BigScience · BLOOM · open weights
- MHA
- ALiBi
- Pre-norm
Facts and where they come from
| Released | 2022-11 | paperarXiv 2211.05100arXiv v1, November 2022 |
|---|---|---|
| Licence | bigscience-bloom-rail-1.0 | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 176B | labmodel cardREADME: BLOOM, a 176B parameter language model |
| Active parameters | not disclosed | not disclosed |
| Context length | not disclosed | not disclosed |
| Norm placement | pre | codemodelling codetransformers 5.18.0 bloom: input_layernorm and post_attention_layernorm (pre-MLP), plus an embedding LayerNorm |
| Norm type | LayerNorm | codemodelling codetransformers 5.18.0 bloom: input_layernorm and post_attention_layernorm (pre-MLP), plus an embedding LayerNorm |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | ALiBi | codemodelling codetransformers 5.18.0 bloom: ALiBi attention biases |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 bloom: input_layernorm and post_attention_layernorm (pre-MLP), plus an embedding LayerNorm |
Architecture, drawn from the data
MHA 112q/112kv. 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) | 176B |
|---|---|
| Active per token (modelled) | 176B |
| Without embeddings and output head | 173B total, 173B active |
| Published weights (Hugging Face count) | 176B |
| KV cache per token, BF16 (layers that grow with context) | 3.83 MiB |
| KV cache + state at 128K tokens, BF16 | 490 GiB |
| Decode FLOPs per token at 4K context | 369 GFLOP |
| Prefill FLOPs for a 4K prompt | 1.45 PFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 14,336 | config.jsonconfig.jsonn_embed |
| vocab | 250,880 | config.jsonconfig.jsonvocab_size |
| mixers.full.type | attn | codemodelling codeattention |
| mixers.full.heads | 112 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.kv_heads | 112 | config.jsonconfig.jsonnum_attention_heads |
| mixers.full.head_dim | 128 | codemodelling coden_embed / num_attention_heads |
| mixers.full.bias | true | codemodelling codeqkv biases |
| ffns.dense.type | dense | codemodelling codeMLP |
| ffns.dense.d_ff | 57,344 | codemodelling codetransformers 5.18.0 bloom: 4 * hidden_size |
| ffns.dense.gated | false | codemodelling codeGELU MLP |
| ffns.dense.bias | true | codemodelling codebiases |
| layout | 70× full/dense | config.jsonconfig.jsonn_layer |
| tied_embeddings | true | codemodelling codetransformers 5.18.0 bloom: tied |
Sources
- config.json @ 7f10a99
- model card
- arXiv 2211.05100
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision