fasttext-numpy2
fasttext Python bindings, fixed numpy 2 compatibiliy
What it is and what it does
fasttext-numpy2 is a fork of Facebook's fastText library that adds compatibility with numpy 2, addressing breaking changes in the original package. It provides Python bindings for training unsupervised word representation models (skipgram and CBOW) and supervised text classifiers. The package handles UTF-8 encoded text input, tokenizes it, and learns dense vector representations of words or classifies documents based on labeled training data.
The library depends on pybind11 for Python-C++ interop, setuptools for building, and numpy for numerical operations. It ships precompiled wheels for Python 3.6 through 3.13 on Linux x86_64, reducing installation friction for those platforms. Model objects can be saved, loaded, and quantized to reduce file size with minimal accuracy loss.
Use it for:
- Train word embeddings on raw text corpora for downstream NLP tasks like similarity search or clustering.
- Build and evaluate text classifiers on labeled datasets with built-in precision/recall metrics.
- Compress trained supervised models using quantization to deploy smaller, faster inference artifacts.
- Migrate existing fastText code to numpy 2 environments without rewriting bindings.
- Extract word vectors for a given vocabulary to use as features in other machine learning pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
fasttext-numpy2 provides Python bindings for fastText, a library for learning word representations and training text classifiers, with compatibility fixes for numpy 2.
Yes, if you need fastText with numpy 2 support and accept the dormant maintenance status. The package is stable (0.10.4 release), has no known vulnerabilities, and carries a permissive MIT license. However, the repository has not been updated in 644 days and is archived; consider whether you can tolerate lack of future bug fixes or feature updates. For active development or long-term production use, evaluate whether the original fastText package or an actively maintained alternative better fits your risk tolerance.
Install
fasttext-numpy2 on PyPI
pip
pip install fasttext-numpy2uv
uv add fasttext-numpy2poetry
poetry add fasttext-numpy2Installing fasttext-numpy2
Before you install
Medium install friction due to compiled C++ dependencies (pybind11, setuptools) and binary wheels for multiple Python versions (3.6–3.13). Last release was 644 days ago; repository is archived and dormant, suggesting limited ongoing maintenance.
License in practice
MIT license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
Quickstart
pip install fasttext-numpy2
import fasttext
# Train unsupervised word vectors
model = fasttext.train_unsupervised('data.txt', model='skipgram')
print(model['king']) # retrieve word vector
Requires numpy and a C++11-capable compiler; text input must be UTF-8 encoded.
Verify before relying
- Whether numpy 2 compatibility extends to all fastText features or only core functionality.
- Performance or accuracy differences compared to the original fastText package.
- Active maintenance status and responsiveness to bug reports given the dormant repository state.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — pybind11, setuptools, numpy |
| Maintenance | dormant — 644 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,046,821/month — #4,451 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fasttext_numpy2-0.10.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; fasttext_numpy2-0.10.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_numpy2-0.10.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
fasttextfastText is a library for learning word…
permissive · top 5,000 on PyPI
fasttext-wheelfasttext-wheel provides Python bindings for…
permissive · top 5,000 on PyPI
fasttext-predictLoads and runs fastText language identification…
permissive · top 5,000 on PyPI
floretfloret trains compact word embeddings using…
permissive · top 15,000 on PyPI
fast-langdetectDetects the language of text using FastText…
permissive · top 5,000 on PyPI
model2vecModel2Vec converts sentence transformers into…
permissive · top 5,000 on PyPI
fasttext-langdetectIdentifies the language of UTF-8 text using…
permissive · top 15,000 on PyPI
tensorflow-textTensorFlow Text provides text preprocessing…
permissive · top 5,000 on PyPI
setfitSetFit fine-tunes Sentence Transformers for…
permissive · top 15,000 on PyPI
alt-profanity-checkDetects offensive or profane language in text…
permissive · top 15,000 on PyPI