graykode/gpt-2-Pytorch
Simple Text-Generator with OpenAI gpt-2 Pytorch Implementation observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2753
- days_rel: n/a
- days_push: 2613
- n_releases_24m: 0
Adoption not part of the score
1013 stars · 230 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A compact PyTorch reimplementation of OpenAI's GPT-2 for text generation, loading Hugging Face's converted pre-trained weights. It provides a simple script for generating text continuations from a prompt.
Use cases
- generate text continuations from a prompt with GPT-2 in PyTorch
- study a minimal readable GPT-2 implementation
- run GPT-2 inference without TensorFlow
- experiment with transformer language models
- generate stories from seed text
When to choose
- you want a small, readable GPT-2 codebase in PyTorch for learning or experimentation
- you need lightweight GPT-2 text generation without the original TensorFlow stack
When to avoid
- you need modern LLMs, fine-tuning pipelines, or maintained tooling - use Hugging Face Transformers instead
- you need production-grade inference or recent model support
Facets
library · maturity abandoned
llm-inference nlp machine-learning large-language-models deep-learning python cross-platform gpt-2 pytorch text-generation transformer language-model natural-language-processing
1 source
- readme: https://github.com/graykode/gpt-2-Pytorch · fetched 2026-08-28 · a5bb306de197
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| graykode/gpt-2-Pytorch | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="graykode/gpt-2-Pytorch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem