{"id":19428943,"url":"https://github.com/eleutherai/pile_dedupe","last_synced_at":"2025-04-14T16:51:06.559Z","repository":{"id":165447873,"uuid":"640795766","full_name":"EleutherAI/pile_dedupe","owner":"EleutherAI","description":"Pile Deduplication Code","archived":false,"fork":false,"pushed_at":"2023-05-15T06:41:26.000Z","size":17,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T05:31:30.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EleutherAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-15T06:35:13.000Z","updated_at":"2025-03-25T11:28:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"05ea5705-ca39-40d4-a8ae-20bfb9d23701","html_url":"https://github.com/EleutherAI/pile_dedupe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EleutherAI%2Fpile_dedupe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EleutherAI%2Fpile_dedupe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EleutherAI%2Fpile_dedupe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EleutherAI%2Fpile_dedupe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EleutherAI","download_url":"https://codeload.github.com/EleutherAI/pile_dedupe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248921641,"owners_count":21183794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T14:17:17.943Z","updated_at":"2025-04-14T16:51:06.554Z","avatar_url":"https://github.com/EleutherAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pile Dedupe\n\n## Prerequisites\n\nDownload the [Pile distribution](https://the-eye.eu/public/AI/pile/). Relevant files are in train.\n\n## Install\n\n```\ngit clone https://github.com/EleutherAI/pile_dedupe.git\npip install -r requirements.txt\nln -s PILE_LOCATION pile\n```\n\n## Usage\n\n| Step | Overview | Details |\n| ---- | ------- | ---------|\n| 1 | Prerequisites | Download the pile. |\n| 2 | Install | Clone the repo, install requirements, symlink to the location of the downloaded train directory |\n| 3 | Generate Minhashes | `python generate_minhashes.py --process_count PROCESS_COUNT` Recommend one process per logical core. |\n| 4 | Verify Minhashes (Optional) | `python working_with_minhashes.py` |\n| 5 | Dedupe Pile | `python dedupe.py --lsh_threshold LSH_THRESHOLD` It's fairly safe to leave lsh_threshold default (0.5) if you don't mind a bit of extra dedupe. |\n| 6 | Inspect duplicates |  `python working_with_duplicates.py --inspect_duplicates` |\n\n## I'm Done - Give Me A Generator\n\n```python\nfrom yield_deduped_pile import yield_deduped_pile\n\npile_directory = \"pile\"\nduplicates_directory = \"pile_duplicates\"\nyield_deduped_pile(pile_directory, duplicates_directory)\n```\n\n## Further Documentation\nEach file is described at the top.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleutherai%2Fpile_dedupe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feleutherai%2Fpile_dedupe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleutherai%2Fpile_dedupe/lists"}