Repository navigation
Conversation
Builds the real upstream pybind11 C++20 extension plus the bundled rust_indexing binary from source (no sdist upstream, so checked out at the release tag). No CUDA/GPU, pure Rust deps (zstd/crossbeam/ filebuffer/clap/glob), Apache-2.0.
luhenry
marked this pull request as draft
October 14, 2026 11:34
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
infini-gram2.6.0Builds a pybind11 C++20 n-gram index engine plus a bundled
cargo build --releaseindexing binary, both from source. Upstream publishes no riscv64 wheel (and no sdist at all, so the build checks out the release tag).Mirrors upstream's own
pkg/pyproject.tomlcibuildwheel config (rustup install before-build,cp3*-manylinux*).Differs from upstream
CIBW_BUILDto one interpreter per matrix job - upstream's own config builds every interpreter in one invocation.Testing
License: OK. Apache-2.0; no third-party binaries vendored - the
rust_indexingbinary and the C++ extension are both compiled from the checked-out source, and the dependency crates (zstd, crossbeam, filebuffer, clap, glob) are all permissively licensed pure Rust.Verified no CUDA/GPU code and no byte-order/pointer-size assumptions that would be riscv64-specific: the C++ engine uses plain POSIX
mmap/size_t/fixed-width ints throughout.