Tongjilibo/bert4torch
An elegent pytorch implement of transformers
This project helps developers and researchers quickly build and fine-tune large language models (LLMs) and other transformer-based models using PyTorch. It takes pre-trained model weights (like BERT, Llama, ChatGLM) or custom data as input and outputs a fine-tuned model ready for tasks like text classification, sequence labeling, or conversational AI. Data scientists, machine learning engineers, and NLP researchers can use this to adapt powerful models to their specific natural language processing needs.
1,335 stars. Available on PyPI.
Use this if you are a machine learning engineer or data scientist looking for a flexible and easy-to-use PyTorch framework to fine-tune large language models for various NLP tasks.
Not ideal if you are an end-user without programming knowledge, as this is a developer tool requiring Python and PyTorch expertise.
Stars
1,335
Forks
169
Language
Python
License
MIT
Category
Last pushed
Mar 10, 2026
Commits (30d)
0
Dependencies
5
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/Tongjilibo/bert4torch"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related models
nyu-mll/jiant
jiant is an nlp toolkit
lonePatient/TorchBlocks
A PyTorch-based toolkit for natural language processing
monologg/JointBERT
Pytorch implementation of JointBERT: "BERT for Joint Intent Classification and Slot Filling"
grammarly/gector
Official implementation of the papers "GECToR – Grammatical Error Correction: Tag, Not Rewrite"...
appvision-ai/fast-bert
Super easy library for BERT based NLP models