Downloads · 30 days
12
13% of all-time downloads
aicinema69/gpt2-growing-large
gpt2-growing-large 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
13% of all-time downloads
All-time downloads
94
Public
Parameters
124M
498 MB on disk
Likes
0
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 | Improvement |
|---|---|---|---|
| Training Loss | 7.16 | 1.95 | 73% ↓ |
| Validation Loss | 6.99 | 2.03 | 71% ↓ |
| Validation Perplexity | ~1000 | 7.42 | 99% ↓ |
| Total Parameters | 124.4M | 145.7M | +17% |
| Growth # | Step | Layers | Parameters | Val Loss | Val Perplexity |
|---|---|---|---|---|---|
| Initial | 0 | 12 | 124.4M | 6.99 | ~1000 |
| 1 | 500 | 13 | 170.1M | 2.00 | 7.42 |
| 2 | 1000 | 14 | 177.2M | 2.01 | 7.45 |
| 3 | 1500 | 15 | 184.3M | 2.02 | 7.52 |
Key Observation: The validation loss remains stable (~2.0) across all growth events, demonstrating successful knowledge retention. The model continues to learn new capabilities without catastrophic forgetting.
| Model | Perplexity | Improvement |
|---|---|---|
| Base GPT-2 | 56.0 | - |
| Growing LLM | 33.0 | 41% ↓ |
from transformers import GPT2LMHeadModel, AutoTokenizer
# Load model and tokenizer
model = GPT2LMHeadModel.from_pretrained("aicinema69/gpt2-growing-large")
tokenizer = AutoTokenizer.from_pretrained("aicinema69/gpt2-growing-large")
# 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-large}}
}
For questions or issues, please open a GitHub issue or contact the model author.