sayakpaul/count-tokens-hf-datasets

This project shows how to derive the total number of training tokens from a large text dataset from πŸ€— datasets with Apache Beam and Dataflow.

19
/ 100
Experimental

This tool helps machine learning engineers and researchers accurately determine the total number of training tokens in very large text datasets from Hugging Face. You provide a dataset and a tokenizer, and it outputs a precise count of the tokens. This is crucial for understanding how large language models will behave during training.

No commits in the last 6 months.

Use this if you need to reliably count tokens across massive text datasets for training large language models.

Not ideal if you are working with small datasets or don't need highly precise token counts using distributed processing.

Natural Language Processing Large Language Models Dataset Preparation Machine Learning Engineering Cloud Computing
No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 7 / 25
Maturity 8 / 25
Community 4 / 25

How are scores calculated?

Stars

27

Forks

1

Language

Python

License

Last pushed

Oct 20, 2022

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/sayakpaul/count-tokens-hf-datasets"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.