anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Continues English text you start, using the first transformer language model OpenAI released, at 120M parameters. For people who study early language models or learn the transformers library.
OpenAI GPT 1 is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download openai-community/openai-gpt
OpenAI GPT 1, also known as GPT-1, was OpenAI's first language model built on the transformer design. It reads text in one direction and was pre-trained on a large body of text. It has 120M parameters and works in English.
It suits people who want a small, old, openly licensed language model to study or test. The Hugging Face record lists 13 fine-tuned versions made by others.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Education | Students and teachers | Study how an early transformer language model writes text | Generating five continuations of one sentence and comparing them |
| Research | Language researchers | Use it as a baseline for language modeling tasks | Comparing it with the GPT2 models the card lists as related |
| Software | Developers | Test text generation code on a small model, about 479 MB in F32 | Running the text generation pipeline once to check a setup |
| Machine learning | Fine-tuners | Start a fine-tune from a small base | One of the 13 fine-tuned versions listed on Hugging Face |
You can skip it if you need factual output, because the card says its training did not aim at truth.
| Use case | Who | What they get back |
|---|---|---|
| Continue an opening line | Developers | Several continuations of the text you start |
| Read hidden states | Machine learning students | The last hidden states for a sentence |
| Language modeling experiments | Researchers | A small baseline model to compare against |
pip install -U huggingface_hub hf download openai-community/openai-gpt
The card says you can use the model straight from a text generation pipeline. It sets a seed first, because generation involves some randomness and you want repeatable results.
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='openai-gpt')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)For hidden states, the card also shows PyTorch and TensorFlow code that loads the tokenizer and model and reads the last hidden state.
| Tool | What it does |
|---|---|
| pipeline('text-generation', model='openai-gpt') | Builds a text generator from the model |
| set_seed(42) | Fixes the randomness so a run can be repeated |
| OpenAIGPTTokenizer | Turns your text into tokens the model reads |
| OpenAIGPTModel | Returns hidden states in PyTorch |
| TFOpenAIGPTModel | Returns hidden states in TensorFlow |
You give the pipeline the opening "Hello, I'm a language model," and ask for five continuations with a length limit of 30. It returns five different short pieces of story like text, each starting with your line.
It continues a sentence you start. It is small and old, so the text drifts and cannot be trusted as fact. For a first try, download the files and run the pipeline lines with an opening line of your own.
Underneath, it is a causal transformer, so each word is predicted from the words before it. The model's paper tests it on inference, question answering, similarity and classification tasks. The card names the GPT2 family as related models, and the sample sets a seed so random sampling gives the same text each time.
The card carries a content warning, since text the model writes can be disturbing or offensive and can repeat stereotypes.
Continues English text you start, using the first transformer language model OpenAI released, at 120M parameters. For people who study early language models or learn the transformers library.
Made by openai-community on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: OpenAI GPT 1, also known as GPT-1, was OpenAI's first language model built on the transformer design. It reads text in one direction and was pre-trained on a large body of text. It has 120M parameters and works in English.
Who it suits: It suits people who want a small, old, openly licensed language model to study or test. The Hugging Face record lists 13 fine-tuned versions made by others.
Industry | Who uses it | How they use it | Example
Education | Students and teachers | Study how an early transformer language model writes text | Generating five continuations of one sentence and comparing them
Research | Language researchers | Use it as a baseline for language modeling tasks | Comparing it with the GPT2 models the card lists as related
Software | Developers | Test text generation code on a small model, about 479 MB in F32 | Running the text generation pipeline once to check a setup
Machine learning | Fine-tuners | Start a fine-tune from a small base | One of the 13 fine-tuned versions listed on Hugging Face
You can skip it if you need factual output, because the card says its training did not aim at truth.
Where to use it:
Use case | Who | What they get back
Continue an opening line | Developers | Several continuations of the text you start
Read hidden states | Machine learning students | The last hidden states for a sentence
Language modeling experiments | Researchers | A small baseline model to compare against
How to set it up:
pip install -U huggingface_hub
hf download openai-community/openai-gpt
How to use it: The card says you can use the model straight from a text generation pipeline. It sets a seed first, because generation involves some randomness and you want repeatable results.
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='openai-gpt')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
For hidden states, the card also shows PyTorch and TensorFlow code that loads the tokenizer and model and reads the last hidden state.
Tool | What it does
pipeline('text-generation', model='openai-gpt') | Builds a text generator from the model
set_seed(42) | Fixes the randomness so a run can be repeated
OpenAIGPTTokenizer | Turns your text into tokens the model reads
OpenAIGPTModel | Returns hidden states in PyTorch
TFOpenAIGPTModel | Returns hidden states in TensorFlow
Example: You give the pipeline the opening "Hello, I'm a language model," and ask for five continuations with a length limit of 30. It returns five different short pieces of story like text, each starting with your line.
For newcomers and experts: It continues a sentence you start. It is small and old, so the text drifts and cannot be trusted as fact. For a first try, download the files and run the pipeline lines with an opening line of your own.
Underneath, it is a causal transformer, so each word is predicted from the words before it. The model's paper tests it on inference, question answering, similarity and classification tasks. The card names the GPT2 family as related models, and the sample sets a seed so random sampling gives the same text each time.
Your opening line goes in
The tokenizer turns it into tokens
The model predicts the next tokens
The pipeline samples continuations
Continuation text comes back
Good to know: The card carries a content warning, since text the model writes can be disturbing or offensive and can repeat stereotypes.
Title: Weight size in MB
F32: 479 MB
4-bit estimate: 60 MB
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download openai-community/openai-gpt
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| OpenAI GPT 1 This page | 45,439 | 325 | 120M | mit | |
| Cola DLMShares pytorch · text-generation · transformers | 93 | 51 | — | apache-2.0 | |
| NLLB-200 3.3BShares pytorch · transformers | 293,185 | 493 | — | cc-by-nc-4.0 | |
| Hy-NomasShares pytorch · safetensors | 90,896 | 153 | — | apache-2.0 | |
| Drishya TinyShares pytorch · safetensors | 163 | 6 | 212M | cc-by-nc-4.0 | |
| caramel-1 by naklechaShares pytorch · safetensors | 89 | 14 | 413M | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
AbdomenAtlas · Kit
Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…