Downloads · 30 days
14
19% of all-time downloads
Bochkov/growing-transformers-model-frozen-unicode-baseline-monolyth-247m
growing-transformers-model-frozen-unicode-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-frozen-unicode-baseline-monolyth-247m, a monolithic baseline model from the paper:
Downloads · 30 days
14
19% of all-time downloads
All-time downloads
72
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-frozen-unicode-baseline-monolyth-247m, a 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 monolithically end-to-end (all Transformer layers trained simultaneously from scratch), without constructive / layer-wise growth. The key constraint is that the token embedding layer is frozen and is predefined by a visual UNICODE rendering procedure (as described in the papers): tokens are deterministically mapped to d_model = 1024 vectors, and the resulting embedding matrix is kept fixed throughout training.
This repository is intended as a clean baseline to isolate the effect of monolithic training under the frozen visual-UNICODE embedding substrate.
This model is explicitly meant to be compared to:
What is identical
d_model=1024, n_head=32vocab_size = 65,536What differs
d_modelImportant note on parameter count:
This model has more parameters than the 16-bit models because a full (V × d_model) embedding matrix is stored (and frozen). With V=65,536 and d_model=1,024, the frozen embedding matrix alone is ~67.1M parameters.
If you want to isolate training regime while keeping the UNICODE substrate fixed, compare to:
(Counts follow the paper’s controlled-study table.)
Canonical tokenizer repository (same vocab family):
Reproducibility note (important):
This model repo may include embedding-related artifacts (including the frozen UNICODE embedding tensor) that are tied to the exact embedding construction used for this run. Even with the same tokenizer, the embedding tensor content is part of the experimental condition. For strict reproducibility, prefer loading the tokenizer (and any embedding artifacts) from this model 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-frozen-unicode-baseline-monolyth-247m")
model = AutoModelForCausalLM.from_pretrained("Bochkov/growing-transformers-model-frozen-unicode-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 in the collection of the National Museum of Wales and the National Museum of
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},
}