Reuters GPT-2 From Scratch

Overview

A small GPT-2-style autoregressive language model trained from randomly initialized weights on the Reuters Articles dataset.

Dataset

ingeniumacademy/reuters_articles

Tokenizer

ingeniumacademy/gpt2-reuters-tokenizer

Architecture

  • Embedding dimension: 256
  • Transformer layers: 4
  • Attention heads: 4
  • Context length: 256

Training

  • Epochs: 2
  • Learning rate: 0.0005
  • Training batch size: 8
  • Gradient accumulation: 2

Evaluation

Training loss: 5.4773 Validation loss: 5.0473 Test loss: 4.8201

Important

The GPT-2 model weights were initialized randomly. No pretrained GPT-2 model weights were used.

Downloads last month
25
Safetensors
Model size
16.5M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support