Skip to content

Commit 607c0d3

Browse files
committed
doc: refine diagram of software architecture in toplevel README.md
1 parent 7a22fa6 commit 607c0d3

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

README.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,21 @@ Instructions for adding support for new models: [HOWTO-add-model.md](docs/develo
246246
| [OpenCL](docs/backend/OPENCL.md) | Adreno GPU |
247247

248248
## Software architecture
249-
250249
```mermaid
251250
block-beta
252251
columns 1
253252
254253
block:llamacpp
255-
llamacpp["llama_cpp"]
256-
style llamacpp fill:#3c3,color:#000,stroke:#000
254+
llamacpp["llama_cpp"]
255+
style llamacpp fill:#3c3,color:#000,stroke:#000
257256
end
258257
259-
block:ggml
260-
ggml["GGML"]
261-
style ggml fill:#3c3,color:#000,stroke:#000
258+
block:ggml_backend
259+
ggml_backend["GGML backend subsystem"]
260+
style ggml_backend fill:#3c3,color:#000,stroke:#000
262261
263-
ggml_cpu["ggml-cpu"]
262+
block:ggmlbackends
263+
ggml_cpu["ggml-cpu"]
264264
ggml_metal["ggml-metal"]
265265
ggml_sycl["ggml-sycl"]
266266
ggml_cuda["ggml-cuda"]
@@ -284,13 +284,31 @@ block:ggml
284284
style ggml_qnn fill:#cc3,color:#000,stroke:#000
285285
style ggml_ane fill:#fff,color:#000,stroke:#f00,stroke-width:2,stroke-dasharray:5
286286
style ggml_nnpa fill:#cc3,color:#000,stroke:#000
287+
end
287288
end
288289
289290
block:ggml_pal
290-
ggml_pal["GGML Platform Abstraction Layer"]
291-
style ggml_pal fill:#c33,color:#000,stroke:#000
291+
ggml_pal["Platform Abstraction Layer"]
292+
style ggml_pal fill:#c33,color:#000,stroke:#000
292293
end
293294
295+
block:ggml_backendsubsystem
296+
ggml_backendsubsystem["GGML backend subsystem"]
297+
style ggml_backendsubsystem fill:#3c3,color:#000,stroke:#000
298+
end
299+
300+
block:group1:2
301+
columns 2
302+
block:ggml_tensor
303+
ggml_tensor["GGML tensor"]
304+
style ggml_tensor fill:#3c3,color:#000,stroke:#000
305+
end
306+
307+
block:ggml_cgraph
308+
ggml_cgraph["GGML cgraph"]
309+
style ggml_cgraph fill:#3c3,color:#000,stroke:#000
310+
end
311+
end
294312
295313
block:OS
296314
Windows
@@ -350,6 +368,7 @@ flowchart LR
350368
end
351369
```
352370

371+
353372
## Building the project
354373

355374
The main product of this project is the `llama` library. Its C-style interface can be found in [include/llama.h](include/llama.h).

0 commit comments

Comments
 (0)