From: erwanf <huggingface.co/erwanf>Newsgroups: alt.freeweights.textSubject:

gpt2-mini

Date: 2026-11-15Commit: f12cc7eSigned: 2DC28CC7B26A283B ✓

Text generation model with 39M parameters. Safetensors weights, 156 MB in all. Published by erwanf under MIT.

39M params156MBgpt2-minisafetensorspermissive
FactsParams39MSize156 MBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get erwanf/gpt2-mini
# manifest sha256 bb182d7f7942… · 156 MB · 9 files
$ fw verify ./gpt2-mini erwanf/gpt2-mini
From sourceHosted (signed)erwanf/gpt2-miniLast check: 2026-11-15 02:27 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
156 MB
Weights
154 MB (safetensors)
Parameters
39M
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
9, each with a sha256
Publisher
erwanf
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:27 UTCpassed

Model card

From the publisher at commit f12cc7e. Shown as plain text with links; images open at the publisher.

GPT-2 Mini#

A smaller GPT-2 model with (only) 39M parameters. It was pretrained on a subset of OpenWebText, the open-source version of the pretraining dataset used by OpenAI for the original GPT-2 models.

Uses#

The purpose of this model is mainly for research and education. Its small size allows for fast experiments in resource-limited settings, while still being able of generating complex and coherent text.

Getting Started#

Use the code below to get started with the model:

from transformers import AutoModelForCausalLM, AutoTokenizer

# Load model
model = AutoModelForCausalLM.from_pretrained("erwanf/gpt2-mini")
model.eval()

# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("erwanf/gpt2-mini")

# Generate text
prompt = "Hello, I'm a language model,"
input_ids = tokenizer.encode(prompt, return_tensors="pt")

output = model.generate(input_ids, do_sample=True, max_length=50, num_return_sequences=5)
output_text = tokenizer.batch_decode(output, skip_special_tokens=True)
print(output_text)

Output:

["Hello, I'm a language model, I can't be more efficient in words.\n\nYou can use this as a point to find out the next bit in your system, and learn more about me.\n\nI think a lot of the",
 "Hello, I'm a language model, my teacher is a good teacher - a good school teacher – and one thing you have to remember:\n\nIt's not perfect. A school is not perfect; it isn't perfect at all!\n\n",
 'Hello, I\'m a language model, but if I can do something for you then go for it (for a word). Here is my blog, the language:\n\nI\'ve not used "normal" in English words, but I\'ve always',
 'Hello, I\'m a language model, I\'m talking to you the very first time I used a dictionary and it can be much better than one word in my dictionary. What would an "abnormal" English dictionary have to do with a dictionary and',
 'Hello, I\'m a language model, the most powerful representation of words and phrases in the language I\'m using."\n\nThe new rules change that makes it much harder for people to understand a language that does not have a native grammar (even with']

Training Details#

The architecture relies on the GPT-2 model, with smaller dimensions and less layers. It uses the same tokenizer as GPT-2. We used the first 2M rows from the OpenWebText dataset, out of which we use 1k for test and validation sets.

Hyperparameters#
HyperparameterValue
Model Parameters
Vocabulary Size50,257
Context Length512
Number of Layers4
Hidden Size512
Number of Attention Heads8
Intermediate Size2048
Activation FunctionGELU
DropoutNo
Training Parameters
Learning Rate5e-4
Batch Size256
OptimizerAdamW
beta10.9
beta20.98
Weight Decay0.1
Training Steps100,000
Warmup Steps4,000
Learning Rate SchedulerCosine
Training Dataset Size1M samples
Validation Dataset Size1k samples
Float Typebf16

Files

9 files · 156 MBWeights 154 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.61 KB9803d0dfbe1206d08eed80a2adb81c0ff5b7f8ca1cfd3c0c57b6948e2038aaac
config.json834 B38215ddc65b7b7087c31f2df2c36964c2355a04f6b1517b15ca5a7c570d52cd9
generation_config.json144 B44c78b4d4140f1663e9359ab9c9a66a08723048c57ac81aa1b89d9523477377c
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors154 MB16192f4149f7d6a7c754dbae4d0ec2d06a259b9b11b91445585ecb617f9b2bf0
special_tokens_map.json438 B98412137ae43c77f8af52eb51b19c3536d3242cb55339167d841005fa94a23b7
tokenizer_config.json514 B6543c71f8ce812f9d118021be764c6250cd0d1e71ef604e9f028df73ff908cd0
vocab.json999 KBf6bd25a65e4e63ca31360e9fb11c7e4f9a391a78385d640acd814092dd6eee4f
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f12cc7ee54 pinned now2026-11-15 02:27 UTC9 files · 156 MB

Use it

$ fw get erwanf/gpt2-mini
# manifest sha256 bb182d7f7942… · 156 MB · 9 files
$ fw verify ./gpt2-mini erwanf/gpt2-mini
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/erwanf/gpt2-mini.json --dir ./gpt2-mini $ python3 fw.py verify ./gpt2-mini ./erwanf__gpt2-mini.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download erwanf/gpt2-mini --revision f12cc7ee54aa4d3e6366597f72ff7acb39b0ab3a --local-dir ./gpt2-mini
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("erwanf/gpt2-mini", revision="f12cc7ee54aa4d3e6366597f72ff7acb39b0ab3a") model = AutoModelForCausalLM.from_pretrained("erwanf/gpt2-mini", revision="f12cc7ee54aa4d3e6366597f72ff7acb39b0ab3a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve erwanf/gpt2-mini --revision f12cc7ee54aa4d3e6366597f72ff7acb39b0ab3a

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
9803d0dfbe1206d08eed80a2adb81c0ff5b7f8ca1cfd3c0c57b6948e2038aaac
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: erwanf <huggingface.co/erwanf>Newsgroups: alt.freeweights.textSubject: gpt2-miniDate: 2026-11-15Commit: f12cc7eSigned: 2DC28CC7B26A283B ✓
Upstream
erwanf/gpt2-mini
Pinned commit
f12cc7ee54aa4d3e6366597f72ff7acb39b0ab3a
Manifest
gpt2-mini.json · .minisig
Manifest sha256
bb182d7f7942fa028e75d3595e41bd9bbe65eded8686e229a9233932e785bc9d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/erwanf/gpt2-mini.json $ curl -O https://freeweights.allternit.com/manifests/erwanf/gpt2-mini.json.minisig $ minisign -Vm gpt2-mini.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Quantizations 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download erwanf/gpt2-mini
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. gpt2-mini.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of gpt2-mini. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B