{"adoption": {"forks": 166, "observed_at": "2026-08-28T04:04:23.682676+00:00", "stars": 1328}, "canonical_url": "https://ross.abutalabs.com/products/bert4torch", "card": {"archived": false, "artifact_type": "library", "description": "An elegent pytorch implement of transformers", "domain": ["large-language-models", "machine-learning", "deep-learning"], "enriched": true, "function": ["machine-learning", "llm-inference", "llm-training", "nlp", "transformers"], "health_score": 89, "homepage": "https://bert4torch.readthedocs.io/", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["Tongjilibo/bert4torch"], "name": "Tongjilibo/bert4torch", "platform": ["python"], "pushed_at": "2026-05-16T12:38:37+00:00", "repo": "Tongjilibo/bert4torch", "stars": 1328, "tags": ["bert", "pytorch", "transformers", "fine-tuning", "named-entity-recognition", "text-classification", "seq2seq", "chatglm", "llama", "pretrained-models", "natural-language-processing"], "topics": ["bert", "nlp", "pytorch", "bert4keras", "named-entity-recognition", "relation-extraction", "seq2seq", "text-classification", "transformers", "bert4torch", "belle", "chatglm", "llama", "llm", "large-language-models"], "urls": [], "use_cases": ["fine-tune bert models for text classification in pytorch", "run inference with chatglm or llama weights", "train a named entity recognition model", "deploy a large language model service from the command line", "load pretrained transformer weights and customize the model architecture", "train a seq2seq model for text generation"], "what_it_is": "bert4torch is a PyTorch library providing an elegant reimplementation of transformer models (BERT, RoBERTa, T5, GPT, ChatGLM, LLaMA, etc.) for inference, fine-tuning, and building custom NLP models. It includes rich examples for tasks like text classification, sequence labeling, and LLM deployment via a one-line command-line service.", "when_to_avoid": ["you need the broadest model hub coverage and ecosystem integrations of HuggingFace transformers", "you require production-grade multi-GPU serving at scale", "your team depends on TensorFlow rather than PyTorch"], "when_to_choose": ["you want a lightweight, readable PyTorch alternative to HuggingFace transformers for BERT-style models", "you need to fine-tune Chinese LLMs like ChatGLM, Baichuan, or BELLE", "you prefer bert4keras-style APIs but work in PyTorch"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/bert4torch", "repo": "Tongjilibo/bert4torch", "role": "main", "score": 82}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "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:23.682676+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:23.682676+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:45:48.690445+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed91b33a6cd77d4af24dcd1918688bfd1a13925d4ffc630729864eac266159a1", "fetched_at": "2026-08-28T04:04:23.682676+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Tongjilibo/bert4torch"}, {"content_hash": "08750ddd60f60f5035371e6d8b5d4c06b58a48d8a24eaa2dea1531c9e71cc2ba", "fetched_at": "2026-08-29T12:05:21.181664+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/bert4torch/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 82, "longevity": 100, "rhythm": 71}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1635, "days_push": 109, "days_rel": 112, "gap_med": 55.5, "n_releases_24m": 9}, "score": 82, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}