Downloads · 30 days
39
33% of all-time downloads
Bochkov/growing-transformers-model-unicode-1-9-247m
growing-transformers-model-unicode-1-9-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-unicode-1-9-247m, a constructively grown (layer-wise) model from the paper:
Downloads · 30 days
39
33% of all-time downloads
All-time downloads
118
Public
Parameters
248M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 68%
From the Hugging Face model README
This repository contains growing-transformers-model-unicode-1-9-247m, a constructively grown (layer-wise) 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 (GPT-like) trained with a constructive, layer-wise growth procedure: layers are added progressively, and previously trained layers are frozen at each stage. The key feature is its fully frozen “visual UNICODE” embedding substrate: token embeddings are deterministic and non-semantic by design (precomputed from Unicode glyph renderings), and not trained. The paper studies how semantic structure and reasoning capabilities can still emerge in deeper Transformer layers even when the input embedding layer is fixed and non-semantic.
This model is intended to be compared to:
Both models share the same Transformer stack architecture in the controlled study:
d_model = 1024n_head = 32vocab_size = 65,536 (BVV tokenizer family)They differ only in the embedding substrate (visual UNICODE vs 16-bit binary).
The total parameter count is larger here (≈247.6M) than in the 16-bit ablation (≈181.6M) because the frozen embedding matrix is much larger:
d_model = 1024, i.e. an embedding table of sizevocab_size × d_model = 65,536 × 1,024 ≈ 67.1M parameters (frozen).n_embed = 16) and a deterministic expansion to d_model, so the embedding-related parameter count is dramatically smaller.So: same Transformer stack, but different embedding-table size → different total parameters.
vocab_size = 65,536d_model=1024Training was performed in staged growth (as in the controlled study):
This isolates the effect of layer stacking on top of a stable frozen substrate (the embedding + already-trained lower layers).
This model uses the BVV tokenizer family.
Canonical tokenizer repo:
Note: for exact reproducibility, it is recommended to load the tokenizer from this model repo, because this repo also contains the embedding artifacts that match the tokenizer IDs used here.
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-unicode-1-9-247m")
model = AutoModelForCausalLM.from_pretrained("Bochkov/growing-transformers-model-unicode-1-9-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 was published in 1993 by the French journalist and poet Jean Baptiste de La Mo
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:Mumbai </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},
}