Downloads · 30 days
22
17% of all-time downloads
Bochkov/emergent-semantics-model-uni-glyph-335m
emergent-semantics-model-uni-glyph-335m is a text generation model from Bochkov. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository provides ModelUNIGLYPH (335M) — a decoder-only Transformer language model where the entire input embedding layer is frozen and initialized from visual Unicode glyph representations (rendered glyph bitm…
Downloads · 30 days
22
17% of all-time downloads
All-time downloads
128
Public
Parameters
336M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 74%
From the Hugging Face model README
This repository provides Model_UNI_GLYPH (335M) — a decoder-only Transformer language model where the entire input embedding layer is frozen and initialized from visual Unicode glyph representations (rendered glyph bitmaps → PCA projection → L2 normalization).
The model is released as part of the paper:
📚 Paper (Growing Transformers: Modular Composition and Layer-wise Expansion on a Frozen Substrate) -
Primary goal: research and ablations on where semantic structure emerges in Transformer LMs when input embeddings are non-trainable and non-semantic.
Standard LMs learn token embeddings jointly with the rest of the network. In this work, embeddings are treated as fixed structural primitives rather than “meaning vectors”.
Model_UNI_GLYPH uses:
nn.Embedding weights (no gradient updates)This isolates semantics as an emergent property of Transformer layers, rather than a property of learned input embeddings.
d_model): 1024Bochkov/bvv241-2-3This model is intended for:
Not intended for production deployments. It is a research artifact trained under constrained compute/data to enable controlled comparisons.
These are the key numbers reported for this checkpoint:
Note: The objective of the project is not SOTA performance. The primary comparison is against architecturally identical baselines differing only in whether embeddings are trainable.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Bochkov/emergent-semantics-model-uni-glyph-335m")
model = AutoModelForCausalLM.from_pretrained("Bochkov/emergent-semantics-model-uni-glyph-335m", trust_remote_code=True).to('cuda')
inputs = torch.tensor([tokenizer.encode("Question: What is the capital of Japan?\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 Japan?
#Answer:Tokyo (city)
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},
}