1from transformers import GPT2LMHeadModel, AutoTokenizer
2
3# Load model and tokenizer
4model = GPT2LMHeadModel.from_pretrained("aicinema69/gpt2-growing")
5tokenizer = AutoTokenizer.from_pretrained("aicinema69/gpt2-growing")
6
7# Generate text
8input_text = "Once upon a time"
9inputs = tokenizer(input_text, return_tensors="pt")
10outputs = model.generate(**inputs, max_new_tokens=50)
11print(tokenizer.decode(outputs[0]))
This model is based on GPT-2 which has the
OpenAI GPT-2 License.
1@misc{growing_llm,
2 author = {Satyam Singh},
3 title = {Growing LLM: Dynamic Model Growth for Continual Learning},
4 year = {2026},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/aicinema69/gpt2-growing}}
7}
For questions or issues, please open a GitHub issue or contact the model author.