---
title: "Transformer architecture (CS)"
source: "https://systems-analysis.info/int/Transformer_architecture_(CS)"
wiki: "systems-analysis.info/int"
article: "Transformer_architecture_(CS)"
language: "cs"
categories:
  - "Category:Core LLM concepts"
  - "Category:Czech"
  - "Category:Large language models"
  - "Category:LLM core concepts"
  - "Category:Machine learning"
  - "Category:Pages with math errors"
  - "Category:Pages with math render errors"
revision_id: 8249
wiki_created_at: 2026-09-07T01:14:32Z
wiki_modified_at: 2026-09-07T01:14:32Z
downloaded_at: 2026-09-07T23:24:19Z
---

# Transformer architecture (CS)

**Architektura Transformer** je architektura neuronové sítě představená v roce 2017 výzkumníky společnosti Google v článku „Attention Is All You Need"<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>. Způsobila revoluci v oblasti zpracování přirozeného jazyka (NLP) a stala se základem pro většinu moderních velkých jazykových modelů (LLM), jako jsou BERT, GPT a Gemini. Klíčovou inovací Transformeru je mechanismus **samopozornosti (self‑attention)**, který umožňuje modelu vážit důležitost různých částí vstupních dat a zpracovávat sekvence paralelně, přičemž upouští od rekurence typické pro RNN a LSTM.

## Historický kontext a předpoklady

Před rokem 2017 byly dominantními architekturami pro zpracování sekvenčních dat, jako je text, rekurentní neuronové sítě (RNN) a jejich vylepšená varianta — sítě s dlouhou krátkodobou pamětí (LSTM).

### Problémy RNN/LSTM řešené Transformerem

- **Omezení sekvenčního zpracování:** RNN a LSTM zpracovávají data token po tokenu, což vylučuje vnitro-sekvenční paralelismus a zpomaluje trénování na velkých objemech dat.
- **Problém mizejících a explodujících gradientů:** V dlouhých sekvencích mohou gradienty šířené zpět přes mnoho kroků buď slábnout, nebo narůstat, což ztěžuje trénování na dlouhodobých závislostech.
- **Dlouhodobé závislosti:** Informace ze začátku sekvence se mohou ke konci ztratit.

