How analog76/llm-internals works
This repository is a collection of LLM learning material and practical inference tooling, rather than a single application. Its learning path spans foundations, distributed training, and inference; its operational branch includes benchmark helpers and a vLLM chat setup. The sampled chat server serves a local browser UI and proxies API requests to vLLM. The README describes broader planned structure, but many paths it mentions are absent from the supplied tree; unsampled tool behavior and cross-topic links are therefore not inferred.
Main entry points: chat-server.py Chat proxy · foundations Math foundations · flash-attention.md Flash attention · 01-foundations.md Distributed foundations
Components 21
Learning material
- Math foundations
docs/foundations - Flash attention
docs/foundations/flash-attention.md - Distributed foundations
docs/distributed/01-foundations.md - Ring all-reduce
docs/distributed/02-ring-all-reduce.md - Tree all-reduce
docs/distributed/03-tree-allreduce.md - Ring vs tree
docs/distributed/04-ring-versus-tree.md - NCCL structures
docs/distributed/05-nccl-data-structures.md - SGLang inference
docs/inference/sglang/sglang.txt - vLLM startup
docs/inference/vllm/vllm-startup-log-walkthrough.md
Benchmark tools
- Benchmark runners
tools/benchmarks - Result summarizer
tools/benchmarks/summarize.py - Benchmark guides
tools/benchmarks - SGLang deployment
tools/benchmarks/sglang-deployment.md
vLLM operations
- GPU runbook
tools/vllm/aws-g5/RUNBOOK.md - vLLM setup
tools/vllm/aws-g5/setup-vllm.sh - vLLM serving
tools/vllm/aws-g5/serve-vllm.sh - Chat proxy
tools/vllm/aws-g5/chat-server.py - Chat UI
tools/vllm/aws-g5/chat.html
Other components
- Engineer
- Browser user
- vLLM API
Connections 12
- Engineer → Math foundations: studies
README.md - Engineer → Flash attention: studies
README.md - Engineer → Distributed foundations: studies
README.md - Engineer → Ring all-reduce: studies
README.md - Engineer → Tree all-reduce: studies
README.md - Engineer → Ring vs tree: studies
README.md - Engineer → NCCL structures: studies
README.md - Engineer → SGLang inference: studies
README.md - Engineer → vLLM startup: studies
README.md - Browser user → Chat proxy: requests UI
tools/vllm/aws-g5/chat-server.py - Chat proxy → Chat UI: serves
tools/vllm/aws-g5/chat-server.py - Chat proxy → vLLM API: proxies API
tools/vllm/aws-g5/chat-server.py