tinytopics 
Topic modeling via sum-to-one constrained neural Poisson NMF. Built with PyTorch, runs on both CPUs and GPUs.
Installation
Using pip
You can install tinytopics from PyPI:
pip install tinytopics
Or install the development version from GitHub:
git clone https://github.com/nanxstats/tinytopics.git
cd tinytopics
python3 -m pip install -e .
Using uv (recommended)
For a more robust package management experience, use uv to manage tinytopics as a project dependency.
Add tinytopics and PyTorch to your project:
uv add tinytopics torch torchvision
To install PyTorch with GPU support (for example, Windows with CUDA 13.0),
configure pyproject.toml:
[tool.uv.sources]
torch = [{ index = "pytorch-cu130", marker = "sys_platform == 'win32'" }]
torchvision = [{ index = "pytorch-cu130", marker = "sys_platform == 'win32'" }]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
Then sync your environment:
uv sync
For other platforms and accelerators (CPU-only, ROCm, Intel GPUs), see Using uv with PyTorch.
Examples
After tinytopics is installed, try examples from:
Metadata
Release files for tinytopics 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tinytopics-0.9.3.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tinytopics-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / tinytopics-0.9.3.tar.gz
| Download URL | tinytopics-0.9.3.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d8592e17ce7ae9a61e402c564807650555660fb7966e84bb4cf1a4edb35b145
|
|
BLAKE2b-256 checksum How to use checksums |
9f755feb035e9609a23b4468fa1292f0dc444fdd323c2897e9792262babcde91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tinytopics-0.9.3-py3-none-any.whl
| Download URL | tinytopics-0.9.3-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60486af81434a52d55e52dd520c9484acdfed6bdc631a3e1338b5e40a8615912
|
|
BLAKE2b-256 checksum How to use checksums |
45feba58650e7be6157525eb87b91ca0310f498a3d378467771d6dd22c40b6c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|