sgl-kernel-npu

SGLang kernel library for NPU

A new way for AI to search for data
View on GitHub
197GitHub stars
498commits on main
239forks
latest release, 2026-10-29

C++ 81.4%, Python 16.8%, CMake 0.9%, Shell 0.5% · created 2025-07-22 · last push 2026-10-31

What XERJ indexed

Snapshot

Whole repository

Only cmake, csrc, docs/api/en, docs/api/zh, python/sgl_kernel_npu, tests/python/operators/sampler at commit 19be32b9cc (2026-10-28). main is 8 commits ahead.

Selected work

Yuejia Tong
@yuejiat0416

“[Refactor] Add standalone CANN/ACLNN build and migrate apply_token_bi…”. 19 files, 2,131 lines in csrc, python, cmake.

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-31. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for sgl-project/sgl-kernel-npu on 2026-10-31, and the LICENSE file at commit 19be32b9cc was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Yuejia Tong (@yuejiat0416) has 1 selected repository on the hub.

Using XERJ with sgl-kernel-npu

The prompt

Paste it into your AI agent. It clones sgl-project/sgl-kernel-npu at the pinned commit and indexes it on your machine.

Search the GitHub repository sgl-project/sgl-kernel-npu with XERJ (https://hub.xerj.org/corpus/sgl-project--sgl-kernel-npu).
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/sgl-project/sgl-kernel-npu sgl-kernel-npu && git -C sgl-kernel-npu checkout 19be32b9cc4f2ab8bb6d543740d85cf68d3a10f7
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./sgl-kernel-npu --url http://127.0.0.1:9200 --prefix sgl-kernel-npu --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: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Selected work and consent: the XERJ registry.