How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="EleutherAI/GPT-2-wikitext-chunks")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("EleutherAI/GPT-2-wikitext-chunks")
model = AutoModelForCausalLM.from_pretrained("EleutherAI/GPT-2-wikitext-chunks", device_map="auto")
Quick Links

GPT-2 fine-tuned on bergson-wikitext-512-chunks

GPT-2 (124M) fine-tuned on EleutherAI/bergson-wikitext-512-chunks (WikiText-2 pre-chunked to 512-token sequences, 4,608 train chunks) using the bergson MAGIC trainer, as the trained model for MAGIC attribution experiments.

Training

  • 4 epochs, global batch size 64 (8x data parallel), 288 steps
  • AdamW, polynomial LR schedule: lr 8e-4 (start 1e-6, end 8e-5), 25% warmup, fp32
  • Loss on held-out test[:4] chunks: 3.22 (base gpt2: 3.62)

Files

  • Standard HF model + tokenizer files
  • bergson_config.yaml β€” the fully-resolved bergson run config (all fields incl. defaults) that produced this model; rerun with python -m bergson bergson_config.yaml
  • optimizer.pt β€” AdamW second moments (exp_avg_sq) at the final training step, in bergson's optimizer.pt normalizer format ({"state": {idx: {"exp_avg_sq": ...}}, "param_groups": [...]} with idx indexing deduplicated model.named_parameters()), for gradient normalization in attribution runs.
Downloads last month
192
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

Model tree for EleutherAI/GPT-2-wikitext-chunks

Finetuned
(2,357)
this model
Quantizations
1 model

Dataset used to train EleutherAI/GPT-2-wikitext-chunks