dive-into-llms

《动手学大模型Dive into LLMs》系列编程实践教程

21 articles 30.2k View on GitHub ↗
21 articles
How do Multi-Modal LLMs Process and Generate Text and Images: A Deep Dive into NExT-GPT

Discover how multi-modal LLMs process and generate text and images. Learn about modality-specific encoders, joint reasoning, and specialized decoders like Stable Diffusion.

deep-dive
Apr 16, 2026
Architecture of Multi-Modal Large Language Models: Encoder-LLM-Decoder vs Task Scheduler Patterns

Explore multi-modal large language model architectures. Understand encoder-LLM-decoder and task scheduler patterns for processing diverse data inputs.

architecture
Apr 16, 2026
How to Evaluate the Success of Knowledge Editing in LLMs: The EasyEdit Metrics Framework

Learn how to evaluate knowledge editing in LLMs with the EasyEdit metrics framework. Discover reliability, generality, locality, and portability measures for successful fact updates without compromising model capabilities.

best-practices
Apr 16, 2026
ROME and MEMIT Methods for Knowledge Editing in LLMs: A Technical Guide

Explore ROME and MEMIT knowledge editing methods for LLMs. Learn how rank-one updates and low-rank projections precisely modify model facts without full retraining. Dive into LLMs with this technical guide.

technical-guide
Apr 16, 2026
Knowledge Editing Techniques for Language Models: A Practical Guide with EasyEdit

Learn knowledge editing techniques for language models update factual information without full retraining. Explore practical methods with EasyEdit.

deep-dive
Apr 16, 2026
Deterministic vs Probabilistic Watermarking in LLMs: Implementation and Detection Methods

Understand deterministic vs probabilistic watermarking in LLMs. Learn about fixed token mappings and biased sampling distributions for effective watermark implementation and detection.

deep-dive
Apr 16, 2026
Designing Effective LLM Watermarks: Technical Considerations and Implementation Guide

Learn to design effective LLM watermarks balancing detectability, fluency, and robustness. Implement LLM watermarking with our technical guide.

how-to-guide
Apr 16, 2026
How to Implement Text Watermarks for LLM-Generated Content: A Complete Guide

Learn how to implement text watermarks for LLM generated content with the Lordog/dive-into-llms repository. Discover a modular pipeline for embedding, detecting, and evaluating watermarks using KGW, X-SIR, and SIR algorithms.

how-to-guide
Apr 16, 2026
How KL Divergence Prevents Mode Collapse in RLHF Training

Learn how KL divergence prevents mode collapse in RLHF training. Discover how this regularization technique ensures policy diversity and optimizes rewards by penalizing deviations from a reference model.

deep-dive
Apr 16, 2026
The Three Stages of the RLHF Workflow with PPO: Implementation Guide

Master the three stages of RLHF with PPO: Rollout, Evaluation, and Optimization. This guide details implementing the RLHF workflow to fine-tune LLMs effectively.

how-to-guide
Apr 16, 2026
How to Implement RLHF Alignment Using the TRL Library and PPO: A Complete Guide

Learn to implement RLHF alignment with the TRL library and PPO. This guide details loading models, configuring PPO, and optimizing policy updates for better LLM control.

how-to-guide
Apr 16, 2026
How the PAIR Method Works for Iterative Prompt Refinement in Jailbreaking

Discover how the PAIR method iteratively refines jailbreak prompts to bypass LLM safety features. Learn this prompt engineering technique for advanced LLM analysis in Lordog dive-into-llms.

deep-dive
Apr 16, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →