openbmb / Ultra-FineWeb-classifier

huggingface.co
Total runs: 159
24-hour runs: 0
7-day runs: 12
30-day runs: 22
Model's Last Updated: August 20 2026

Introduction of Ultra-FineWeb-classifier

Model Details of Ultra-FineWeb-classifier

Ultra-FineWeb-Classifier

📚 Introduction

Ultra-FineWeb is a large-scale, high-quality, and efficiently-filtered dataset . We use the proposed efficient verification-based high-quality filtering pipeline to the FineWeb and Chinese FineWeb datasets (source data from Chinese FineWeb-edu-v2, which includes IndustryCorpus2, MiChao, WuDao, SkyPile, WanJuan, ChineseWebText, TeleChat, and CCI3), resulting in the creation of higher-quality Ultra-FineWeb-en with approximately 1T tokens, and Ultra-FineWeb-zh datasets with approximately 120B tokens, collectively referred to as Ultra-FineWeb. Ultra-FineWeb serves as a core pre-training web dataset for the MiniCPM4 Series models.

  • Ultra-FineWeb : Ultra-FineWeb, a large-scale, high-quality, and efficiently-filtered dataset , with 1T English tokens and 120B Chinese tokens.
  • Ultra-FineWeb-classifier : Ultra-FineWeb classifier, for filtering high-quality data from web corpora. ( <-- you are here )
📢 What's New
  • [2025.05.09] Ultra-FineWeb technical report is available on arXiv . 🔥🔥🔥
  • [2025.05.15] Ultra-FineWeb tops the Hugging Face Datasets Trending list, reaching the #1 spot! ⭐️⭐️⭐️
  • [2025.06.06] Ultra-FineWeb-en and Ultra-FineWeb-zh datasets are now available on Hugging Face, released alongside the MiniCPM4 Series models.
  • [2025.06.16] The Ultra-FineWeb-classifier is now available on Hugging Face: openbmb/Ultra-FineWeb-classifier . 🚀🚀🚀
💡 Highlights

Abstract: Data quality has become a key factor in enhancing model performance with the rapid development of large language models (LLMs). Model-driven data filtering has increasingly become a primary approach for acquiring high-quality data. However, it still faces two main challenges: (1) the lack of an efficient data verification strategy makes it difficult to provide timely feedback on data quality; and (2) the selection of seed data for training classifiers lacks clear criteria and relies heavily on human expertise, introducing a degree of subjectivity. To address the first challenge, we introduce an efficient verification strategy that enables rapid evaluation of the impact of data on LLM training with minimal computational cost. To tackle the second challenge, we build upon the assumption that high-quality seed data is beneficial for LLM training, and by integrating the proposed verification strategy, we optimize the selection of positive and negative samples and propose an efficient data filtering pipeline. This pipeline not only improves filtering efficiency, classifier quality, and robustness, but also significantly reduces experimental and inference costs. In addition, to efficiently filter high-quality data, we employ a lightweight classifier based on fastText , and successfully apply the filtering pipeline to two widely-used pre-training corpora, FineWeb and Chinese FineWeb datasets, resulting in the creation of the higher-quality Ultra-FineWeb dataset. Ultra-FineWeb contains approximately 1 trillion (T) English tokens and 120 billion (B) Chinese tokens. Empirical results demonstrate that the LLMs trained on Ultra-FineWeb exhibit significant performance improvements across multiple benchmark tasks, validating the effectiveness of our pipeline in enhancing both data quality and training efficiency.

  • Efficient Verification Strategy: We propose a computationally efficient verification strategy that enables rapid evaluation of the impact of data on LLM training performance with minimal computational cost, significantly improving the efficiency of high-quality data filtering experiments.
  • Large-Scale High-Quality Pre-training Datasets: We design and implement an efficient high-quality data filtering pipeline, applied to the FineWeb and Chinese FineWeb datasets, resulting in the creation of higher-quality datasets, which can facilitate high-quality LLM training.
  • Lightweight Classifier: The Ultra-FineWeb classifier significantly reduces inference costs, achieving superior performance on extracted text from the same data source, thus validating the effectiveness of our proposed data filtering pipeline in enhancing data quality and training efficiency.
🚀 Usage of Ultra-FineWeb Classifier
Inference single content
  1. Put the content you want to infer into the scripts/local_scripts/single_content.txt file.
  2. Run the scripts/local_scripts/infer_single_content.py script to infer the content:
