Downloads · 30 days
11
20% of all-time downloads
YasirUsman/cellular-reasoning-fabric
cellular-reasoning-fabric is a text generation model from YasirUsman. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
A bio-inspired alternative to the Transformer architecture for language modeling.
Downloads · 30 days
11
20% of all-time downloads
All-time downloads
55
Public
Repo size
346 KB
Likes
0
Public
Click a slice to open those files.
.pt346 KB · 78%
From the Hugging Face model README
A bio-inspired alternative to the Transformer architecture for language modeling.
The Cellular Reasoning Fabric replaces self-attention with a population of autonomous, communicating cells that:
| Benchmark | CRF Perplexity | Transformer Perplexity | CRF Advantage |
|---|---|---|---|
| Synthetic | 6.69 | 21.14 | 3.2x |
| ARC Reasoning | 17.36 | 53.04 | 3.1x |
| Arithmetic | 22.37 | 62.75 | 2.8x |
| Chain-of-Thought | 21.96 | 60.10 | 2.7x |
| Code Generation | 23.95 | 60.29 | 2.5x |
| Property | Value |
|---|---|
| Parameters | 33,890 |
| d_model | 64 |
| d_hidden | 32 |
| Initial Cells | 16 |
| Max Cells | 64 |
| CRF Steps | 4 |
| k-Neighbors | 3 |
| FLOPs/forward | 858,176 |
The CRF model features a fully operational cell lifecycle:
import torch
from src.crf_reasoning.crf_vectorized import CRFLanguageModel, AblationConfig
cfg = AblationConfig()
model = CRFLanguageModel(
vocab_size=256,
d_model=64,
d_hidden=32,
n_init_cells=16,
max_cells=64,
n_crf_steps=4,
k_neighbors=3,
cfg=cfg,
)
# Load weights
state_dict = torch.load("crf_model.pt", map_location="cpu")
model.load_state_dict(state_dict)
# Forward pass with metrics
x = torch.randint(0, 256, (1, 32))
logits, loss, metrics = model(x, targets=x, collect_metrics=True)
print(f"Splits: {metrics.n_splits}, Merges: {metrics.n_merges}")
If you use this work, please cite:
@misc{usman2026crf,
title={Cellular Reasoning Fabric: A Bio-Inspired Alternative to Transformers},
author={Yasir Usman},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/YasirUsman/cellular-reasoning-fabric}
}
MIT