# FudanNLP/fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.

Repository: https://github.com/FudanNLP/fastNLP
Canonical: https://ross.abutalabs.com/products/fastnlp
Homepage: https://gitee.com/fastnlp/fastNLP
Language: Python
License: Apache-2.0
License Family: permissive
Topics: natural-language-processing, deep-learning, nlp-library, nlp-parsing, chinese-nlp, text-classification, text-processing
Last push: 2023-06-05T03:00:37+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3101, "days_push": 1185, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3141, forks 449 (observed 2026-08-28T04:07:45.861438+00:00)

## What it is
fastNLP is a lightweight, modularized and extensible NLP framework in Python that reduces engineering boilerplate such as data processing loops, training loops, and multi-GPU execution. Version 1.0+ was redesigned to support multiple deep learning backends (primarily PyTorch) with features like fp16 switching, multi-GPU training, and ZeRO optimization.

## Use cases
- train a text classification model with BERT in PyTorch
- process Chinese NLP datasets with tokenization and caching
- run multi-GPU training without changing my code
- avoid writing boilerplate training loops for NLP tasks
- apply functions over dataset fields with multiprocessing
- fine-tune pretrained transformers on Chinese sentiment data
- switch to fp16 or ZeRO optimization for faster training

## When to choose
- you do NLP research or prototyping in Python, especially Chinese NLP
- you want a lightweight training/data-processing layer on top of PyTorch
- you need easy multi-GPU, fp16, or ZeRO support with minimal code changes

## When to avoid
- you need a framework with a large active community and ecosystem like Hugging Face
- you depend on pre-1.0 fastNLP APIs, which are incompatible with 1.0+
- you need non-NLP general-purpose deep learning tooling

## Facets
- artifact type: framework
- maturity: maintenance
- function: machine-learning, nlp, deep-learning, llm-training
- domain: machine-learning, deep-learning
- platform: python
- tags: chinese-nlp, text-classification, training-loop, pytorch, data-processing, multi-gpu, natural-language-processing

## Member repositories
- FudanNLP/fastNLP (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.861438+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:26:01.310126+00:00, confidence not recorded.
  - readme: https://github.com/FudanNLP/fastNLP (fetched 2026-08-28T04:07:45.861438+00:00, sha 9afd3d67e0fd)
  - homepage: https://gitee.com/fastnlp/fastNLP (fetched 2026-08-29T09:41:16.515204+00:00, sha 00e32b13ac2e)
  - site_page: https://gitee.com/features/gitee-go (fetched 2026-08-29T09:41:16.526673+00:00, sha bfa2599dcb24)
  - site_page: https://gitee.com/link?target=http%3A%2F%2Fdocument.fastnlp.top%2Fdocs%2FfastNLP%2F (fetched 2026-08-29T09:41:16.521931+00:00, sha 7616ce7f45a6)
  - site_page: https://compass.gitee.com/zh/docs/dimensions-define (fetched 2026-08-29T09:41:16.523472+00:00, sha 6392ce42534d)
  - site_page: https://gitee.com/all-about-git (fetched 2026-08-29T09:41:16.524965+00:00, sha fb606340594e)
  - site_page: https://gitee.com/about_us (fetched 2026-08-29T09:41:16.518535+00:00, sha 061b862ef0b5)
  - site_page: https://gitee.com/fastnlp/fastNLP/tree/master/docs (fetched 2026-08-29T09:41:16.520188+00:00, sha f4ce771dc887)
- Data as of 2026-08-30T08:39:29.467469+00:00.
