Downloads · 30 days
15
9% of all-time downloads
myyycroft/gpt2-toxicity-conditional-final
gpt2-toxicity-conditional-final is a text generation model from myyycroft. Use it when you need the model to write or continue text. The card lists the license as mit.
This directory contains a final (step 50354) checkpoint for a GPT-2 style language model trained from scratch as part of a reproduction of Pretraining Language Models with Human Preferences (Korbak et al., 2023). This…
Downloads · 30 days
15
9% of all-time downloads
All-time downloads
158
Public
Parameters
124M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt996 MB · 66%
From the Hugging Face model README
This directory contains a final (step 50354) checkpoint for a GPT-2 style language model trained from scratch as part of a reproduction of Pretraining Language Models with Human Preferences (Korbak et al., 2023). This run corresponds to the conditional training for the toxicity task.
The goal of this run was to reproduce the paper's conditional pretraining setup for toxicity reduction. Rather than only learning to imitate the training corpus, the model was trained with control tokens that condition generation on preference-related labels, so that aligned generations can be elicited at inference time by prompting with the aligned prefix.
gpt2 config, not continued from pretrained weightsgpt2<|aligned|>, <|misaligned|>Training used sentence-split shards of the tomekkorbak/detoxify-pile-chunk3-* datasets on Hugging Face. The run metadata shows shards covering:
tomekkorbak/detoxify-pile-chunk3-0-50000tomekkorbak/detoxify-pile-chunk3-1900000-1950000The configured token budget for training was approximately 3.3B tokens.
This run used a conditional version of maximum likelihood training (MLE) in which text is associated with preference-conditioned control prefixes:
<|aligned|><|misaligned|>0.000560.01The tokenizer and model were expanded to support the two special control tokens. In practice, this means the final checkpoint is intended to be prompted with <|aligned|> when generating lower-toxicity text.
5e-40.10.0164322bf16425000 stepsThe run was configured for 50354 optimization steps and the final checkpoint in this directory corresponds to that step count:
checkpoint-5035450354The run configuration included periodic unconditional generation for qualitative monitoring, but generation was conditioned with the aligned prefix <|aligned|>. Generated samples were scored with DetoxifyToxicityScorer, and the generation config blocked the two control tokens from being emitted as normal output tokens via bad_words_ids.
This artifact is a reproduction-style checkpoint for the toxicity conditional-training setting described in Pretraining Language Models with Human Preferences. It should not be interpreted as an official release from the paper authors unless accompanied by separate release documentation.