Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitignoreAdded+163
- README.mdAdded+110
- data/train-00000-of-00114-5a023365406cb9c4.parquetAdded+3
- data/train-00001-of-00114-e32fc2813a15f61c.parquetAdded+3
- data/train-00002-of-00114-1429d96b99aec578.parquetAdded+3
- data/train-00003-of-00114-e7fc257ef044bc03.parquetAdded+3
- data/train-00004-of-00114-3158c787ea8296d3.parquetAdded+3
- data/train-00005-of-00114-c525c7efee442287.parquetAdded+3
- data/train-00006-of-00114-c82ec070af45d226.parquetAdded+3
- data/train-00007-of-00114-36c74b525c9694d4.parquetAdded+3
- data/train-00008-of-00114-bf41cf8843148a70.parquetAdded+3
- data/train-00009-of-00114-691ac94b115fea46.parquetAdded+3
- data/train-00010-of-00114-5805e25b4884966e.parquetAdded+3
- data/train-00011-of-00114-da8ee2fcf07be148.parquetAdded+3
- data/train-00012-of-00114-7252b11ca4b39acd.parquetAdded+3
- data/train-00013-of-00114-a189dcaf5ac68c7e.parquetAdded+3
- data/train-00014-of-00114-23a118ee3aaea5c3.parquetAdded+3
- data/train-00015-of-00114-e65817847eac684c.parquetAdded+3
- data/train-00016-of-00114-7b0ca70e75bb60ee.parquetAdded+3
- data/train-00017-of-00114-7680a1785b342d09.parquetAdded+3
- data/train-00018-of-00114-f187dd9c797b315c.parquetAdded+3
- data/train-00019-of-00114-95e7ebe4402c9bfb.parquetAdded+3
- data/train-00020-of-00114-49f2b2f31d348847.parquetAdded+3
- data/train-00021-of-00114-64c103f9fbdf2cf4.parquetAdded+3
- data/train-00022-of-00114-4d18242ef5fd3198.parquetAdded+3
- data/train-00023-of-00114-9ec2a6a02bf1d9d0.parquetAdded+3
- data/train-00024-of-00114-92f9f033a294f332.parquetAdded+3
- data/train-00025-of-00114-f8488d391fad9074.parquetAdded+3
- data/train-00026-of-00114-895ba22c761501e9.parquetAdded+3
- data/train-00027-of-00114-97a6e351f6fc32df.parquetAdded+3
- data/train-00028-of-00114-0d11fc4f464d6d6e.parquetAdded+3
- data/train-00029-of-00114-5c297df81e0ef9b5.parquetAdded+3
- data/train-00030-of-00114-890f9615f1b85726.parquetAdded+3
- data/train-00031-of-00114-d06b98184be0a920.parquetAdded+3
- data/train-00032-of-00114-4fee32b54661f280.parquetAdded+3
- data/train-00033-of-00114-d20028bef60057cc.parquetAdded+3
- data/train-00034-of-00114-627b0a1638e867d2.parquetAdded+3
- data/train-00035-of-00114-5c1b8e81c0be03c6.parquetAdded+3
- data/train-00036-of-00114-b346e68b971d3476.parquetAdded+3
- data/train-00037-of-00114-18f228cb81d4f382.parquetAdded+3
- data/train-00038-of-00114-59d446a886db42d5.parquetAdded+3
- data/train-00039-of-00114-7eb5d8ce001f3504.parquetAdded+3
- data/train-00040-of-00114-67f9d4881b81ae18.parquetAdded+3
- data/train-00041-of-00114-c6d5c710a54b7159.parquetAdded+3
- data/train-00042-of-00114-ae04fe2a9c830269.parquetAdded+3
- data/train-00043-of-00114-2313cb610d98e99d.parquetAdded+3
- data/train-00044-of-00114-45624487e9a41275.parquetAdded+3
- data/train-00045-of-00114-dae3a4ce38fbb868.parquetAdded+3
- data/train-00046-of-00114-aae2216d332a8bb9.parquetAdded+3
- data/train-00047-of-00114-c530007ea6bb7ee1.parquetAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163# Byte-compiled / optimized / DLL files__pycache__/*.py[cod]*$py.class
# C extensions*.so
# Distribution / packaging.Pythonbuild/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/share/python-wheels/*.egg-info/.installed.cfg*.eggMANIFEST
# PyInstaller# Usually these files are written by a python script from a template# before PyInstaller builds the exe, so as to inject date/other infos into it.*.manifest*.spec
# Installer logspip-log.txtpip-delete-this-directory.txt
# Unit test / coverage reportshtmlcov/.tox/.nox/.coverage.coverage.*.cachenosetests.xmlcoverage.xml*.cover*.py,cover.hypothesis/.pytest_cache/cover/
# Translations*.mo*.pot
# Django stuff:*.loglocal_settings.pydb.sqlite3db.sqlite3-journal
# Flask stuff:instance/.webassets-cache
# Scrapy stuff:.scrapy
# Sphinx documentationdocs/_build/
# PyBuilder.pybuilder/target/
# Jupyter Notebook.ipynb_checkpoints
# IPythonprofile_default/ipython_config.py
# pyenv# For a library or package, you might want to ignore these files since the code is# intended to run in multiple environments; otherwise, check them in:# .python-version
# pipenv# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.# However, in case of collaboration, if having platform-specific dependencies or dependencies# having no cross-platform support, pipenv may install dependencies that don't work, or not# install all needed dependencies.#Pipfile.lock
# poetry# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.# This is especially recommended for binary packages to ensure reproducibility, and is more# commonly ignored for libraries.# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control#poetry.lock
# pdm# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.#pdm.lock# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it# in version control.# https://pdm.fming.dev/#use-with-ide.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm__pypackages__/
# Celery stuffcelerybeat-schedulecelerybeat.pid
# SageMath parsed files*.sage.py
# Environments.env.venvenv/venv/ENV/env.bak/venv.bak/
# Spyder project settings.spyderproject.spyproject
# Rope project settings.ropeproject
# mkdocs documentation/site
# mypy.mypy_cache/.dmypy.jsondmypy.json
# Pyre type checker.pyre/
# pytype static type analyzer.pytype/
# Cython debug symbolscython_debug/
# PyCharm# JetBrains specific template is maintained in a separate JetBrains.gitignore that can# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#.idea/
# Mac.DS_Store123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110---dataset_info: features: - name: url dtype: string - name: text dtype: string - name: date dtype: string - name: metadata dtype: string splits: - name: train num_bytes: 56651995057 num_examples: 6315233 download_size: 16370689925 dataset_size: 56651995057 license: odc-by task_categories: - text-generation language: - en pretty_name: OpenWebMath size_categories: - 10B<n<100B---
<img src="imgs/OpenWebMath-left.png" width="300">
[Keiran Paster](https://keirp.com)\*, [Marco Dos Santos](https://marco-dossantos.github.io/)\*, [Zhangir Azerbayev](https://zhangir-azerbayev.github.io/), [Jimmy Ba](https://jimmylba.github.io/)
[GitHub ](https://github.com/keirp/OpenWebMath) | [ArXiv](https://arxiv.org/abs/2310.06786)| [PDF](https://arxiv.org/pdf/2310.06786.pdf)
**OpenWebMath** is a dataset containing the majority of the high-quality, mathematical text from the internet. It is filtered and extracted from over 200B HTML files on Common Crawl down to a set of **6.3 million documents** containing a total of **14.7B tokens**. OpenWebMath is intended for use in _pretraining_ and _finetuning_ large language models.
You can download the dataset using Hugging Face:
```pythonfrom datasets import load_datasetds = load_dataset("open-web-math/open-web-math")```
# OpenWebMath Contents
The dataset is structured as follows:
```python{ "text": ..., # document text. "url": ..., # document url. "date": ..., # date the page was crawled. "metadata": ..., # JSON containing information from the extraction process.}```
OpenWebMath contains documents from over 130k different domains, including data from forums, educational pages, and blogs. The dataset contains documents covering mathematics, physics, statistics, computer science, and more. The following table shows the most common domains in OpenWebMath by character count.
| Domain | # Characters | % Characters || ----------------- | ------------- | ------------ || stackexchange.com | 4,655,132,784 | 9.55% || nature.com | 1,529,935,838 | 3.14% || wordpress.com | 1,294,166,938 | 2.66% || physicsforums.com | 1,160,137,919 | 2.38% || github.io | 725,689,722 | 1.49% || zbmath.org | 620,019,503 | 1.27% || wikipedia.org | 618,024,754 | 1.27% || groundai.com | 545,214,990 | 1.12% || blogspot.com | 520,392,333 | 1.07% || mathoverflow.net | 499,102,560 | 1.02% |
# OpenWebMath Pipeline
<img src="imgs/pipeline.png" alt="Overview of the OpenWebMath Pipeline">
OpenWebMath builds on the massive [Common Crawl](https://commoncrawl.org/) dataset, which contains over 200B HTML documents. We filtered the data to only include documents that are: (1) in English, (2) contain mathematical content, and (3) are of high quality. We also put a strong emphasis on extracting LaTeX content from the HTML documents as well as reducing boilerplate in comparison to other web datasets.
The OpenWebMath pipeline consists of five steps:
1. **Prefiltering HTML Documents**: - We apply a simple prefilter to all HTML documents in Common Crawl in order to skip documents without mathematical content to unnecessary processing time.2. **Text Extraction**: - Extract text, including LaTeX content, from the HTML documents while removing boilerplate.3. **Content Classification and Filtering**: - Apply a [FastText language identification model](https://fasttext.cc/docs/en/language-identification.html) to keep only English documents. - Filter high perplexity documents using a [KenLM](https://github.com/kpu/kenlm) model trained on [Proof-Pile](https://huggingface.co/datasets/hoskinson-center/proof-pile). - Filter non-mathematical documents using our own _MathScore_ model.4. **Deduplication**: - Deduplicate the dataset using SimHash in [text-dedup](https://github.com/ChenghaoMou/text-dedup).5. **Manual Inspection**: - Inspect the documents gathered from previous steps and remove low quality pages.
For a detailed discussion on the processing pipeline, please refer to our paper.
# License
OpenWebMath is made available under an ODC-By 1.0 license; users should also abide by the CommonCrawl ToU: [https://commoncrawl.org/terms-of-use/](https://commoncrawl.org/terms-of-use/). We do not alter the license of any of the underlying data.
# Citation Information
```@misc{paster2023openwebmath, title={OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text}, author={Keiran Paster and Marco Dos Santos and Zhangir Azerbayev and Jimmy Ba}, year={2023}, eprint={2310.06786}, archivePrefix={arXiv}, primaryClass={cs.AI}}```123version https://git-lfs.github.com/spec/v1oid sha256:18d7ef70a6ef61f09c020950626d7e6e61d1300f3f85beddbd3b3c6801071a41size 236268485123version https://git-lfs.github.com/spec/v1oid sha256:d51cde7eeceb64d1814df384a0a05340422e40543db095200de38da41044dda1size 238479393123version https://git-lfs.github.com/spec/v1oid sha256:4be3d8421bbbdd687d49810e8a024d5ec6eaf6febd7b21c8308c92741356331fsize 238135043123version https://git-lfs.github.com/spec/v1oid sha256:b0298ffe842ee4fadb52a6d193dc755568f1c5f200822ca22473c5b281b13c56size 241967659123version https://git-lfs.github.com/spec/v1oid sha256:46630335189a45afb163641c5644605d21dbd1768faf27185ec80c4c92f008f2size 237136773123version https://git-lfs.github.com/spec/v1oid sha256:067ffed72fffee814a0bf7b57628dbbdf23584012031ccae33193d17dc6e2237size 244802651123version https://git-lfs.github.com/spec/v1oid sha256:4efde2737534a901103f5250f5ff796f07c2b86c215e507921c5f46da51019fdsize 239558828123version https://git-lfs.github.com/spec/v1oid sha256:dab1dd7389d116f6c910e06dbdd942e05adc1f103561d44d761d74668073d41dsize 241747803123version https://git-lfs.github.com/spec/v1oid sha256:ace0619be7224cb512b841ead1077e0781aa2fae8a81309178d38e595b382baesize 244941382123version https://git-lfs.github.com/spec/v1oid sha256:e6d396fdd6e6642e80c563586410fcc671335bef88252062a34717e8df4740c1size 244307011123version https://git-lfs.github.com/spec/v1oid sha256:0c9266284eca0615a83db6c3f70716c63fa3639694ac9ce63a84732fa4d8472csize 236033353123version https://git-lfs.github.com/spec/v1oid sha256:4a690a0b3b5db4a10d04ae526c5856d83f859d4a8f4b3fea379ecff1342005c2size 242888281123version https://git-lfs.github.com/spec/v1oid sha256:c0341ae8a5b4b7d26b560fb803a032dd297ff504459f702ad5508249262bc8f6size 236534649123version https://git-lfs.github.com/spec/v1oid sha256:5ce6eef4742dacd142bf0db6946e3ca54695bbb151d18fda0e9747a3b410972dsize 240961907123version https://git-lfs.github.com/spec/v1oid sha256:556f8b9763dc348211703e991249f4b87c8114337c12ff3da1cdb0e694d86d3bsize 242176448123version https://git-lfs.github.com/spec/v1oid sha256:7648bf7b0909461f881a693bac6c60fbcd3bb8f64a7ba13d765597ad23ff087fsize 235284183123version https://git-lfs.github.com/spec/v1oid sha256:3d671ec17054d50d2e18fcd2b5c43e318c1c3af59add9c7d161c072c1d8d251bsize 242542350123version https://git-lfs.github.com/spec/v1oid sha256:c62fdea5a21b49ea960cc0bd365872c250d42bc5537ca9d2eaf07075e6752efdsize 236478932123version https://git-lfs.github.com/spec/v1oid sha256:baa33f445e6a2a9ab9cc9884feaf22a94ab655eabc8241b720d8a01087b79b47size 244678162123version https://git-lfs.github.com/spec/v1oid sha256:c5d3a81d09b95be0fe994371d8903b77c04f6e76c2c2e6b6ce192de828d9125bsize 243054498123version https://git-lfs.github.com/spec/v1oid sha256:1f5dfbf8c353822ec261dde49665763b6a8c85ed94b8cff4eae8a239d7d6901bsize 240749399123version https://git-lfs.github.com/spec/v1oid sha256:7edf003c283efb5b773921b7ba24f382a92966ec6a554ea24b166f2608b9b592size 238496346123version https://git-lfs.github.com/spec/v1oid sha256:b290c4d80eb4f140a9bd5928fc0b02af4feab54cd312d617f8ee7d8911c80749size 241266672123version https://git-lfs.github.com/spec/v1oid sha256:ea5a812e82c7cef1fb46c9c99c675c612d636df6226395980f2a5aee5a7a8f94size 236884637123version https://git-lfs.github.com/spec/v1oid sha256:63dd331f5bb456d623f86cce3e806e791c0d00e97e8c62d830d6bba3dd43806fsize 242633881123version https://git-lfs.github.com/spec/v1oid sha256:4cb9e167992ce5c7e03d08ce2f57097a16fe11bfd70c1e69983f269ae667827bsize 236589543123version https://git-lfs.github.com/spec/v1oid sha256:2cdf9291f710a1d7f525e8a40cabba7bc4c8e314a7bc62a193c7d1e2f3d4af4fsize 243252811123version https://git-lfs.github.com/spec/v1oid sha256:739b967c8fda10884996115275548359b640bf97d75e142ce7a5ff355b9cfe87size 242365151123version https://git-lfs.github.com/spec/v1oid sha256:dc2530c4cb0c80391d399ad9534c776a604ebdaadd3413f93c4e3578c818c773size 241828479123version https://git-lfs.github.com/spec/v1oid sha256:e2954ba16060c8983b799693d809358d9ccfcbd99fe410fff5ccc31df9c4294fsize 240232050123version https://git-lfs.github.com/spec/v1oid sha256:ec7d034819d75fc51e3a2935d201dd03dc8c3ef04ecc634ad5f9ea2ee67c2602size 236487498123version https://git-lfs.github.com/spec/v1oid sha256:c7e3d8ae03483f163262756be699afde3b2382f38dd8c7b9be3cc413065900f2size 244700084123version https://git-lfs.github.com/spec/v1oid sha256:d5880b4daf97e9ba122d4a4a5ffcbe51c0ffc940693549ac422614ed450bade9size 241175958123version https://git-lfs.github.com/spec/v1oid sha256:67e25bef8c823bb31a5aab3bcabf6d7efc47a8cc568fe0e8013e25c2a37afefcsize 238372543123version https://git-lfs.github.com/spec/v1oid sha256:52dc8a70fea37dbcc83a697c0a55d57e24fd385075dc56168c7d07428e8e6f7csize 242431912123version https://git-lfs.github.com/spec/v1oid sha256:14f3b788ebe9b84fa78f0aff3d3f36d13815fb50519abb4e24fa355fee61cac7size 239154425123version https://git-lfs.github.com/spec/v1oid sha256:e921c49ab4cc6c1a342c6b8e22ab1f520a51a63af74ae45b7dc8de1a122b27ffsize 244501264123version https://git-lfs.github.com/spec/v1oid sha256:069da19c756680e5f0d19bdb55c7cc8634c99a3157e9ca905c12d909d5953cd2size 243048765123version https://git-lfs.github.com/spec/v1oid sha256:54922a38ebe8715b652da672c7f80abd442f4cf2ca89083271eda789ed1665d8size 240580791123version https://git-lfs.github.com/spec/v1oid sha256:10163789cbdf5e29ca263d9a785792fdf9a7cd470af59334be2ac7397257023dsize 236781684123version https://git-lfs.github.com/spec/v1oid sha256:7fbdd87cacfd2a29ccf8ba054d8d2a6800fb3899c8b1baf131235027996b2f8bsize 240176901123version https://git-lfs.github.com/spec/v1oid sha256:95349cbdd673ab94a83db2686718e08f3f28e362c6dda7a4400cbc33d6c34f0asize 244046762123version https://git-lfs.github.com/spec/v1oid sha256:025dde0780001b5ed8872860d9b86a3bb13bd5eae330d5c32ffb3b40adc40441size 243418996123version https://git-lfs.github.com/spec/v1oid sha256:6ca03f273348f7ae652ae742b519dce24d87dbaea2d376a3bee808863dd05f3bsize 238491574123version https://git-lfs.github.com/spec/v1oid sha256:97d41e218db3c74a6017f378e60ae7ad6b4f7db6454bdc82524ce492fbd2ebf8size 237452584123version https://git-lfs.github.com/spec/v1oid sha256:abc08502e14881a9666fff585c3d511fd98f6bc271bee6eaf7bbd95f3d5ac6e6size 237253171123version https://git-lfs.github.com/spec/v1oid sha256:ccb8d01a0f3365db58a64f0f7677a5a8b37c8391a91d9cf3dd1596648309886bsize 234882973123version https://git-lfs.github.com/spec/v1oid sha256:e0db38e94af96cf76d2f85af2a0097bfdabfe08e2e62914f2356729fe34e0b00size 239289205.gitignoreAdded+163
README.mdAdded+110
data/train-00000-of-00114-5a023365406cb9c4.parquetAdded+3
data/train-00001-of-00114-e32fc2813a15f61c.parquetAdded+3
data/train-00002-of-00114-1429d96b99aec578.parquetAdded+3
data/train-00003-of-00114-e7fc257ef044bc03.parquetAdded+3
data/train-00004-of-00114-3158c787ea8296d3.parquetAdded+3
data/train-00005-of-00114-c525c7efee442287.parquetAdded+3
data/train-00006-of-00114-c82ec070af45d226.parquetAdded+3
data/train-00007-of-00114-36c74b525c9694d4.parquetAdded+3
data/train-00008-of-00114-bf41cf8843148a70.parquetAdded+3
data/train-00009-of-00114-691ac94b115fea46.parquetAdded+3
data/train-00010-of-00114-5805e25b4884966e.parquetAdded+3
data/train-00011-of-00114-da8ee2fcf07be148.parquetAdded+3
data/train-00012-of-00114-7252b11ca4b39acd.parquetAdded+3
data/train-00013-of-00114-a189dcaf5ac68c7e.parquetAdded+3
data/train-00014-of-00114-23a118ee3aaea5c3.parquetAdded+3
data/train-00015-of-00114-e65817847eac684c.parquetAdded+3
data/train-00016-of-00114-7b0ca70e75bb60ee.parquetAdded+3
data/train-00017-of-00114-7680a1785b342d09.parquetAdded+3
data/train-00018-of-00114-f187dd9c797b315c.parquetAdded+3
data/train-00019-of-00114-95e7ebe4402c9bfb.parquetAdded+3
data/train-00020-of-00114-49f2b2f31d348847.parquetAdded+3
data/train-00021-of-00114-64c103f9fbdf2cf4.parquetAdded+3
data/train-00022-of-00114-4d18242ef5fd3198.parquetAdded+3
data/train-00023-of-00114-9ec2a6a02bf1d9d0.parquetAdded+3
data/train-00024-of-00114-92f9f033a294f332.parquetAdded+3
data/train-00025-of-00114-f8488d391fad9074.parquetAdded+3
data/train-00026-of-00114-895ba22c761501e9.parquetAdded+3
data/train-00027-of-00114-97a6e351f6fc32df.parquetAdded+3
data/train-00028-of-00114-0d11fc4f464d6d6e.parquetAdded+3
data/train-00029-of-00114-5c297df81e0ef9b5.parquetAdded+3
data/train-00030-of-00114-890f9615f1b85726.parquetAdded+3
data/train-00031-of-00114-d06b98184be0a920.parquetAdded+3
data/train-00032-of-00114-4fee32b54661f280.parquetAdded+3
data/train-00033-of-00114-d20028bef60057cc.parquetAdded+3
data/train-00034-of-00114-627b0a1638e867d2.parquetAdded+3
data/train-00035-of-00114-5c1b8e81c0be03c6.parquetAdded+3
data/train-00036-of-00114-b346e68b971d3476.parquetAdded+3
data/train-00037-of-00114-18f228cb81d4f382.parquetAdded+3
data/train-00038-of-00114-59d446a886db42d5.parquetAdded+3
data/train-00039-of-00114-7eb5d8ce001f3504.parquetAdded+3
data/train-00040-of-00114-67f9d4881b81ae18.parquetAdded+3
data/train-00041-of-00114-c6d5c710a54b7159.parquetAdded+3
data/train-00042-of-00114-ae04fe2a9c830269.parquetAdded+3
data/train-00043-of-00114-2313cb610d98e99d.parquetAdded+3
data/train-00044-of-00114-45624487e9a41275.parquetAdded+3
data/train-00045-of-00114-dae3a4ce38fbb868.parquetAdded+3
data/train-00046-of-00114-aae2216d332a8bb9.parquetAdded+3
data/train-00047-of-00114-c530007ea6bb7ee1.parquetAdded+3