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.
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.
Stars
27
Forks
1
Language
Python
License
—
Category
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.
Higher-rated alternatives
azukds/tubular
Python package implementing ML feature engineering and pre-processing for polars or pandas dataframes.
huggingface/course
The Hugging Face course on Transformers
huggingface/audio-transformers-course
The Hugging Face Course on Transformers for Audio
rickiepark/nlp-with-transformers
<νΈλμ€ν¬λ¨Έλ₯Ό νμ©ν μμ°μ΄ μ²λ¦¬> μμ μ½λλ₯Ό μν μ μ₯μμ λλ€.
NielsRogge/Transformers-Tutorials
This repository contains demos I made with the Transformers library by HuggingFace.