Přístup Transformeru spočívá v **úplném opuštění rekurence** ve prospěch mechanismu pozornosti. Zajišťuje **konstantní délku cesty závislostí** mezi libovolnými pozicemi ($O(1)$), což usnadňuje modelování vzdálených závislostí, přičemž základní implementace samopozornosti má **kvadratickou výpočetní složitost** vzhledem k délce sekvence ($O(n^{2})$)<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)[\[2\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-tay2020-2)</sup>. Problém mizejících/explodujících gradientů „nezmizí", ale je **zmírněn** díky reziduálním spojením, LayerNorm a tréninkového režimu; v moderních implementacích se často používá varianta **Pre‑LayerNorm (Pre‑LN)** jako stabilnější při trénování<sup>[\[3\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-xiong2020-3)</sup>.

## Architektura a klíčové komponenty

Originální architektura Transformer se skládá ze dvou hlavních částí: **enkodéru** a **dekodéru**. Obě komponenty jsou zásobníky identických vrstev ($N = 6$ v původním článku)<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>.

- **Struktura vrstvy enkodéru:** (1) vícehlávková samopozornost (MHA), (2) pozičně‑prvková FFN; každá podvrstva je obklopena reziduálním spojením a LayerNorm<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>.
- **Struktura vrstvy dekodéru:** (1) **maskovaná** samopozornost (kauzální maska zakazuje přístup k budoucím pozicím), (2) **cross‑attention** k výstupům enkodéru, (3) FFN — také s reziduály a LayerNorm<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>.

### Mechanismus pozornosti a Self‑Attention

Mechanismus pozornosti vypočítává vážený součet vektorů hodnot (Value), kde váhy jsou určeny mírou kompatibility klíčů (Key) s dotazy (Query). V Transformeru se používá **škálované skalární součinové pozornosti (Scaled Dot‑Product Attention)**:

${Attention}(Q,K,V) = {softmax}\!\left( \frac{QK^{o}p}{\sqrt{d_{k}}} \right)V$

Kde $d_{k}$ je dimenze klíčů/dotazů; dělení $\sqrt{d_{k}}$ zabraňuje saturaci softmax<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>. Když $Q$, $K$ a $V$ pocházejí ze stejné sekvence, mechanismus se nazývá **samopozornost (self‑attention)**.

### Multi‑Head Attention (vícehlávková pozornost)

Místo jedné sady matic $(W_{Q},W_{K},W_{V})$ se používá $h$ paralelních „hlav", z nichž každá promítá $Q,K,V$ do podprostorů nižší dimenze, nezávisle vypočítává pozornost, poté jsou výsledky konkatenováni a promítnuty<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>:

**Failed to parse (syntax error): {\displaystyle \mathrm{MultiHead}(Q,K,V)=\mathrm{Concat}( ext{head}\_1,\dots, ext{head}\_h)W^O,\quad ext{где } ext{head}\_i=\mathrm{Attention}(QW_i^Q,KW_i^K,VW_i^V).}**

**Varianty pro zrychlení inference:**

- **MQA (Multi‑Query Attention):** všechny hlavy sdílejí jeden klíč/hodnotu → výrazně se snižuje objem a provoz KV‑cache při dekódování<sup>[\[4\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-shazeer2019-4)</sup>.
- **GQA (Grouped‑Query Attention):** kompromis mezi MHA a MQA — několik skupin hlav sdílí K/V; kvalita blízká MHA při rychlosti MQA<sup>[\[5\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-ainslie2023-5)</sup>.

### Poziční kódování (Positional Encoding)

Protože self‑attention je invariantní vůči pořadí tokenů, ke vstupním embeddingům se přidávají **poziční kódování**.

- **Původní sinusoidální kódování** (PE) z<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>:

$ext{PE}(ext{pos},2i) = \sin\!\left( ext{pos}/10000^{2i/d_{ext{model}}} \right),\quad ext{PE}(ext{pos},2i + 1) = \cos\!\left( ext{pos}/10000^{2i/d_{ext{model}}} \right).$

- **Moderní relativní/rotační varianty:**
  - **RoPE (Rotary Position Embeddings)** kóduje relativní posuny prostřednictvím rotace vektorů $Q$/$K$; používá se v řadě moderních LLM<sup>[\[6\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-su2021-6)</sup>.
  - **ALiBi** zavádí lineární penalizaci do skóre pozornosti, což zlepšuje extrapolaci na délky větší než tréninkové<sup>[\[7\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-press2021-7)</sup>.

### Prvková FFN, reziduály a normalizace

Každá vrstva enkodéru a dekodéru obsahuje kromě pozornosti také **pozičně‑prvkovou FFN**:

${FFN}(x) = \max(0,xW_{1} + b_{1})W_{2} + b_{2}.$

Kolem každé podvrstvy se používají **reziduální spojení (residual connections)** a **Layer Normalization**: ${LayerNorm}(x + {Sublayer}(x))$. V originále byl použit variant **Post‑LN**<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>; v moderních LLM se často používá **Pre‑LN** pro lepší stabilitu trénování a menší závislost na dlouhém warm‑upu<sup>[\[3\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-xiong2020-3)</sup>.

## Evoluce a moderní varianty

Rané metody založené na rekurentních neuronových sítích (RNN) a jejich pokročilých variantách, jako je LSTM, zpracovávaly text sekvenčně, jeden token najednou. Ačkoli tento přístup intuitivně odpovídal struktuře jazyka, vytvářel výrazné omezení: ztěžoval paralelní výpočty a znesnadňoval odhalování závislostí mezi prvky, které byly v textu daleko od sebe. V roce 2017 skupina výzkumníků ze společnosti Google představila článek nazvaný „Attention Is All You Need". V něm popsali novou architekturu — Transformer. Tento model se jako první zcela vzdal rekurentních neuronových sítí a nahradil je mechanismem pozornosti (attention). Hlavní novinka spočívala v tom, že mechanismus pozornosti umožňoval Transformeru hodnotit důležitost každého slova ve vstupní sekvenci pro generování odpovídajícího slova na výstupu. Přitom model mohl zpracovávat všechna slova současně. Tato schopnost paralelního zpracování umožnila trénovat mnohem větší modely na obrovských objemech dat. Výsledkem jsou moderní velké jazykové modely (LLM).

Architektura Transformer se stala základem pro množství modelů, které lze přibližně rozdělit do tří tříd.

### 1. Modely pouze s enkodérem (Encoder‑only)

- **Příklad:** BERT (a RoBERTa, ALBERT)<sup>[\[8\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-devlin2019-8)</sup>.
- **Princip:** předtrénování na úloze **maskovaného jazykového modelování (MLM)** s obousměrným kontextem.
- **Použití:** úlohy porozumění (klasifikace, NER atd.).

### 2. Modely pouze s dekodérem (Decoder‑only)

- **Příklad:** série GPT (GPT‑1/2/3)<sup>[\[9\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-radford2018-9)[\[10\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-brown2020-10)</sup>, LLaMA<sup>[\[11\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-llama2023-11)</sup>, Claude.
- **Princip:** **kauzální jazykové modelování (CLM)** — predikce dalšího tokenu; na pozornost je aplikována kauzální maska<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>.
- **Použití:** generování textu, dialogy, kód.

### 3. Modely enkodér‑dekodér (Encoder‑decoder)

- **Příklad:** původní Transformer, T5, BART<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)[\[12\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-raffel2019-12)</sup>.
- **Princip:** enkodér vytváří reprezentaci vstupu, dekodér generuje výstup a využívá cross‑attention k příznakům enkodéru<sup>[\[1\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-vaswani2017-1)</sup>.
- **Použití:** seq2seq úlohy (překlad, sumarizace aj.).

### 4. Multimodální a alternativní architektury

- **Vision Transformer (ViT)** — adaptace pro obrázky (rozdělení na patche)<sup>[\[13\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-dosovitskiy2020-13)</sup>; **Swin Transformer** — hierarchický model se *shifted windows*<sup>[\[14\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-liu2021-swin-14)</sup>.
- **Alternativy pro dlouhé sekvence:**
  - **Mamba** — selektivní modely stavového prostoru (SSM) s lineární složitostí<sup>[\[15\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-gu2023-mamba-15)</sup>.
  - **RWKV** — architektura podobná RNN s paralelním trénováním a lineární složitostí inference<sup>[\[16\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-peng2023-rwkv-16)</sup>.
  - **Hybridy** (např. **Jamba**): střídají bloky Transformer a Mamba; někdy doplněny o MoE<sup>[\[17\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-lieber2024-jamba-17)</sup>.

## Techniky trénování a optimalizace

Efektivita Transformeru úzce souvisí s technikou trénování a infrastrukturou.

- **Strategie předtrénování:** CLM a MLM; také kontrastivní a denoisingové cíle (ELECTRA, T5)<sup>[\[12\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-raffel2019-12)</sup>.
- **Techniky doladění (Fine‑tuning):**
  - **Úplné doladění** všech parametrů.
  - **Parametricky efektivní doladění (PEFT):** **LoRA** zavádí nízkorangové adaptéry při zmrazených základních vahách<sup>[\[18\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-hu2021-lora-18)</sup>.
- **Sladění chování:** **RLHF** — Reinforcement Learning na základě zpětné vazby od člověka<sup>[\[19\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-ouyang2022-rlhf-19)</sup>.
- **Systémové optimalizace inference:** **PagedAttention/vLLM** zvyšují propustnost servingu prostřednictvím stránkové správy KV‑cache; zvláště užitečné při dlouhých sekvencích a velkých dávkách<sup>[\[20\]](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_note-kwon2023-vllm-20)</sup>.

## Odkazy

- The Illustrated Transformer — vizuální vysvětlení architektury Transformer

## Literatura

- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). *Attention Is All You Need*. NeurIPS. arXiv:1706.03762.
- Devlin, J., Chang, M.‑W., Lee, K., Toutanova, K. (2019). *BERT: Pre‑training of Deep Bidirectional Transformers for Language Understanding*. arXiv:1810.04805.
- Radford, A., Narasimhan, K., Salimans, T., Sutskever, I. (2018). *Improving Language Understanding by Generative Pre‑Training*. OpenAI Technical Report.
- Brown, T. B., Mann, B., Ryder, N., et al. (2020). *Language Models Are Few‑Shot Learners*. NeurIPS. arXiv:2005.14165.
- Raffel, C., Shazeer, N., Roberts, A., et al. (2019). *Exploring the Limits of Transfer Learning with a Unified Text‑to‑Text Transformer*. arXiv:1910.10683.
- Dosovitskiy, A., Beyer, L., Kolesnikov, A., et al. (2020). *An Image is Worth 16×16 Words: Transformers for Image Recognition at Scale*. arXiv:2010.11929.
- Liu, Z., Lin, Y., Cao, Y., et al. (2021). *Swin Transformer: Hierarchical Vision Transformer using Shifted Windows*. arXiv:2103.14030.
- Tay, Y., Dehghani, M., Bahri, D., Metzler, D. (2020). *Efficient Transformers: A Survey*. arXiv:2009.06732.
- Xiong, R., Yang, Y., He, D., et al. (2020). *On Layer Normalization in the Transformer Architecture*. ICML. arXiv:2002.04745.
- Su, J., Lu, Y., Pan, S., et al. (2021). *RoFormer: Rotary Position Embedding*. arXiv:2104.09864.
- Press, O., Smith, N. A., Lewis, M. (2021). *Train Short, Test Long: Attention with Linear Biases (ALiBi)*. arXiv:2108.12409.
- Shazeer, N. (2019). *Fast Transformer Decoding: One Write‑Head is All You Need* (MQA). arXiv:1911.02150.
- Ainslie, J., Lee‑Thorp, J., de Jong, M., et al. (2023). *GQA: Training Generalized Multi‑Query Transformer Models from Multi‑Head Checkpoints*. EMNLP. arXiv:2305.13245.
- Kwon, W., Li, Z., Zhuang, S., et al. (2023). *Efficient Memory Management for LLM Serving with PagedAttention* (vLLM). arXiv:2309.06180.
- Touvron, H., Lavril, T., Izacard, G., et al. (2023). *LLaMA: Open and Efficient Foundation Language Models*. arXiv:2302.13971.
- Gu, A., Dao, T. (2023). *Mamba: Linear‑Time Sequence Modeling with Selective State Spaces*. arXiv:2312.00752.
- Peng, B., et al. (2023). *RWKV: Reinventing RNNs for the Transformer Era*. arXiv:2305.13048.
- Lieber, O., Lenz, B., Bata, H., et al. (2024). *Jamba: A Hybrid Transformer‑Mamba Language Model*. arXiv:2403.19887.
- Hu, E. J., Shen, Y., Wallis, P., et al. (2021). *LoRA: Low‑Rank Adaptation of Large Language Models*. arXiv:2106.09685.
- Ouyang, L., Wu, J., Jiang, X., et al. (2022). *Training language models to follow instructions with human feedback*. OpenReview.

## Poznámky

1.  <span id="cite_note-vaswani2017-1">↑ <sup>[1.00](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-0)</sup> <sup>[1.01](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-1)</sup> <sup>[1.02](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-2)</sup> <sup>[1.03](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-3)</sup> <sup>[1.04](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-4)</sup> <sup>[1.05](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-5)</sup> <sup>[1.06](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-6)</sup> <sup>[1.07](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-7)</sup> <sup>[1.08](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-8)</sup> <sup>[1.09](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-9)</sup> <sup>[1.10](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-10)</sup> <sup>[1.11](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-vaswani2017_1-11)</sup> Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). *Attention Is All You Need*. NeurIPS. arXiv:1706.03762.</span>
2.  <span id="cite_note-tay2020-2">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-tay2020_2-0) Tay, Y., Dehghani, M., Bahri, D., Metzler, D. (2020). *Efficient Transformers: A Survey*. arXiv:2009.06732.</span>
3.  <span id="cite_note-xiong2020-3">↑ <sup>[3.0](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-xiong2020_3-0)</sup> <sup>[3.1](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-xiong2020_3-1)</sup> Xiong, R., Yang, Y., He, D., et al. (2020). *On Layer Normalization in the Transformer Architecture*. ICML. arXiv:2002.04745.</span>
4.  <span id="cite_note-shazeer2019-4">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-shazeer2019_4-0) Shazeer, N. (2019). *Fast Transformer Decoding: One Write‑Head is All You Need*. arXiv:1911.02150.</span>
5.  <span id="cite_note-ainslie2023-5">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-ainslie2023_5-0) Ainslie, J., Lee‑Thorp, J., de Jong, M., et al. (2023). *GQA: Training Generalized Multi‑Query Transformer Models from Multi‑Head Checkpoints*. EMNLP. arXiv:2305.13245.</span>
6.  <span id="cite_note-su2021-6">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-su2021_6-0) Su, J., Lu, Y., Pan, S., et al. (2021). *RoFormer: Rotary Position Embedding*. arXiv:2104.09864.</span>
7.  <span id="cite_note-press2021-7">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-press2021_7-0) Press, O., Smith, N. A., Lewis, M. (2021). *Train Short, Test Long: Attention with Linear Biases (ALiBi)*. arXiv:2108.12409.</span>
8.  <span id="cite_note-devlin2019-8">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-devlin2019_8-0) Devlin, J., Chang, M.‑W., Lee, K., Toutanova, K. (2019). *BERT: Pre‑training of Deep Bidirectional Transformers for Language Understanding*. arXiv:1810.04805.</span>
9.  <span id="cite_note-radford2018-9">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-radford2018_9-0) Radford, A., Narasimhan, K., Salimans, T., Sutskever, I. (2018). *Improving Language Understanding by Generative Pre‑Training*. OpenAI.</span>
10. <span id="cite_note-brown2020-10">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-brown2020_10-0) Brown, T. B., Mann, B., Ryder, N., et al. (2020). *Language Models Are Few‑Shot Learners*. NeurIPS. arXiv:2005.14165.</span>
11. <span id="cite_note-llama2023-11">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-llama2023_11-0) Touvron, H., Lavril, T., Izacard, G., et al. (2023). *LLaMA: Open and Efficient Foundation Language Models*. arXiv:2302.13971.</span>
12. <span id="cite_note-raffel2019-12">↑ <sup>[12.0](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-raffel2019_12-0)</sup> <sup>[12.1](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-raffel2019_12-1)</sup> Raffel, C., Shazeer, N., Roberts, A., et al. (2019). *Exploring the Limits of Transfer Learning with a Unified Text‑to‑Text Transformer*. JMLR. arXiv:1910.10683.</span>
13. <span id="cite_note-dosovitskiy2020-13">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-dosovitskiy2020_13-0) Dosovitskiy, A., Beyer, L., Kolesnikov, A., et al. (2020). *An Image is Worth 16×16 Words: Transformers for Image Recognition at Scale*. ICLR. arXiv:2010.11929.</span>
14. <span id="cite_note-liu2021-swin-14">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-liu2021-swin_14-0) Liu, Z., Lin, Y., Cao, Y., et al. (2021). *Swin Transformer: Hierarchical Vision Transformer using Shifted Windows*. ICCV. arXiv:2103.14030.</span>
15. <span id="cite_note-gu2023-mamba-15">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-gu2023-mamba_15-0) Gu, A., Dao, T. (2023). *Mamba: Linear‑Time Sequence Modeling with Selective State Spaces*. arXiv:2312.00752.</span>
16. <span id="cite_note-peng2023-rwkv-16">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-peng2023-rwkv_16-0) Peng, B., et al. (2023). *RWKV: Reinventing RNNs for the Transformer Era*. arXiv:2305.13048.</span>
17. <span id="cite_note-lieber2024-jamba-17">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-lieber2024-jamba_17-0) Lieber, O., Lenz, B., Bata, H., et al. (2024). *Jamba: A Hybrid Transformer‑Mamba Language Model*. arXiv:2403.19887.</span>
18. <span id="cite_note-hu2021-lora-18">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-hu2021-lora_18-0) Hu, E. J., Shen, Y., Wallis, P., et al. (2021). *LoRA: Low‑Rank Adaptation of Large Language Models*. arXiv:2106.09685.</span>
19. <span id="cite_note-ouyang2022-rlhf-19">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-ouyang2022-rlhf_19-0) Ouyang, L., Wu, J., Jiang, X., et al. (2022). *Training language models to follow instructions with human feedback*. OpenReview.</span>
20. <span id="cite_note-kwon2023-vllm-20">[↑](https://systems-analysis.info/int/Transformer_architecture_(CS)#cite_ref-kwon2023-vllm_20-0) Kwon, W., Li, Z., Zhuang, S., et al. (2023). *Efficient Memory Management for LLM Serving with PagedAttention*. arXiv:2309.06180.</span>
