Downloads · 30 days
20
21% of all-time downloads
Bochkov/growing-transformers-model-unfrozen-baseline-monolyth-247m
growing-transformers-model-unfrozen-baseline-monolyth-247m is a text generation model from Bochkov. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This repository contains growing-transformers-model-unfrozen-baseline-monolyth-247m, a classic monolithic baseline model from the paper:
Downloads · 30 days
20
21% of all-time downloads
All-time downloads
96
Public
Parameters
248M
990 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 99%
From the Hugging Face model README
This repository contains growing-transformers-model-unfrozen-baseline-monolyth-247m, a classic monolithic baseline model from the paper:
📚 Paper (Growing Transformers: Modular Composition and Layer-wise Expansion on a Frozen Substrate) -
It is part of the comparative-study collection:
https://huggingface.co/collections/Bochkov/growing-transformers-layer-wise-expansion-comparative-study
Code:
https://github.com/AVBochkov/PGT
This is a 9-layer decoder-only Transformer trained in the fully classical way: monolithic end-to-end training from scratch, with no constructive / layer-wise growth and no frozen embeddings. The token embedding matrix is randomly initialized and fully trainable, so semantic structure can be learned directly in the input embeddings (as in standard GPT-like training).
This repo exists as a clean baseline for controlled comparisons against the constructive-growth models and against models with frozen embedding substrates.
This model is intended to be compared to:
d_model=1024, n_head=32)vocab_size × d_model)d_model)This model has more parameters than the 16-bit models because it includes a full trainable embedding matrix:
65,536 × 1,024 ≈ 67.1M parametersSo even with the same Transformer block stack, the total parameter count differs primarily due to the embedding matrix.
vocab_size × d_model)(Counts follow the paper’s controlled-study table.)
Canonical tokenizer repository:
Research / analysis of:
Not intended as a general-purpose assistant model. Outputs may be unreliable and the model may reflect biases present in the training data.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Bochkov/growing-transformers-model-unfrozen-baseline-monolyth-247m")
model = AutoModelForCausalLM.from_pretrained("Bochkov/growing-transformers-model-unfrozen-baseline-monolyth-247m", trust_remote_code=True).to('cuda')
inputs = torch.tensor([tokenizer.encode("Write a short poem about the ocean. ")], dtype=torch.long, device='cuda')
outputs = model.generate(
inputs,
max_new_tokens=50,
do_sample=False
)
print(tokenizer.decode(outputs[0].tolist()))
#Write a short poem about the ocean. The poem is a poem about the sea and the sea and the sea and the sea. The poem is ab
inputs = torch.tensor([tokenizer.encode("Question: What is the capital of India?\nAnswer:")], dtype=torch.long, device='cuda')
outputs = model.generate(
inputs,
max_new_tokens=10,
do_sample=False
)
print(tokenizer.decode(outputs[0].tolist()))
#Question: What is the capital of India?
#Answer:Chennai
# </s><
If you use this model or the underlying concepts in your research, please cite our work:
@article{
bochkov2025emergent,
title={Emergent Semantics Beyond Token Embeddings: Transformer {LM}s with Frozen Visual Unicode Representations},
author={Andrey Bochkov},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2025},
url={https://openreview.net/forum?id=Odh8IynO1o},
note={}
}
@misc{bochkov2025growingtransformersmodularcomposition,
title={Growing Transformers: Modular Composition and Layer-wise Expansion on a Frozen Substrate},
author={A. Bochkov},
year={2025},
eprint={2507.07129},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2507.07129},
}