{"adoption": {"forks": 237, "observed_at": "2026-08-28T04:04:28.353632+00:00", "stars": 1352}, "canonical_url": "https://ross.abutalabs.com/products/k2", "card": {"archived": false, "artifact_type": "library", "description": "FSA/FST algorithms, differentiable, with PyTorch compatibility.", "domain": ["speech-processing", "machine-learning", "gpu-computing"], "enriched": true, "function": ["machine-learning", "deep-learning", "speech-recognition", "math", "gpu-computing"], "health_score": 78, "homepage": "https://k2-fsa.github.io/k2", "language": "Cuda", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["k2-fsa/k2"], "name": "k2-fsa/k2", "platform": ["python", "cpp", "windows"], "pushed_at": "2026-07-11T22:46:12+00:00", "repo": "k2-fsa/k2", "stars": 1352, "tags": ["fsa", "fst", "autograd", "pytorch", "asr", "ctc", "lf-mmi", "ragged-tensor", "decoding", "lattice-rescoring", "natural-language-processing", "cuda", "linux", "macos"], "topics": [], "urls": [], "use_cases": ["compute CTC loss with FST-based decoding graphs", "train ASR models with LF-MMI objective in PyTorch", "perform fast pruned composition of dense FSA from neural network log-probs", "rescore lattices during multi-pass speech recognition decoding", "run differentiable FSA/FST algorithms on GPU with autograd support", "process batches of FSAs/FSTs in parallel on CUDA"], "what_it_is": "k2 is a C++/CUDA library with Python bindings that implements differentiable Finite State Automaton (FSA) and Finite State Transducer (FST) algorithms integrated with autograd-based toolkits like PyTorch. It supports batched FST processing on CPU and CUDA, and is primarily used for automatic speech recognition tasks such as CTC loss, LF-MMI loss, and decoding with lattice rescoring.", "when_to_avoid": ["you only need classical, non-differentiable FST tools like OpenFst for offline text processing", "your project uses TensorFlow (support not yet available)", "you need a pure-CPU solution without CUDA and lack pre-compiled wheel support for your platform", "you are not working with speech recognition or graph-based decoding"], "when_to_choose": ["you need differentiable FSA/FST operations inside PyTorch training loops", "you are building ASR systems with CTC or LF-MMI training objectives", "you need GPU-accelerated, batched FST decoding or lattice rescoring", "you want an extensible alternative to Kaldi's FST tooling"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/k2", "repo": "k2-fsa/k2", "role": "main", "score": 64}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "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:04:28.353632+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:28.353632+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:42:09.979085+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "5c2505e15ba69db069d54e701a44820a6cacf1e92dc44f8858d5c9607b892b93", "fetched_at": "2026-08-28T04:04:28.353632+00:00", "kind": "readme", "missing": false, "url": "https://github.com/k2-fsa/k2"}, {"content_hash": "c77198cf5c92cbac17547297c132a80aa56ba0075d7895f3b2e9e1e93ba06e8b", "fetched_at": "2026-08-29T12:00:39.527548+00:00", "kind": "homepage", "missing": false, "url": "https://k2-fsa.github.io/k2"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 92, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2329, "days_push": 53, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 64, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}