← all repositories
facebookresearch/pytext

Facebook’s PyText has retired. This is its résumé.

Built to let Facebook researchers iterate on PyTorch NLP models and ship them at scale through Caffe2.

6.3k stars Python ML FrameworksLanguage Models
pytext
Not currently ranked — collecting fresh signals.
star history

What it does

PyText was a deep-learning NLP framework built on PyTorch. It offered extensible interfaces and abstractions for model components—text classifiers, sequence taggers, and joint intent-slot models—so teams could move from research prototypes to production without rebuilding the pipeline. It also supported distributed training, mixed-precision training via APEX, and exporting models to the Caffe2 engine for optimized inference.

The interesting bit

Its core pitch was bridging PyTorch’s flexible research environment with Caffe2’s production runtime, a translation that often forces teams to re-implement models from scratch. Facebook used it internally to iterate quickly and then ship at scale, though the README now bluntly warns users to migrate to torchtext.

Key highlights

  • Pre-built production models for text classification, named-entity recognition, and intent-slot filling, plus reference implementations for papers published between 2014 and 2021.
  • Distributed training on PyTorch 1.0’s C10d backend and mixed-precision support through NVIDIA APEX.
  • Extensible component design meant to make new tasks and models pluggable.
  • Export path from PyTorch training graphs to Caffe2 nets for inference.

Caveats

  • The project is officially deprecated and no longer actively maintained; the README opens with a directive to migrate to torchtext.
  • The Caffe2 inference path and Python 3.6.1 baseline reflect an older PyTorch ecosystem that has since moved on.

Verdict

If you are maintaining a legacy PyText pipeline or studying how Facebook once bridged research and production NLP, the repo is a useful artifact. Everyone else should follow the README’s advice and head straight to torchtext.

Frequently asked

What is facebookresearch/pytext?
Built to let Facebook researchers iterate on PyTorch NLP models and ship them at scale through Caffe2.
Is pytext open source?
Yes — facebookresearch/pytext is an open-source project tracked on heatdrop.
What language is pytext written in?
facebookresearch/pytext is primarily written in Python.
How popular is pytext?
facebookresearch/pytext has 6.3k stars on GitHub.
Where can I find pytext?
facebookresearch/pytext is on GitHub at https://github.com/facebookresearch/pytext.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.