{"adoption": {"forks": 337, "observed_at": "2026-08-28T04:08:31.908356+00:00", "stars": 3996}, "canonical_url": "https://ross.abutalabs.com/products/vector-quantize-pytorch", "card": {"archived": false, "artifact_type": "library", "description": "Vector (and Scalar) Quantization, in Pytorch", "domain": ["deep-learning", "machine-learning", "artificial-intelligence"], "enriched": true, "function": ["machine-learning", "deep-learning", "serialization"], "health_score": 94, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["lucidrains/vector-quantize-pytorch"], "name": "lucidrains/vector-quantize-pytorch", "platform": ["python"], "pushed_at": "2026-08-02T17:58:00+00:00", "repo": "lucidrains/vector-quantize-pytorch", "stars": 3996, "tags": ["pytorch", "vector-quantization", "scalar-quantization", "vq-vae", "residual-vq", "codebook-learning"], "topics": ["artificial-intelligence", "deep-learning", "pytorch", "vector-quantization", "scalar-quantization"], "urls": [], "use_cases": ["quantize neural network embeddings into discrete codes", "build a VQ-VAE for image generation", "implement residual vector quantization for audio codecs", "train codebooks with exponential moving averages in PyTorch", "compress high-resolution images with RQ-VAE", "apply scalar quantization to model latents"], "what_it_is": "A PyTorch library implementing vector and scalar quantization, including Residual VQ and techniques like DiVeQ codebook updates. It originated from DeepMind's TensorFlow implementation and is used in models like VQ-VAE and RQ-VAE for compressing data into discrete codes.", "when_to_avoid": ["you need quantization for model compression/inference speedup (that's a different kind of quantization)", "you work outside PyTorch", "you need a full VQ-VAE model rather than quantization building blocks"], "when_to_choose": ["you need ready-made vector quantization layers in PyTorch", "you are building VQ-VAE, RQ-VAE, or audio/image tokenizers", "you want EMA or gradient-based codebook updates without writing them yourself"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/vector-quantize-pytorch", "repo": "lucidrains/vector-quantize-pytorch", "role": "main", "score": 83}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.908356+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:24:11.116447+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7ba6c017bb64d4e0912c875cd81c33126c6e00a3ee135c66d0c299a9ddae124f", "fetched_at": "2026-08-28T04:08:31.908356+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lucidrains/vector-quantize-pytorch"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 95, "longevity": 100, "rhythm": 58}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2276, "days_push": 31, "days_rel": 202, "gap_med": 1, "n_releases_24m": 84}, "score": 83, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}