# set the language you want to infer, support: en, zh
LANGUAGE=en
# set the tokenizer path, default: local_tokenizer
# user can also directly use "deepseek-ai/DeepSeek-V2"
TOKENIZER_PATH=local_tokenizer
# set the content file path, default: scripts/local_scripts/single_content.txt
CONTENT_FILE=scripts/local_scripts/single_content.txt

python scripts/local_scripts/infer_single_content.py --language ${LANGUAGE} --tokenizer-path ${TOKENIZER_PATH} --content-file ${CONTENT_FILE}

Then you can get the result in the terminal, such as:

Content: {User's input content}

Normalized content: {Normalized content}

  - Pred label: {Pred label}
  - Pred score: {Pred score}
Inference folder

Assume the input folder is data/input , the key of the content is content , and the output folder is data/output . User can run the scripts/local_scripts/infer_folder.py script to infer the folder:

# set the language you want to infer, support: en, zh
LANGUAGE=en
# set the data path
DATA_PATH=data/input
# set the save path
SAVE_PATH=data/output
# set the content key
CONTENT_KEY=content
# bellow are optional arguments
# set the tokenizer path, default: local_tokenizer
TOKENIZER_PATH=local_tokenizer
# set the processes number, default: 64
PROCESSES_NUM=64
# set the write batch size, default: 100
WRITE_BATCH_SIZE=100

python scripts/local_scripts/infer_folder.py \
    --language ${LANGUAGE} \
    --data-path ${DATA_PATH} \
    --save-path ${SAVE_PATH} \
    --content-key ${CONTENT_KEY} \
    --tokenizer-path ${TOKENIZER_PATH} \
    --processes-num ${PROCESSES_NUM} \
    --write-batch-size ${WRITE_BATCH_SIZE} \
    [--inplace]  # optional, delete the processed data and re-process the data

For Spark inference, we also provide scripts/spark_scripts/spark_infer.py , a demo script for users to run on the Spark cluster.

NOTE:

  • The numpy version should be lower than 2.0 for the fasttext package.
  • The config.json file is a fake config file, the parameters are used for the fasttext training.
❤️ Acknowledgements

Thanks for their awesome work! Open-source contributions make Ultra-FineWeb possible! 🙌

🌟 Citation

If you find our work useful, please consider citing:

@misc{wang2025ultrafineweb,
  title={{Ultra-FineWeb}: Efficient Data Filtering and Verification for High-Quality LLM Training Data},
  author={Yudong Wang and Zixuan Fu and Jie Cai and Peijun Tang and Hongya Lyu and Yewei Fang and Zhi Zheng and Jie Zhou and Guoyang Zeng and Chaojun Xiao and Xu Han and Zhiyuan Liu},
  year={2025},
  eprint={2505.05427},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
}
💳 License

This project is released under the Apache 2.0 . Please note that since Ultra-FineWeb is built using multiple datasets, users should check the LICENSE of each dataset individually to ensure proper usage and compliance.

Runs of openbmb Ultra-FineWeb-classifier on huggingface.co

159
Total runs
0
24-hour runs
2
3-day runs
12
7-day runs
22
30-day runs

More Information About Ultra-FineWeb-classifier huggingface.co Model

More Ultra-FineWeb-classifier license Visit here:

https://choosealicense.com/licenses/apache-2.0

Ultra-FineWeb-classifier huggingface.co

Ultra-FineWeb-classifier huggingface.co is an AI model on huggingface.co that provides Ultra-FineWeb-classifier's model effect (), which can be used instantly with this openbmb Ultra-FineWeb-classifier model. huggingface.co supports a free trial of the Ultra-FineWeb-classifier model, and also provides paid use of the Ultra-FineWeb-classifier. Support call Ultra-FineWeb-classifier model through api, including Node.js, Python, http.

Ultra-FineWeb-classifier huggingface.co Url

https://huggingface.co/openbmb/Ultra-FineWeb-classifier

openbmb Ultra-FineWeb-classifier online free

Ultra-FineWeb-classifier huggingface.co is an online trial and call api platform, which integrates Ultra-FineWeb-classifier's modeling effects, including api services, and provides a free online trial of Ultra-FineWeb-classifier, you can try Ultra-FineWeb-classifier online for free by clicking the link below.

openbmb Ultra-FineWeb-classifier online free url in huggingface.co:

https://huggingface.co/openbmb/Ultra-FineWeb-classifier

Ultra-FineWeb-classifier install

Ultra-FineWeb-classifier is an open source model from GitHub that offers a free installation service, and any user can find Ultra-FineWeb-classifier on GitHub to install. At the same time, huggingface.co provides the effect of Ultra-FineWeb-classifier install, users can directly use Ultra-FineWeb-classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Ultra-FineWeb-classifier install url in huggingface.co:

https://huggingface.co/openbmb/Ultra-FineWeb-classifier

Url of Ultra-FineWeb-classifier

Ultra-FineWeb-classifier huggingface.co Url

Provider of Ultra-FineWeb-classifier huggingface.co

openbmb
ORGANIZATIONS

Other API from openbmb

huggingface.co

Total runs: 200.2K
Run Growth: 91.4K
Growth Rate: 45.63%
Updated:October 05 2025
huggingface.co

Total runs: 134.8K
Run Growth: -3.0K
Growth Rate: -2.19%
Updated:March 10 2026
huggingface.co

Total runs: 117.8K
Run Growth: 4.9K
Growth Rate: 4.17%
Updated:September 15 2025
huggingface.co

Total runs: 112.2K
Run Growth: 89.6K
Growth Rate: 79.87%
Updated:May 10 2026
huggingface.co

Total runs: 106.9K
Run Growth: -45.2K
Growth Rate: -42.32%
Updated:June 13 2025
huggingface.co

Total runs: 25.5K
Run Growth: 411
Growth Rate: 1.61%
Updated:October 24 2025
huggingface.co

Total runs: 20.0K
Run Growth: 1.8K
Growth Rate: 8.78%
Updated:October 24 2025
huggingface.co

Total runs: 19.9K
Run Growth: 406
Growth Rate: 2.04%
Updated:January 15 2025
huggingface.co

Total runs: 11.5K
Run Growth: 10.4K
Growth Rate: 90.57%
Updated:May 07 2026
huggingface.co

Total runs: 10.3K
Run Growth: -2.5K
Growth Rate: -23.65%
Updated:June 02 2023
huggingface.co

Total runs: 7.7K
Run Growth: -4.1K
Growth Rate: -52.99%
Updated:February 27 2025
huggingface.co

Total runs: 6.5K
Run Growth: 523
Growth Rate: 8.06%
Updated:January 14 2026
huggingface.co

Total runs: 5.4K
Run Growth: 5.4K
Growth Rate: 99.14%
Updated:June 10 2025
huggingface.co

Total runs: 5.2K
Run Growth: 3.7K
Growth Rate: 70.38%
Updated:October 20 2025
huggingface.co

Total runs: 4.8K
Run Growth: 2.7K
Growth Rate: 56.92%
Updated:November 04 2024
huggingface.co

Total runs: 3.4K
Run Growth: -5.5K
Growth Rate: -161.70%
Updated:September 09 2026
huggingface.co

Total runs: 1.4K
Run Growth: 79
Growth Rate: 5.80%
Updated:January 15 2025
huggingface.co

Total runs: 1.0K
Run Growth: 153
Growth Rate: 14.93%
Updated:September 19 2025
huggingface.co

Total runs: 891
Run Growth: 76
Growth Rate: 8.53%
Updated:June 27 2023
huggingface.co

Total runs: 847
Run Growth: 48
Growth Rate: 5.67%
Updated:August 24 2023
huggingface.co

Total runs: 758
Run Growth: 426
Growth Rate: 58.12%
Updated:May 14 2024
huggingface.co

Total runs: 634
Run Growth: -623
Growth Rate: -98.26%
Updated:August 12 2023
huggingface.co

Total runs: 436
Run Growth: 372
Growth Rate: 85.32%
Updated:February 12 2026
huggingface.co

Total runs: 416
Run Growth: -75
Growth Rate: -18.03%
Updated:October 14 2023
huggingface.co

Total runs: 385
Run Growth: 150
Growth Rate: 39.68%
Updated:June 14 2025
huggingface.co

Total runs: 204
Run Growth: 38
Growth Rate: 18.81%
Updated:February 21 2024
huggingface.co

Total runs: 169
Run Growth: 44
Growth Rate: 26.04%
Updated:June 11 2025