{"id":18753512,"url":"https://github.com/lucadellalib/kmeans-pytorch","last_synced_at":"2026-05-19T04:02:46.959Z","repository":{"id":252357739,"uuid":"840186379","full_name":"lucadellalib/kmeans-pytorch","owner":"lucadellalib","description":"A GPU compatible PyTorch implementation of K-means","archived":false,"fork":false,"pushed_at":"2024-09-25T10:44:38.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T13:12:33.842Z","etag":null,"topics":["clustering","gpu","k-means","pytorch","quantization","residual-quantization","self-supervised-learning","token-extraction"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucadellalib.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":"2024-08-09T06:40:59.000Z","updated_at":"2024-09-25T10:44:41.000Z","dependencies_parsed_at":"2024-08-09T08:47:31.066Z","dependency_job_id":"b07c5de9-1e10-4641-90a3-815f2a8f9d63","html_url":"https://github.com/lucadellalib/kmeans-pytorch","commit_stats":null,"previous_names":["lucadellalib/kmeans-pytorch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucadellalib/kmeans-pytorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadellalib%2Fkmeans-pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadellalib%2Fkmeans-pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadellalib%2Fkmeans-pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadellalib%2Fkmeans-pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucadellalib","download_url":"https://codeload.github.com/lucadellalib/kmeans-pytorch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucadellalib%2Fkmeans-pytorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270940498,"owners_count":24671671,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["clustering","gpu","k-means","pytorch","quantization","residual-quantization","self-supervised-learning","token-extraction"],"created_at":"2024-11-07T17:26:05.237Z","updated_at":"2026-05-19T04:02:41.902Z","avatar_url":"https://github.com/lucadellalib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K-means PyTorch\n\nA GPU-compatible PyTorch implementation of K-means, designed for efficient quantization of representations from large self-supervised models.\n\n---------------------------------------------------------------------------------------------------------\n\n## 🛠️️ Installation\n\n### From source\n\nFirst of all, install [Python 3.8 or later](https://www.python.org).\nClone or download and extract the repository, navigate to `\u003cpath-to-repository\u003e`, open a\nterminal and run:\n\n```\npip install -r requirements\n```\n\n---------------------------------------------------------------------------------------------------------\n\n## ▶️ Quickstart\n\nTo run the example script, navigate to `\u003cpath-to-repository\u003e`, open a terminal and run\n\n```\npython kmeans.py\n```\n\n---------------------------------------------------------------------------------------------------------\n\n## 📧 Contact\n\n[luca.dellalib@gmail.com](mailto:luca.dellalib@gmail.com)\n\n---------------------------------------------------------------------------------------------------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadellalib%2Fkmeans-pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucadellalib%2Fkmeans-pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadellalib%2Fkmeans-pytorch/lists"}