Downloads · 30 days
0
edeneldith/WiggleGPT
WiggleGPT is a text generation model from edeneldith. Use it when you need the model to write or continue text. The card lists the license as gpl-3.0.
A 124M parameter transformer that challenges a 56-year-old assumption in neural network design.
Downloads · 30 days
0
Access
Public
Updated Dec 5, 2025
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.pt3 GB · 100%
From the Hugging Face model README
A 124M parameter transformer that challenges a 56-year-old assumption in neural network design.

Since Minsky and Papert's Perceptrons (1969), neural networks have relied on monotonic activation functions (Sigmoid, ReLU, GELU) — requiring multiple hidden layers to solve non-linearly separable problems like XOR.
WiggleGPT replaces monotonic activations with learnable oscillating functions, enabling single neurons to create multiple decision boundaries:
f(x) = sin(ωx + φ) · tanh(x) + baseline
Where ω (frequency) and φ (phase) are learnable per-neuron parameters.
| Model | Parameters | Val Loss | Notes |
|---|---|---|---|
| WiggleGPT | 124M | 3.1621 | Oscillating activation |
| GPT-2 | 124M | ~3.12 | Standard GELU baseline |
Within 1.3% of GPT-2 performance — proving oscillating activations are a functional drop-in replacement at scale.
| Parameter | Init | After Training | Change |
|---|---|---|---|
| ω mean | 1.0 | 1.096 | +9.6% |
| ω std | 0.1 | 0.602 | 6× increase |
| ω range | [0.8, 1.2] | [-0.19, 5.17] | Massive expansion |
| File | Description |
|---|---|
ckpt_pretrain.pt | Base model trained on OpenWebText (~600k iterations) |
ckpt_finetune.pt | Fine-tuned on SmolTalk2 (instruction following) |
| Component | Specification |
|---|---|
| Parameters | 123,697,920 |
| Layers | 12 |
| Attention Heads | 12 |
| Embedding Dimension | 768 |
| Oscillating Neurons | 36,864 (each with learnable ω, φ, baseline) |
| Normalization | RMSNorm |
| Position Encoding | RoPE (Rotary) |
| Attention | Flash Attention (when available) |
See the GitHub repository for full training, inference, and chat scripts.
# Quick inference example
import torch
from model_bio import GPT, GPTConfig
# Load checkpoint
checkpoint = torch.load('ckpt_pretrain.pt', map_location='cuda')
config = GPTConfig(**checkpoint['config'])
model = GPT(config)
model.load_state_dict(checkpoint['model'])
model.eval()
# Generate text (see sample_bio.py for full implementation)
Pretraining:
Fine-tuning:
@software{wigglegpt2025,
author = {O'Brien, Phillip C.},
title = {WiggleGPT: Revisiting the Monotonicity Assumption in Neural Networks via Oscillating Activation Functions},
year = {2025},
url = {https://github.com/Eden-Eldith/WiggleGPT}
}
Eden (Phillip C. O'Brien)
Independent AI Researcher | ORCID: 0009-0007-3961-1182
Built in a garage lab in Gosport, UK. No academic affiliation, no institutional funding — just curiosity and an RTX 3070.
GPL-3.0 — if you build on this, keep it open source.