Repository navigation
spacy-transformers: Add version 1.4.0 - #2432
Merged
Merged
Conversation
Cython align extension plus torch/transformers glue for spaCy's transformer pipelines. Upstream publishes no riscv64 wheel.
luhenry
added a commit
that referenced
this pull request
Sep 28, 2026
Contributor
|
test_transformer_sentencepiece_IO needs the sentencepiece backend that requirements.txt's transformers[sentencepiece] extra provides upstream, but setup.cfg's install_requires (what the wheel actually pulls in) omits it, so the test fails with ImportError in the built wheel's test run. sentencepiece has a riscv64 wheel on our registry already.
…ing ENOSPC cp314's test_multiprocessing failed with "unable to allocate shared memory(shm) ... No space left on device (28)": Language.pipe(n_process=2) pickles the roberta-base transformer's tensors through /dev/shm for each worker, overrunning Docker's 64MB default. Bump it via CIBW_CONTAINER_ENGINE's create_args, which applies to both the build and test phases since cibuildwheel reuses the same container for both.
luhenry
marked this pull request as ready for review
September 28, 2026 22:34
luhenry
added a commit
that referenced
this pull request
Sep 28, 2026
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.
spacy-transformers1.4.0Compiles a small Cython alignment extension (
spacy_transformers.align); the rest is pure-Python glue around spaCy/transformers/torch. Upstream publishes no riscv64 wheel.Mirrors upstream's
[tool.cibuildwheel]config inpyproject.tomland the test invocation fromtests.yml.Differs from upstream
spacy-alignments(a runtime dependency) has no riscv64 wheel and builds from sdist; it is never imported by this package.mypy/sdist steps fromtests.yml- those check packaging and typing, not the wheel.Matrix: cp312/cp313/cp314 only - torch (a hard runtime dependency) has no riscv64 wheel for cp310/cp311 on our registry or public PyPI.
Testing
License: OK
Built on cp312; CI pending.