Skip to content

spacy-transformers: Add version 1.4.0 - #2432

Merged
luhenry merged 4 commits into
mainfrom
spacy-transformers
Sep 28, 2026
Merged

luhenry merged 4 commits into
mainfrom
spacy-transformers

Conversation

@luhenry

@luhenry luhenry commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Compiles 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 in pyproject.toml and the test invocation from tests.yml.

Differs from upstream

  • Installs a Rust toolchain - spacy-alignments (a runtime dependency) has no riscv64 wheel and builds from sdist; it is never imported by this package.
  • Drops mypy/sdist steps from tests.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

  • same as upstream

License: OK

Built on cp312; CI pending.

Cython align extension plus torch/transformers glue for spaCy's
transformer pipelines. Upstream publishes no riscv64 wheel.
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-28 23:09 UTC

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
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
@luhenry
luhenry merged commit 9ab5d17 into main Sep 28, 2026
11 checks passed
@luhenry
luhenry deleted the spacy-transformers branch September 28, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant