Downloads · 30 days
12
5% of all-time downloads
aicinema69/gpt2-growing
gpt2-growing is a text generation model from aicinema69. Use it when you need the model to write or continue text. It is set up for transformers.
The Growing LLM is a GPT-2 based language model that implements neural plasticity-inspired dynamic growth during training. This model starts with a pre-trained GPT-2 (124M parameters) and dynamically adds new transfor…
Downloads · 30 days
12
5% of all-time downloads
All-time downloads
221
Public
Parameters
124M
498 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
The Growing LLM is a GPT-2 based language model that implements neural plasticity-inspired dynamic growth during training. This model starts with a pre-trained GPT-2 (124M parameters) and dynamically adds new transformer blocks while freezing the original parameters, allowing the model to acquire new knowledge without catastrophic forgetting.
| Metric | Initial | Final |
|---|---|---|
| Training Loss | 7.16 | 1.95 |
| Validation Loss | 6.99 | 2.03 |
| Validation Perplexity | ~1000 | 7.58 |
| Total Parameters | 124.4M | 145.7M |
| Growth # | Step | Layers | Parameters Added | Val Loss Delta |
|---|---|---|---|---|
| 1 | 500 | 12 → 13 | +7.1M | +0.00003 |
| 2 | 1000 | 13 → 14 | +7.1M | +0.00002 |
| 3 | 1500 | 14 → 15 | +7.1M | +0.000001 |
| Model | Perplexity | Loss |
|---|---|---|
| Base GPT-2 | 56.39 | 4.0323 |
| Growing LLM | 33.39 | 3.5082 |
Perplexity improvement: 40.8%
Key Observation: The validation loss delta after each growth event is minimal (~0.00003), demonstrating successful knowledge retention. The model continues to learn new capabilities without catastrophic forgetting.
from transformers import GPT2LMHeadModel, AutoTokenizer
# Load model and tokenizer
model = GPT2LMHeadModel.from_pretrained("aicinema69/gpt2-growing")
tokenizer = AutoTokenizer.from_pretrained("aicinema69/gpt2-growing")
# Generate text
input_text = "Once upon a time"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0]))
This model is based on GPT-2 which has the OpenAI GPT-2 License.
If you use this model in your research, please cite:
@misc{growing_llm,
author = {Satyam Singh},
title = {Growing LLM: Dynamic Model Growth for Continual Learning},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/aicinema69/gpt2-growing}}
}
For questions or issues, please open a GitHub issue or contact the model author.