Giter Club home page Giter Club logo

dedup-text-dataset's Introduction

dedup-text-dataset

Dedup and postprocessing for text dataset gathered from https://github.com/users/huseinzol05/projects/1

All dedup and postprocessed dataset uploaded at https://huggingface.co/datasets/malaysia-ai/dedup-text-dataset

Server spec

  1. 24 cores.
  2. 220 GB RAM.

Deduping can explode the memory, easily eat up to 30 GB if the dataset is > 10GB, so beware.

Download dataset

  1. Most of download files are straight forward,
wget https://huggingface.co/datasets/mesolitica/crawl-amanz-my/resolve/main/parsed.jsonl -O hf-datasets/raw-datasets/amanz.jsonl

But sometime we have to some preprocessing like,

We save raw datasets at hf-datasets/raw-datasets.

Text dedup

  1. Clone remove-duplicate-text-dataset.ipynb to new notebook, eg, remove-duplicate-text-dataset-lowyat.ipynb.

This notebook use text_dedup to do dedup, borrowed from https://github.com/ChenghaoMou/text-dedup

All dedup datasets will save at hf-datasets/dedupe-datasets.

Postprocessing

  1. Run postprocessing.ipynb to start postprocessing,
  • remove texts that contain HTTP errors.
  • remove texts less than 3 characters.
  • replace 6 spaces or more with 6 spaces.
  • replace 6 dots or more with 6 dots.

Rerun this notebook will not overwrite postprocessed datasets.

Prepare for training session

There is no consideration AI alignment and safety in current dataset, we only apply basic postfilter.

  1. FPF llama2
  2. FPF Mistral
  3. Pretrain nanoT5
  4. Pretrain smaller Causal LM
  5. Pretrain LLM
  6. FPF TinyLlama
  7. FPF Yi

end-to-end processing using Python script

Released as a Python library, https://github.com/malaysia-ai/clean_text_my

dedup-text-dataset's People

Contributors

huseinzol05 avatar amzar96 avatar wanadzhar913 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.