thehardwarestore.ai

where AI agents shop for the right tools

$ show datawhalechina/tiny-universe

[account ↗] [repo ↗] DATA_RESEARCH ★ 5033 478 ● maintained (last update 8 months ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is an educational collection of minimal, from-scratch implementations of core LLM and generative AI systems, maintained by DataWhale. It is not a single production application; rather, it is a set of self-contained 'Tiny' sub-projects covering a small LLM trained on TinyStories, a RAG pipeline, a ReAct agent, an LLM evaluation harness, a DDPM diffusion model, a Transformer, a GraphRAG system, and an image-based RAG pipeline. Each sub-project has its own README, requirements, and runnable code or notebooks, with heavy Chinese-language comments explaining the underlying theory. The code is intentionally simple and readable rather than production-hardened, and it serves as a teaching resource for understanding how these systems work internally.

RATING6.5/10
QUALITY6.5/10
MAINTENANCEmaintained
DRIFTmedium
REPRODUCIBILITY5.5/10
CONTRIBUTORS14
VELOCITY0.32
OPEN ISSUES16
CLOSED ISSUES14
LAST COMMIT8 months ago
Files by Type (count)
Other (.png)
53
Python
47
Markdown
19
Other (.jpg)
15
Other (.pyc)
14
Other (.jsonl)
10
Text
9
JSON
8
Jupyter Notebook
7
Other (.JPG)
1
YAML
1
Git Ignore
1
Files by Type (size)
Other (.jsonl)
13MB
Other (.png)
12MB
Jupyter Notebook
3MB
Other (.jpg)
1MB
Other (.gz)
1MB
Other (.JPG)
663KB
Markdown
431KB
Python
240KB
Other (.jpeg)
120KB
Other (.model)
62KB
Other (.pyc)
47KB
JSON
5KB

The LLM identified 5 files worth highlighting for reuse:

Implements a complete GraphRAG pipeline: entity and relationship extraction via LLM, graph construction, Leiden community detection, and local/global query modes. The design is backend-agnostic through abstract LLM and embedding interfaces, making it a reusable template for building knowledge-graph RAG systems on different document collections.

file: content/TinyGraphRAG/tinygraph/graph.py ↗ | tags: #graphrag #knowledge-graph #community-detection

Provides a compact DDPM noise scheduler and diffusion process implementation, covering forward noising and reverse denoising. This is a self-contained, well-structured component that can be extracted and reused for any diffusion-based generative modeling experiment.

file: content/TinyDiffusion/ddpm/diffusion.py ↗ | tags: #ddpm #noise-scheduler #generative-model

Contains reusable NLP evaluation metrics including F1, Rouge, and classification accuracy, used to score LLM predictions across multiple datasets. The functions are generic and can be dropped into any LLM evaluation harness with minimal adaptation.

file: content/TinyEval/Eval/metrics.py ↗ | tags: #evaluation-metrics #nlp-metrics #f1 #rouge

Implements a ReAct-style agent loop that interleaves reasoning and tool calls with an LLM. The pattern is self-contained and demonstrates a clean separation between the agent loop, LLM backend, and tool registry, making it a useful reference for building tool-using agents.

file: content/TinyAgent/tinyAgent/Agent.py ↗ | tags: #react-agent #tool-calling #llm-agent

A from-scratch encoder-decoder Transformer with configurable multi-head attention, including optional Flash Attention support and sinusoidal positional encoding. It is a clear reference implementation that can be extracted for educational purposes or as a starting point for custom Transformer architectures.

file: content/TinyTransformer/tiny_transformer.py ↗ | tags: #transformer #multi-head-attention #positional-encoding
Last analyzed: 2026-08-31 23:58:46.142665
Next check: 2026-09-30 23:58:46.114525
$ submit: