Skip to content

fasttext-numpy2: Add version 0.10.4 - #2172

Merged
luhenry merged 1 commit into
mainfrom
fasttext-numpy2
Sep 21, 2026
Merged

luhenry merged 1 commit into
mainfrom
fasttext-numpy2

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026

Copy link
Copy Markdown
Member

Builds the pybind11/C++ extension of fasttext-numpy2, a fork of Facebook's fastText that fixes its numpy 2 incompatibility. Upstream publishes x86_64 wheels only.

Mirrors upstream's pypibuild.md manylinux recipe; the repo carries no CI workflow.

Differs from upstream

  • Pins the release commit instead of a tag - upstream ships no git tags, and the pinned commit is byte-identical to the released 0.10.4 sdist.
  • Adds our registry as an extra index - numpy has no riscv64 wheel on PyPI.

Testing

  • Upstream's own unit tests diverge to NaN during training on any architecture, reproduced with the released x86_64 wheel, so the wheel is exercised against the language-identification example instead (download lid.176.ftz, predict on a French sentence, check the numpy return type and a sentence vector, assert the extension actually compiled).

License: OK

Built on cp312; predict and sentence-vector smoke test passed.

Build riscv64 wheels for fasttext-numpy2 0.10.4, a numpy-2-compatible fork
of Facebook's fastText whose pybind11 extension compiles the vendored
fastText C++ sources. Upstream publishes x86_64 wheels only.

Upstream ships no git tags, so the build pins the commit the 0.10.4 sdist
was cut from, verified byte-identical against it.

Signed-off-by: Ludovic Henry <git@ludovic.dev>
luhenry added a commit that referenced this pull request Sep 21, 2026
…tcha 519

Signed-off-by: Ludovic Henry <git@ludovic.dev>
@github-actions

github-actions Bot commented Sep 21, 2026

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

luhenry added a commit that referenced this pull request Sep 21, 2026
Signed-off-by: Ludovic Henry <git@ludovic.dev>
@luhenry
luhenry marked this pull request as ready for review September 21, 2026 14:17
@luhenry
luhenry merged commit 7c7b915 into main Sep 21, 2026
12 checks passed
@luhenry
luhenry deleted the fasttext-numpy2 branch September 21, 2026 14:36
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