Skip to content

albert-lv/LLM-primer

LLM Primer

CI Deploy License: MIT Astro Starlight

A bilingual, multi-tier, community-driven knowledge base for Large Language Model (LLM) principles, papers, and interactive demos. Designed to take learners from intuition to implementation to research.

中文文档 · 在线阅读 / Read Online

What You Will Learn

  • Foundations — Tokenization, Attention, Transformer, Sampling & Decoding, Positional Encoding, Embeddings, Emergent Abilities
  • Training — Pretraining & Scaling Laws, Fine-Tuning & Alignment (SFT, RLHF, DPO)
  • Inference — KV Cache & Quantization, Efficient Attention, Long Context
  • Applications — RAG & Retrieval Augmentation, Agents & Tool Use, Prompt Engineering, Evaluation & Benchmarks, Safety & Security

Highlights

  • Three reading tiers: Intuitive mental models, Engineering trade-offs, Research papers and open questions
  • Bilingual: Full Chinese and English content
  • Interactive demos: Tokenizer visualization, attention heatmap, sampling playground
  • Paper-driven: 80+ curated papers with bilingual TLDRs; key claims trace back to paper entries
  • Community curated: Contributions welcome via issues and pull requests

Local Development

Requirements: Node 20 and pnpm 9.

pnpm install
pnpm dev        # localhost:4321
pnpm build      # build to dist/
pnpm test       # run tests
pnpm lint:content  # validate article frontmatter and paper refs

Deployment

The site is deployed to Cloudflare Pages. See .github/workflows/deploy.yml for the CI/CD configuration.

Contributing

We welcome corrections, translations, new articles, demo proposals, and paper summaries. Please read CONTRIBUTING.md and CONTRIBUTING.zh-CN.md before submitting.

License

This project is licensed under the MIT License.

Keywords

llm large-language-models transformer attention rag agents prompt-engineering machine-learning nlp papers bilingual education astro starlight

About

A bilingual, multi-tier, community-PR-driven knowledge base for LLM principles and papers.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors