{"id":20693429,"url":"https://github.com/nanxstats/tinytopics","last_synced_at":"2026-01-03T00:16:47.581Z","repository":{"id":258737282,"uuid":"873983057","full_name":"nanxstats/tinytopics","owner":"nanxstats","description":"GPU-accelerated topic modeling via sum-to-one constrained neural Poisson NMF with PyTorch","archived":false,"fork":false,"pushed_at":"2025-04-10T07:27:47.000Z","size":6400,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T20:31:55.653Z","etag":null,"topics":["nonnegative-matrix-factorization","pytorch","topic-modeling"],"latest_commit_sha":null,"homepage":"https://nanx.me/tinytopics/","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/nanxstats.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-17T03:55:31.000Z","updated_at":"2025-04-10T07:27:26.000Z","dependencies_parsed_at":"2024-12-16T07:29:11.421Z","dependency_job_id":"d5034877-91b8-46ad-9865-de22a6657c2f","html_url":"https://github.com/nanxstats/tinytopics","commit_stats":null,"previous_names":["nanxstats/tinytopics"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Ftinytopics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Ftinytopics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Ftinytopics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanxstats%2Ftinytopics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanxstats","download_url":"https://codeload.github.com/nanxstats/tinytopics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250289169,"owners_count":21405928,"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":["nonnegative-matrix-factorization","pytorch","topic-modeling"],"created_at":"2024-11-16T23:26:36.939Z","updated_at":"2026-01-03T00:16:47.576Z","avatar_url":"https://github.com/nanxstats.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinytopics \u003cimg src=\"https://github.com/nanxstats/tinytopics/raw/main/docs/assets/logo.png\" align=\"right\" width=\"120\" /\u003e\n\n[![PyPI version](https://img.shields.io/pypi/v/tinytopics)](https://pypi.org/project/tinytopics/)\n![Python versions](https://img.shields.io/pypi/pyversions/tinytopics)\n[![CI tests](https://github.com/nanxstats/tinytopics/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/nanxstats/tinytopics/actions/workflows/ci-tests.yml)\n[![Mypy check](https://github.com/nanxstats/tinytopics/actions/workflows/mypy.yml/badge.svg)](https://github.com/nanxstats/tinytopics/actions/workflows/mypy.yml)\n[![Ruff check](https://github.com/nanxstats/tinytopics/actions/workflows/ruff-check.yml/badge.svg)](https://github.com/nanxstats/tinytopics/actions/workflows/ruff-check.yml)\n[![Documentation](https://github.com/nanxstats/tinytopics/actions/workflows/docs.yml/badge.svg)](https://nanx.me/tinytopics/)\n![License](https://img.shields.io/pypi/l/tinytopics)\n\nTopic modeling via sum-to-one constrained neural Poisson NMF.\nBuilt with PyTorch, runs on both CPUs and GPUs.\n\n## Installation\n\n### Using pip\n\nYou can install tinytopics from PyPI:\n\n```bash\npip install tinytopics\n```\n\nOr install the development version from GitHub:\n\n```bash\ngit clone https://github.com/nanxstats/tinytopics.git\ncd tinytopics\npython3 -m pip install -e .\n```\n\n### Install PyTorch with GPU support\n\nThe above will likely install the CPU version of PyTorch by default.\nTo install PyTorch with GPU support, follow the\n[official guide](https://pytorch.org/get-started/locally/).\n\nFor example, install PyTorch for Windows with CUDA 12.6:\n\n```bash\npip uninstall torch\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126\n```\n\n### Install alternative PyTorch versions\n\nFor users stuck with older PyTorch or NumPy versions, for instance, in HPC\ncluster settings, a workaround is to skip installing the dependencies with\n`--no-deps` and install specific versions of all dependencies manually:\n\n```bash\npip install tinytopics --no-deps\npip install torch==2.2.0\n```\n\n### Use tinytopics in a project\n\nTo have a more hassle-free package management experience, it is recommended\nto use tinytopics as a dependency under a project context using\nvirtual environments.\n\nYou should probably set up a manual source/index for PyTorch.\nAs examples, check out the official guidelines when\n[using Rye](https://rye.astral.sh/guide/faq/#how-do-i-install-pytorch) or\n[using uv](https://docs.astral.sh/uv/guides/integration/pytorch/).\n\n## Examples\n\nAfter tinytopics is installed, try examples from:\n\n- [Getting started guide with simulated count data](https://nanx.me/tinytopics/articles/get-started/)\n- [CPU vs. GPU speed benchmark](https://nanx.me/tinytopics/articles/benchmark/)\n- [Text data topic modeling example](https://nanx.me/tinytopics/articles/text/)\n- [Memory-efficient training](https://nanx.me/tinytopics/articles/memory/)\n- [Distributed training](https://nanx.me/tinytopics/articles/distributed/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanxstats%2Ftinytopics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanxstats%2Ftinytopics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanxstats%2Ftinytopics/lists"}