动手学大模型:从微调到越狱攻击的免费编程实践教程
A free, hands-on curriculum lets developers learn LLM fine-tuning, alignment and jailbreak attacks without paywalls or clusters, treating security as core rather than optional.
A free GitHub repository called 'dive-into-llms' offers hands-on programming tutorials for large language models, the AI systems behind chatbots. It covers fine-tuning (customizing a model on your own data), alignment methods like RLHF, and jailbreak attacks that trick models into breaking rules. Tutorials run on ordinary computers or free Google Colab notebooks, so no expensive hardware is needed. It is aimed at self-learners who want to build skills rather than just call someone else's AI service.
For teams training engineers on large language models, this free repository consolidates scattered tutorials into a structured curriculum spanning fine-tuning, prompt engineering, RLHF and security testing. It runs on consumer hardware or free Colab instances, minimizing cost. Its main differentiator is teaching offense before defense: showing how jailbreak attacks work in code. Content is primarily in Chinese, and it is a work in progress, so completeness varies.
The repo 'dive-into-llms' provides self-contained notebooks covering supervised fine-tuning of open-source models, LoRA, prompt engineering, few-shot learning, RLHF and DPO, plus red-teaming sections implementing prompt injection and adversarial examples in code. Examples use small variants of Qwen and Llama, runnable on CPU or free Colab GPUs, though inference is slow. Content is Chinese-language; the repo is incomplete and evolving. Clone via github.com/Lordog/dive-into-llms.git.