tinygrad-npu-examples
LLMs on the Zhouyi X2 NPU (CIX P1 / Radxa Orion O6N) with tinygrad: Qwen3.6-35B-A3B, Ring-mini-2.0, LFM2.5, gpt-oss-20b, Gemma 4, Qwen3-30B-A3B, Qwen3.8-27B, Ternary Bonsai 2 (speculative + batched decode), plus Ideogram 4; a sequence-mixer kernel library; OpenAI- and Ollama-compatible servers
What XERJ indexed
Snapshot
The whole repository at commit 734b0aa139 (2026-10-09). main is 18 commits ahead.
Selected work

“Gemma 4: text in and out (a tokenizer and chat template read from the…”. 6 files, 268 lines in gemma4, qwen3.8-27b.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-12. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: approach only
Example questions
- What does gemma4 do in tinygrad-npu-examples?
Inside the indexed corpus
- 82 files, 2.4 MB in total, about 29.9 KB per file.
- The selected commit changed 6 of those files (7.3%).
- Languages by size: Python 98.9%, Shell 0.8%, C 0.3%, Tape 0.1%.
- On GitHub since 2026-10-05, last push 2026-10-29, 25 commits on main.
- The pin is 18 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported AGPL-3.0 for Reonarudo/tinygrad-npu-examples on 2026-10-31, and the LICENSE file at commit 734b0aa139 was reviewed as AGPL-3.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Leonardo Marques (@Reonarudo) has 1 selected repository on the hub.
Using XERJ with tinygrad-npu-examples
- RAG without a vector database: one hybrid index The hub files it under AI, prompts and agents.
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
- Ask questions about a GitHub repo without cloning it
The prompt
Paste it into your AI agent. It clones Reonarudo/tinygrad-npu-examples at the pinned commit and indexes it on your machine.
Search the GitHub repository Reonarudo/tinygrad-npu-examples with XERJ (https://hub.xerj.org/corpus/reonarudo--tinygrad-npu-examples). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/Reonarudo/tinygrad-npu-examples tinygrad-npu-examples && git -C tinygrad-npu-examples checkout 734b0aa1396993329a0fd1057cf4cae4bb9b1b1b 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./tinygrad-npu-examples --url http://127.0.0.1:9200 --prefix tinygrad-npu-examples --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: AGPL-3.0. Read it for the approach only, do not copy code.
Related
Leonardo MarquesAI, prompts and agents corpora
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.