Skip to content

Commit 494d0de

Browse files
luigipascalclaude
andauthored
Add Chapters 11–15: complete the Practitioner Track (#4)
Ships the final five Practitioner Track chapters at full Ch 1-10 parity: - Ch 11: Large Language Models & Transformers (10h) - Ch 12: Prompt Engineering & In-Context Learning (6h) - Ch 13: Retrieval-Augmented Generation (RAG) (8h) - Ch 14: Fine-tuning & Adaptation Techniques (8h) - Ch 15: MLOps & Model Deployment (8h) Each chapter includes the full Berta Chapters layout: README, 3 notebooks (intro / intermediate / advanced), 4 scripts (config + 3 utility/main), 2 problem-set notebooks plus solutions and a CI-friendly solutions.py, 3 Mermaid diagrams, sample datasets, and pinned requirements. All notebook code runs offline with no external API calls; optional heavy deps (transformers, peft, faiss, fastapi, mlflow) are wrapped in try/except with install hints. Site integration: - Top-level README / ROADMAP / SYLLABUS marked Practitioner Track complete - mkdocs.yml nav adds 25 new entries (5 chapter pages + 15 content pages) - docs/chapters: 5 new overview pages + 15 content summary pages - Homepage stats regenerated: 15 chapters, 45 notebooks, 57 exercises, 46 diagrams, 124h of content Validated locally with the same logic as .github/workflows/validate-chapters.yml: all 15 chapters pass structure checks, all 35 new notebooks parse as valid JSON, all five new solutions.py CI scripts exit 0. https://claude.ai/code/session_019bdy2AsZg3rFmcMgRyPQS1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 93e8a10 commit 494d0de

131 files changed

Lines changed: 17915 additions & 49 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ Apply what you've learned to real-world machine learning and AI problems.
5656
| 8 | [Unsupervised Learning: Clustering & Dimensionality Reduction](./chapters/chapter-08-unsupervised-learning/) | 8h | ✅ Available |
5757
| 9 | [Deep Learning Fundamentals](./chapters/chapter-09-deep-learning-fundamentals/) | 12h | ✅ Available |
5858
| 10 | [Natural Language Processing Basics](./chapters/chapter-10-natural-language-processing-basics/) | 8–10h | ✅ Available |
59-
| 11 | Large Language Models & Transformers | 10h | 🔄 Coming Soon |
60-
| 12 | Prompt Engineering & In-Context Learning | 6h | 🔄 Coming Soon |
61-
| 13 | Retrieval-Augmented Generation (RAG) | 8h | 🔄 Coming Soon |
62-
| 14 | Fine-tuning & Adaptation Techniques | 8h | 🔄 Coming Soon |
63-
| 15 | MLOps & Model Deployment | 8h | 🔄 Coming Soon |
59+
| 11 | [Large Language Models & Transformers](./chapters/chapter-11-large-language-models-and-transformers/) | 10h | ✅ Available |
60+
| 12 | [Prompt Engineering & In-Context Learning](./chapters/chapter-12-prompt-engineering-and-in-context-learning/) | 6h | ✅ Available |
61+
| 13 | [Retrieval-Augmented Generation (RAG)](./chapters/chapter-13-retrieval-augmented-generation/) | 8h | ✅ Available |
62+
| 14 | [Fine-tuning & Adaptation Techniques](./chapters/chapter-14-fine-tuning-and-adaptation/) | 8h | ✅ Available |
63+
| 15 | [MLOps & Model Deployment](./chapters/chapter-15-mlops-and-model-deployment/) | 8h | ✅ Available |
6464

6565
### Advanced & Specialization Track (Master Complex Topics)
6666
Dive deep into cutting-edge techniques and specialized domains.
@@ -268,12 +268,12 @@ pie title Curriculum Breakdown
268268
"Community Requested" : 999
269269
```
270270

271-
- **Chapters Available Now**: 9 (76 hours of content)
271+
- **Chapters Available Now**: 15 (116 hours of content) — Foundation + Practitioner tracks complete
272272
- **Total Planned Chapters**: 25+
273-
- **Jupyter Notebooks**: 21 interactive notebooks
274-
- **SVG Diagrams**: 21 professional diagrams
275-
- **Exercises**: 37 problems with solutions
276-
- **Datasets**: 5 practice datasets
273+
- **Jupyter Notebooks**: 45 interactive notebooks
274+
- **SVG/Mermaid Diagrams**: 36 professional diagrams
275+
- **Exercises**: 60+ problems with solutions
276+
- **Datasets**: 30+ practice datasets
277277
- **Community-Requested Chapters**: Growing daily
278278

279279
---
@@ -370,5 +370,5 @@ Every share helps more people learn AI. Thank you! 🙏
370370

371371
**Created by Luigi Pascal Rondanini | Generated by Berta AI**
372372

373-
*Last Updated: March 2026*
373+
*Last Updated: May 2026*
374374
*All chapters maintained and continuously improved based on community feedback.*

ROADMAP.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Our vision for the future of AI education. This is a living document—prioritie
88

99
**Master Repository**: ✅ Live
1010
**Foundation Track**: ✅ Complete (5 chapters available)
11-
**Practitioner Track**: 🔄 In progress (4 of 10 chapters available)
11+
**Practitioner Track**: ✅ Complete (10 of 10 chapters available)
1212
**Advanced Track**: 📋 Planned (10 chapters)
1313
**Community Requests**: 🚀 Starting (unlimited)
1414
**Total Planned**: 25+ chapters, 500+ hours of content
15-
**Currently Available**: 9 chapters, 76 hours of content, 27 SVG diagrams
15+
**Currently Available**: 15 chapters, 116 hours of content, 36 diagrams
1616

1717
---
1818

@@ -21,7 +21,7 @@ Our vision for the future of AI education. This is a living document—prioritie
2121
### Objectives
2222
- ✅ Establish master repository (DONE)
2323
- ✅ Complete Foundation Track (DONE)
24-
-Begin Practitioner Track (Ch 6-9 available)
24+
-Complete Practitioner Track (Ch 6-15 available)
2525
- 🔄 Establish community request process
2626
- 🔄 Build first 100 community chapters
2727
- ✅ Create core infrastructure and documentation (DONE)
@@ -37,11 +37,11 @@ Our vision for the future of AI education. This is a living document—prioritie
3737
- One new chapter released per week
3838
- New chapters unlock after reaching **10 newsletter subscribers**
3939
- ✅ Foundation Track complete (Chapters 1-5)
40-
- ✅ Practitioner Track started (Chapters 6-9)
40+
- ✅ Practitioner Track complete (Chapters 6-15)
4141

4242
### Metrics to Track
4343
- Newsletter subscribers (target: 10 to unlock weekly releases)
44-
- Chapters completed: 9 / 25
44+
- Chapters completed: 15 / 25
4545
- Community requests received
4646
- Stars on master repo
4747

@@ -50,7 +50,7 @@ Our vision for the future of AI education. This is a living document—prioritie
5050
## Phase 2: Practitioner Track & Community Scale
5151

5252
### Objectives
53-
- 🔄 Complete Practitioner Track (10 chapters, releasing one per week)
53+
- Complete Practitioner Track (10 of 10 chapters released)
5454
- 🔄 Scale community chapters to 50+
5555
- 🔄 Establish quality standards and review process
5656
- 🔄 Begin analytics and learner tracking
@@ -61,12 +61,12 @@ Our vision for the future of AI education. This is a living document—prioritie
6161
- [x] Chapter 7: Supervised Learning (Regression & Classification)
6262
- [x] Chapter 8: Unsupervised Learning
6363
- [x] Chapter 9: Deep Learning Fundamentals
64-
- [ ] Chapter 10: Natural Language Processing Basics
65-
- [ ] Chapter 11: Large Language Models & Transformers
66-
- [ ] Chapter 12: Prompt Engineering
67-
- [ ] Chapter 13: Retrieval-Augmented Generation (RAG)
68-
- [ ] Chapter 14: Fine-tuning & Adaptation
69-
- [ ] Chapter 15: MLOps & Deployment
64+
- [x] Chapter 10: Natural Language Processing Basics
65+
- [x] Chapter 11: Large Language Models & Transformers
66+
- [x] Chapter 12: Prompt Engineering
67+
- [x] Chapter 13: Retrieval-Augmented Generation (RAG)
68+
- [x] Chapter 14: Fine-tuning & Adaptation
69+
- [x] Chapter 15: MLOps & Deployment
7070

7171
### Infrastructure Improvements
7272
- [ ] GitHub Actions for automated testing

SYLLABUS.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ graph TD
1818
CH7["Ch 7: Supervised Learning<br/>10h | Available"]
1919
CH8["Ch 8: Unsupervised Learning<br/>8h | Available"]
2020
CH9["Ch 9: Deep Learning<br/>12h | Available"]
21-
CH10["Ch 10: NLP Basics<br/>10h | Coming Soon"]
22-
CH11["Ch 11: LLMs & Transformers<br/>10h | Coming Soon"]
23-
CH12["Ch 12: Prompt Engineering<br/>6h | Coming Soon"]
24-
CH13["Ch 13: RAG<br/>8h | Coming Soon"]
25-
CH14["Ch 14: Fine-tuning<br/>8h | Coming Soon"]
26-
CH15["Ch 15: MLOps<br/>8h | Coming Soon"]
21+
CH10["Ch 10: NLP Basics<br/>10h | Available"]
22+
CH11["Ch 11: LLMs & Transformers<br/>10h | Available"]
23+
CH12["Ch 12: Prompt Engineering<br/>6h | Available"]
24+
CH13["Ch 13: RAG<br/>8h | Available"]
25+
CH14["Ch 14: Fine-tuning<br/>8h | Available"]
26+
CH15["Ch 15: MLOps<br/>8h | Available"]
2727
2828
CH1 --> CH2
2929
CH1 --> CH3
@@ -58,15 +58,15 @@ graph TD
5858
style CH7 fill:#4caf50,color:#fff
5959
style CH8 fill:#4caf50,color:#fff
6060
style CH9 fill:#4caf50,color:#fff
61-
style CH10 fill:#f3e5f5
62-
style CH11 fill:#f3e5f5
63-
style CH12 fill:#f3e5f5
64-
style CH13 fill:#f3e5f5
65-
style CH14 fill:#f3e5f5
66-
style CH15 fill:#f3e5f5
61+
style CH10 fill:#4caf50,color:#fff
62+
style CH11 fill:#4caf50,color:#fff
63+
style CH12 fill:#4caf50,color:#fff
64+
style CH13 fill:#4caf50,color:#fff
65+
style CH14 fill:#4caf50,color:#fff
66+
style CH15 fill:#4caf50,color:#fff
6767
```
6868

69-
**Legend**: Green = Available | Purple = Practitioner (Coming Soon) | Chapters 1-9 fully available with SVG diagrams
69+
**Legend**: Green = Available | Practitioner Track (Chapters 6–15) is now complete; Advanced Track (Chapters 16+) is planned
7070

7171
---
7272

@@ -83,12 +83,12 @@ graph TD
8383
| 7 | [Supervised Learning](./chapters/chapter-07-supervised-learning/) | Practitioner | 10h | Available | 3 notebooks, scripts, 5 exercises, 3 SVGs |
8484
| 8 | [Unsupervised Learning](./chapters/chapter-08-unsupervised-learning/) | Practitioner | 8h | Available | 3 notebooks, scripts, 5 exercises, 3 SVGs |
8585
| 9 | [Deep Learning Fundamentals](./chapters/chapter-09-deep-learning-fundamentals/) | Practitioner | 12h | Available | 3 notebooks, scripts, 5 exercises, 3 SVGs |
86-
| 10 | Natural Language Processing | Practitioner | 10h | Planned | - |
87-
| 11 | LLMs & Transformers | Practitioner | 10h | Planned | - |
88-
| 12 | Prompt Engineering | Practitioner | 6h | Planned | - |
89-
| 13 | RAG | Practitioner | 8h | Planned | - |
90-
| 14 | Fine-tuning & Adaptation | Practitioner | 8h | Planned | - |
91-
| 15 | MLOps & Deployment | Practitioner | 8h | Planned | - |
86+
| 10 | [Natural Language Processing](./chapters/chapter-10-natural-language-processing-basics/) | Practitioner | 10h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
87+
| 11 | [LLMs & Transformers](./chapters/chapter-11-large-language-models-and-transformers/) | Practitioner | 10h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
88+
| 12 | [Prompt Engineering](./chapters/chapter-12-prompt-engineering-and-in-context-learning/) | Practitioner | 6h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
89+
| 13 | [RAG](./chapters/chapter-13-retrieval-augmented-generation/) | Practitioner | 8h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
90+
| 14 | [Fine-tuning & Adaptation](./chapters/chapter-14-fine-tuning-and-adaptation/) | Practitioner | 8h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
91+
| 15 | [MLOps & Deployment](./chapters/chapter-15-mlops-and-model-deployment/) | Practitioner | 8h | Available | 3 notebooks, scripts, 4 exercises, 3 diagrams |
9292
| 16 | Multi-Agent Systems | Advanced | 10h | Planned | - |
9393
| 17 | Advanced RAG | Advanced | 10h | Planned | - |
9494
| 18 | Reinforcement Learning | Advanced | 12h | Planned | - |
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Chapter 11: Large Language Models & Transformers
2+
3+
**Track**: Practitioner | **Time**: 10 hours | **Prerequisites**: [Chapter 10: Natural Language Processing Basics](../chapter-10-natural-language-processing-basics/)
4+
5+
---
6+
7+
Large language models (LLMs) and the **Transformer** architecture power most of modern AI: ChatGPT, Claude, Gemini, Llama, and the embedding/RAG systems built on top of them. This chapter takes the attention and transfer-learning ideas from Chapter 10 and builds them up into a full understanding of how transformers work, how pretrained LLMs are used, and how to build real applications around them.
8+
9+
You will implement **scaled dot-product attention**, **multi-head attention**, **positional encodings**, and a **transformer block** in pure NumPy; work with **pretrained models** (BERT, DistilBERT, GPT-style) through a graceful Hugging Face fallback; generate embeddings; explore **decoding strategies** (greedy, top-k, top-p, temperature); and study **scaling laws**, **evaluation**, and how to ship LLM-powered features.
10+
11+
---
12+
13+
## Learning Objectives
14+
15+
By the end of this chapter, you will be able to:
16+
17+
1. **Explain the Transformer architecture** — self-attention, multi-head attention, positional encoding, residuals, layer norm
18+
2. **Implement attention from scratch** — scaled dot-product and multi-head attention in NumPy
19+
3. **Distinguish encoder, decoder, and encoder–decoder models** — and pick the right family for a task
20+
4. **Use pretrained LLMs** — tokenize, extract embeddings, run inference with Hugging Face `transformers`
21+
5. **Apply LLM embeddings to downstream tasks** — similarity search and frozen-embedding classifiers
22+
6. **Generate text with controlled decoding** — greedy, sampling, temperature, top-k, top-p, repetition penalty
23+
7. **Evaluate LLMs** — perplexity, BLEU/ROUGE, win-rate, and the limits of LLM-as-judge
24+
8. **Design LLM-powered systems** — chunking, streaming, function calling, and the road to RAG and fine-tuning
25+
26+
---
27+
28+
## Prerequisites
29+
30+
- **Chapter 10: Natural Language Processing Basics** — tokenization, embeddings, attention intuition, transfer learning
31+
- **Chapter 9: Deep Learning Fundamentals** — backprop, layers, optimizers, training loops
32+
- Comfort with NumPy, linear algebra (matmul, softmax), and basic probability
33+
- Optional: PyTorch for the deeper sections (the chapter runs without it)
34+
35+
---
36+
37+
## What You'll Build
38+
39+
- **Mini-Transformer in NumPy** — scaled dot-product attention, multi-head attention, positional encoding, and a single encoder block you can run end-to-end
40+
- **Embedding service** — wrap a pretrained model (or fallback) to turn text into vectors and search by similarity
41+
- **Frozen-embedding classifier** — sentence embeddings + scikit-learn for a fast, strong text classifier
42+
- **Decoding playground** — greedy, temperature, top-k and top-p samplers operating on real logit distributions
43+
- **LLM application sketch** — chunking, prompt assembly, and streaming patterns that lead into Chapter 12 (Prompt Engineering) and Chapter 13 (RAG)
44+
45+
---
46+
47+
## Time Commitment
48+
49+
| Section | Time |
50+
|---------|------|
51+
| Notebook 01: Transformer Architecture (attention, multi-head, positional encoding, blocks) | 3 hours |
52+
| Notebook 02: Pretrained LLMs (tokenizers, embeddings, classification, model selection) | 3 hours |
53+
| Notebook 03: Advanced LLMs (decoding, KV cache, scaling, evaluation, apps) | 2.5 hours |
54+
| Exercises (Problem Sets 1 & 2) | 1.5 hours |
55+
| **Total** | **10 hours** |
56+
57+
---
58+
59+
## Technology Stack
60+
61+
- **Numerics**: `numpy`, `pandas`, `scikit-learn`
62+
- **Visualization**: `matplotlib`
63+
- **Notebooks**: `jupyter`, `ipywidgets`
64+
- **Optional (LLMs)**: `transformers`, `tokenizers`, `accelerate`, `datasets`, `sentencepiece`, `huggingface-hub`
65+
- **Optional (DL)**: `torch` for the deeper transformer/embedding sections
66+
67+
---
68+
69+
## Quick Start
70+
71+
1. **Clone and enter the chapter**
72+
```bash
73+
cd chapters/chapter-11-large-language-models-and-transformers
74+
```
75+
76+
2. **Create a virtual environment and install dependencies**
77+
```bash
78+
python -m venv .venv
79+
.venv\Scripts\activate # Windows
80+
# source .venv/bin/activate # macOS/Linux
81+
pip install -r requirements.txt
82+
# Optional, for the pretrained-LLM sections:
83+
# pip install torch transformers tokenizers accelerate datasets sentencepiece huggingface-hub
84+
```
85+
86+
3. **Run the notebooks**
87+
```bash
88+
jupyter notebook notebooks/
89+
```
90+
Start with `01_transformer_architecture.ipynb`, then `02_pretrained_llms.ipynb`, then `03_advanced_llms.ipynb`.
91+
92+
---
93+
94+
## Notebook Guide
95+
96+
| Notebook | Focus |
97+
|----------|--------|
98+
| **01_transformer_architecture.ipynb** | From RNN limits to attention; scaled dot-product and multi-head attention in NumPy; sinusoidal positional encoding; encoder block; encoder/decoder/decoder-only families; tokenization (BPE/WordPiece) intuition |
99+
| **02_pretrained_llms.ipynb** | Loading pretrained models with `transformers` (with fallback); `AutoTokenizer`; extracting and visualizing embeddings; mean pooling for sentence vectors; frozen-embedding classification; choosing BERT vs RoBERTa vs DistilBERT vs GPT |
100+
| **03_advanced_llms.ipynb** | Decoding strategies (greedy, sampling, temperature, top-k, top-p); KV cache shapes; scaling laws; evaluation (perplexity, BLEU/ROUGE, LLM-as-judge); building LLM apps (chunking, streaming, function calling); capstone design |
101+
102+
---
103+
104+
## Exercise Guide
105+
106+
- **Problem Set 1** (`exercises/problem_set_1.ipynb`) — implement scaled dot-product attention; build sinusoidal positional encoding; plot an attention heatmap; tokenize text and reason about BPE; multi-head attention shape check; compare encoder/decoder/encoder–decoder
107+
- **Problem Set 2** (`exercises/problem_set_2.ipynb`) — implement top-k sampling; build a tiny transformer block from scratch; compute perplexity; train an embedding-based classifier; reason about prompt vs context-window trade-offs; evaluate generations
108+
- **Solutions** — in `exercises/solutions/` with runnable code, explanations, and alternatives
109+
110+
---
111+
112+
## How to Run Locally
113+
114+
- Use Python 3.9+ and the versions in `requirements.txt` for reproducibility.
115+
- The numpy-only sections (Notebook 01, large parts of 03, all Problem Set 1) require **no** transformer installs.
116+
- For Notebook 02 and the embedding sections, install the optional `transformers` / `torch` extras shown above.
117+
- Scripts in `scripts/` can be run from the chapter root; notebooks assume that root as working directory.
118+
119+
---
120+
121+
## Common Troubleshooting
122+
123+
- **`transformers` not installed** — Notebooks fall back to NumPy/sklearn stubs and print a `pip install transformers` hint; install when you want the real models
124+
- **Hugging Face download blocked / offline** — Set `HF_HUB_OFFLINE=1` and use a locally cached model, or rely on the fallback paths in the notebooks
125+
- **Out-of-memory loading a large model** — Switch `MODEL_NAME` in `scripts/config.py` to `distilbert-base-uncased` or `sentence-transformers/all-MiniLM-L6-v2`
126+
- **CUDA/GPU** — Optional; everything runs on CPU. Set `CUDA_VISIBLE_DEVICES=""` to force CPU if a GPU is misbehaving
127+
- **Slow first run** — Pretrained model download can take a few minutes; subsequent runs hit the local cache
128+
129+
---
130+
131+
## Next Steps
132+
133+
- **Chapter 12: Prompt Engineering** — Now that you understand how LLMs tokenize, attend, and decode, Chapter 12 turns to *steering* them: prompt patterns, few-shot, chain-of-thought, structured output, and evaluation of prompts.
134+
135+
---
136+
137+
**Generated by Berta AI**
138+
139+
Part of [Berta Chapters](https://github.com/your-org/berta-chapters) — open-source AI curriculum.
140+
*March 2026 — Berta Chapters*
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
graph LR
2+
X["Input X (batch, seq, d_model)"] --> SP["Split into h heads"]
3+
SP --> H1["Head 1: Attention(Q1, K1, V1)"]
4+
SP --> H2["Head 2: Attention(Q2, K2, V2)"]
5+
SP --> H3["..."]
6+
SP --> Hh["Head h: Attention(Qh, Kh, Vh)"]
7+
H1 --> C["Concat (batch, seq, d_model)"]
8+
H2 --> C
9+
H3 --> C
10+
Hh --> C
11+
C --> P["Projection Wo"]
12+
P --> O["Output (batch, seq, d_model)"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
graph LR
2+
X["Input X"] --> Q["Q = X * Wq"]
3+
X --> K["K = X * Wk"]
4+
X --> V["V = X * Wv"]
5+
Q --> S["Scores = Q * K^T / sqrt(d_k)"]
6+
K --> S
7+
S --> M["Optional Mask"]
8+
M --> SM["Softmax"]
9+
SM --> A["Attention Weights"]
10+
A --> O["Output = A * V"]
11+
V --> O
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
graph TB
2+
A["Input Tokens"] --> B["Token Embedding"]
3+
B --> C["+ Positional Encoding"]
4+
C --> D["Encoder Block x N"]
5+
D --> E["Encoder Output"]
6+
7+
F["Target Tokens (shifted)"] --> G["Token Embedding"]
8+
G --> H["+ Positional Encoding"]
9+
H --> I["Decoder Block x N"]
10+
E -.->|Cross-Attention| I
11+
I --> J["Linear + Softmax"]
12+
J --> K["Output Probabilities"]
13+
14+
subgraph Encoder Block
15+
D1["Multi-Head Self-Attention"] --> D2["Add & LayerNorm"]
16+
D2 --> D3["Feed-Forward"]
17+
D3 --> D4["Add & LayerNorm"]
18+
end
19+
20+
subgraph Decoder Block
21+
I1["Masked Multi-Head Self-Attention"] --> I2["Add & LayerNorm"]
22+
I2 --> I3["Cross-Attention"]
23+
I3 --> I4["Add & LayerNorm"]
24+
I4 --> I5["Feed-Forward"]
25+
I5 --> I6["Add & LayerNorm"]
26+
end

0 commit comments

Comments
 (0)