GuildGPT

GuildGPT is a 124,439,808-parameter, decoder-only language model trained from scratch on stories from the WritingPrompts dataset. It is an educational model for an AI Guild workshop where we build the architecture and then load these already-trained weights to generate text. It uses the GPT-2 tokenizer and vocabulary, not pretrained GPT-2 weights.

This is a custom JAX/Flax NNX model, not a Transformers GPT2LMHeadModel or an AutoModelForCausalLM checkpoint. The model definition in the GuildGPT source code or the accompanying workshop notebook is required to load these weights.

Model and training

Item Value
Architecture 12 transformer blocks, 12 attention heads, 768 hidden dimensions, 3,072-dimensional GELU MLP
Context length 1,024 tokens; learned absolute position embeddings
Vocabulary 50,257 GPT-2 tokens; tied input/output token embeddings
Attention / computation Causal reference attention; float32
Initialization Random; no pretrained model weights
Training One epoch; 26,482 optimizer updates; 216,938,256 non-padding training target positions
Batching Microbatch 1; gradient accumulation 8 (effective batch up to 8 sequences)
Optimizer AdamW; weight decay 0.1; global gradient-norm clipping at 1.0
Learning-rate schedule Linear warmup from 0 to 3e-4 over 100 updates, then cosine decay to 3e-5
Seed 42
Logged training time 12,289 seconds (about 3 hours 25 minutes) through the last update; excludes final evaluation/checkpoint and Pod setup

The published weights correspond to checkpoint step_00026482. The training configuration is saved in that checkpoint's metadata.json; the model architecture is also recorded in this repository's config.json.

Data

The source is andrewelawrence/writingPrompts-merged, pinned to revision 2e3fc387744e21e3adbbc2f73a960c164b248ab8 (dataset fingerprint 12c511cd3a217895). That dataset merges the original WritingPrompts train, validation, and test splits; see the source dataset card and Fan et al. (2018) for background.

Only the story field was used as training text. Non-empty stories were tokenized with the GPT-2 tokenizer, followed by its end-of-text token. A deterministic split based on the normalized prompt kept stories sharing the same prompt on the same side of the train/validation divide:

Split Stories Stored tokens Evaluated next-token positions
Train 288,720 216,938,257 216,938,256
Validation 14,638 10,942,892 10,942,891

The split rule was sha256(normalized_prompt), taking the first eight digest bytes modulo 100; values below 5 went to validation. The token streams were concatenated and trained in shuffled 1,024-token windows, so windows can cross story boundaries. These counts and the dataset revision are recorded in the training manifest. No dataset text or optimizer state is included in this model repository.

Evaluation and example

At the end of the single epoch, next-token validation loss was 3.3573 and perplexity was 28.71 over 10,942,891 target positions. This is an in-distribution, held-out split of the same dataset, not an external quality or safety benchmark. Perplexity does not guarantee coherent or useful stories.

One post-training generation reported by the project owner used the prompt The door had been locked for a hundred years. When it opened, with a limit of 80 new tokens. The beginning of the reported continuation was:

it's easy to see just the right side of her face, a little bit more than the other two.

This is an illustrative, user-reported sample, not a standardized evaluation or a newly reproduced run from the exported file. Outputs vary with prompt and sampling settings; this model can be repetitive, inconsistent, or abruptly change topic.

How to use

Install the GuildGPT source package and use its custom loader, substituting the actual Hugging Face model repository ID after upload:

from guildgpt.hub import load_from_hub
from guildgpt.generation import generate

model, tokenizer = load_from_hub("YOUR_USERNAME/GuildGPT")
print(generate(model, tokenizer, "The spaceship landed on an unknown planet.",
               max_new_tokens=80, seed=42))

The workshop notebook contains an equivalent model definition and weight loader, so attendees can inspect each block before loading the checkpoint. The checkpoint files are model.safetensors, config.json, and the GPT-2 tokenizer files.

Intended use and limitations

This model is for education and research into next-token prediction and creative-writing generation. It is not a general assistant, fact-checker, or system for safety-critical decisions. The training text is user-generated and may contain profanity, bias, personal information, copyrighted material, or other unsuitable content. Outputs may repeat or paraphrase training text; review generated material before sharing or reusing it. No systematic safety, memorization, or copyright evaluation has been performed.

Rights and redistribution

The upstream Hugging Face dataset page labels its dataset MIT. That label does not, by itself, establish the licensing or redistribution rights of every underlying Reddit-contributed story or settle whether publishing derived model weights is permitted. This project has not completed an independent rights review, and no license is asserted here for the model weights. The owner should resolve this before making the model repository public or assigning a license. This note is a provenance warning, not legal advice.

Downloads last month
48
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train thealepo/GuildGPT

Paper for thealepo/GuildGPT