Tongjilibo/bert4torch
Some data may be outdated — see provenance labels.
An elegent pytorch implement of transformers observed · 2026-10-01
Health v2 · maintenance only
76/100
- Activity 74
- Release rhythm 64
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 45
- age_days: 1683
- days_rel: 160
- days_push: 157
- n_releases_24m: 8
Adoption not part of the score
1326 stars · 166 forks observed · 2026-10-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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.
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
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
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
Facets
library · maturity active
machine-learning llm-inference llm-training nlp transformers large-language-models machine-learning deep-learning python bert pytorch transformers fine-tuning named-entity-recognition text-classification seq2seq chatglm llama pretrained-models natural-language-processing
2 sources
- readme: https://github.com/Tongjilibo/bert4torch · fetched 2026-10-01 · ed91b33a6cd7
- registry_pypi: https://pypi.org/pypi/bert4torch/json · fetched 2026-08-29 · 08750ddd60f6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Tongjilibo/bert4torch | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="Tongjilibo/bert4torch")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem