Tiny-Universe is a "hand-built" large model guide that starts from principles, is oriented toward "white-box" understanding, and centers on the full chain of large models. It aims to help readers with a traditional deep learning background to build a clear and usable large model system entirely by hand starting from underlying principles, including the large model itself, the RAG framework, the Agent system, and the large model evaluation system. The project abandons highly encapsulated toolkits and APIs and starts from the bottom layer (the Pytorch layer) to complete RAG, Agent, and Eval tasks for large models, helping learners with some foundation in large models to further master large model principles.
Main capabilities and topics include: handwriting an image generation model Tiny Diffusion; Qwen Blog, which deeply analyzes large model principles; step-by-step pretraining of a hand-built large model Tiny Llama3; how to evaluate your large model Tiny Eval; building a RAG framework purely by hand Tiny RAG; hand-building a minimal Agent system Tiny Agent; deeply understanding large model fundamentals Tiny Transformer; hand-building a basic GraphRAG system Tiny GraphRAG. The exploration section includes the RAG retrieval method CDDRS (ADVEI25), which uses fine-grained semantic elements to guide enhancement.
Usage: The project is provided as a GitHub repository, including complete code implementations and explanations, and readers can learn and reproduce step by step according to the topics. Tiny Llama3 requires only about 2G of video memory to complete training, and training takes only a few hours. Tiny RAG provides a mirror address:https://www.codewithgpu.com/i/datawhalechina/tiny-universe/tiny-universe-tiny-rag。Tiny Agent currently has no recording; you can search for "Hands-on Building a Minimal Agent System" on the Datawhale video account.
Applicable scenarios: suitable for learners who have mastered basic applications of large models and want to learn the principles but do not know where to start; students with strong curiosity, a strong desire for knowledge, and a certain enthusiasm for learning; people who are interested in RAG, Agent, and Eval tasks for large models and want to understand them from the principle level; people who like hands-on practice writing code and want to hand-write large model RAG, Agent, and Eval tasks from scratch; people who want to understand the underlying principles of large models and improve their large model technical level.
Limitations: The project code is more concise and clear for junior developers and more "white-box," differing from large algorithm packages; it will continue to be iterated and updated, such as hands-on training a Tiny-llama3, hands-on creating vertical domain datasets, etc. This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.