dive-into-llms: Work through university lab exercises on large language models
Added · Updated
Made by Tongxin Yuan
View profile on GitHub (opens in a new tab)A free hands-on tutorial series on large language models, grown out of two courses at Shanghai Jiao Tong University on frontier language technology and AI security.
It is written as programming practice rather than theory: notebooks you run, with topics that have expanded over time to include mathematical reasoning, agents that drive graphical interfaces, model alignment and steganography. A companion series developed with Huawei’s Ascend community covers the full development cycle on Chinese hardware, with slides, lab manuals and video at beginner, intermediate and advanced levels.
What it does
This is course material that has been opened up rather than a book written for the public, which shows in a good way: the exercises are the kind a teaching assistant designed to be finished in a lab session, each one small enough to run and complete. The series began as the practical half of two graduate courses and has been extended since with newer topics — getting models to do mathematical reasoning, agents that operate graphical interfaces, aligning model behaviour to instructions, and hiding information in model outputs. In 2025 the team added a second track built with Huawei’s Ascend community on the full development lifecycle, which ships as slides, lab manuals and video across three levels. The repository lists the contributing faculty and students from Shanghai Jiao Tong University and the National University of Singapore, and the project is explicitly non-commercial and free.
You could use it to…
- Run a notebook that shows how a language model handles math reasoning
- Try an exercise on aligning a model's behavior to instructions
- Work through a hands-on lab on steganography with a language model
Can I use this?
You'll need Python, a notebook environment and some GPU access · Setup needed
Worth knowing The material is in Chinese, so it is only usable if you read Chinese or are willing to work through a translation. The authors state plainly that the content comes from personal experience and internet sources and that they do not guarantee it is all correct. The companion Huawei series targets Ascend hardware specifically, which is not what most readers will have. The repository publishes no licence.
Why it's here
- 928 people starred it on GitHub this week — 59,689 in total.
Numbers as of 8 November 2026, from BuildTube’s latest daily refresh.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is dive-into-llms?
- This is course material that has been opened up rather than a book written for the public, which shows in a good way: the exercises are the kind a teaching assistant designed to be finished in a lab session, each one small enough to run and complete.
- What can I use dive-into-llms for?
- Run a notebook that shows how a language model handles math reasoning; Try an exercise on aligning a model's behavior to instructions; Work through a hands-on lab on steganography with a language model
- Can I run dive-into-llms on my computer?
- It runs from a terminal on your own computer. The companion Huawei series targets Ascend hardware specifically, which is not what most readers will have. Python, a notebook environment and some GPU access.
- What do I need to use dive-into-llms?
- Python and a notebook environment, plus access to a GPU for the exercises that train or run a model. Each chapter’s documentation says whether an exercise runs as-is, reproduces a result, or is a design to study.
- What license does dive-into-llms use?
- The repository publishes no licence.
More from this week
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
- Spec Kit Turn a written spec into plans, tasks and code
Spec Kit gives your AI coding agent a step-by-step process to build a feature, fix a bug or assess an idea.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-lordog-dive-into-llms/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-lordog-dive-into-llms/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="dive-into-llms on BuildTube"></iframe>