Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Gpt 2 Python Packages

Python packages with the GitHub topic gpt-2. Sorted by monthly downloads, with stars and forks.
microsoft
loralib

Code for loralib, an implementation of "LoRA: Low-Rank Adaptation of Large Language Models"

107K 14K 938
avsolatorio
realtabformer

A suite of auto-regressive and Seq2Seq (sequence-to-sequence) transformer models for tabular and relational synthetic data generation.

4K 247 27
Simatwa
chatgpt4-cli

Interact with ChatGPT and Bard at the terminal.

1K 54 4
rish-16
gpt2-client

✍🏻 gpt2-client: Easy-to-use TensorFlow Wrapper for GPT-2 117M, 345M, 774M, and 1.5B Transformer Models 🤖 📝

1K 373 70
CyberZHG
keras-gpt-2

Load GPT-2 checkpoint and generate texts

860 127 30
SpiliosDimakopoulos
twinlens

Do attribution graphs predict what GPT-2 really does? 8,064 feature edits, why graphs mislead (frozen LayerNorm/attention), a fix that keeps them linear, a trust score, a CLI and a browser demo.

839 0 0
microsoft
adamix-gpt2

This is the implementation of the paper AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning (https://arxiv.org/abs/2205.12410).

830 141 10
BrikerMan
kashgari

Simple, Keras-powered multilingual NLP framework, allows you to build your models in 5 minutes for named entity recognition (NER), part-of-speech tagging (PoS) and text classification tasks. Includes BERT, GPT-2 and word2vec embedding.

782 2K 426
metriccoders
one-line-llm-tuner

This repository is the source code for fine tuning any LLM in just one line 🔥

757 4 1
asyml
texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/

757 745 110
minggnim
bert-classifier

Transformers based NLP classification models

684 3 1
voidful
textrl

TextRL - reinforcement learning for text generation, built on HuggingFace TRL.

677 564 60
YashrajBaila7
gpt2lm

A implimentation of GPT2 varient.

656 1 0
toddthomson
mila-llm

A C++23 library for local LLMs at the metal — inference and training, built from explicit neural-network components you can read and understand.

655 10 0
openlanguagemodel
openlanguagemodel

Readable, composable PyTorch library for language models: build Llama, Qwen, Gemma, DeepSeek, Kimi and 20+ other architectures from plain nn.Modules, then train them on CPU, one GPU, or multi-GPU.

633 28 5
QIN2DIM
pigai-gpt2

批改网写作助手

587 42 5
minggnim
nlp-models

A repository for training transformer based models

584 3 1
promptslab
openai-detector

AI classifier for indicating AI-written text

580 140 29
emresvd
funcbygpt

tell the function what to do and gpt will write the code

471 10 2
stochasticai
xturing

Build, personalize and control your own LLMs. From data pre-processing to fine-tuning, xTuring provides an easy way to personalize open-source LLMs. Join our discord community: https://discord.gg/TgHXuSJEk6

451 3K 208
ajivoin
simple-gpt2

Python package for generating text using DeepAI's GPT-2 API.

413 2 0
BrikerMan
kashgari-tf

Simple, Keras-powered multilingual NLP framework, allows you to build your models in 5 minutes for named entity recognition (NER), part-of-speech tagging (PoS) and text classification tasks. Includes BERT, GPT-2 and word2vec embedding.

393 2K 426
CyberZHG
torch-gpt-2

GPT-2 implemented in PyTorch

356 6 1
aquadzn
deploy-transformers

Easily deploy a state-of-the-art language model from HuggingFace's Transformers

323 12 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology