Downloads ยท 30 days
0
Himan-de/EidosFormer
EidosFormer is a machine learning model from Himan-de. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
Downloads ยท 30 days
0
Access
Public
Updated Aug 4, 2026
Repo size
5.1 GB
Likes
1
Public
Click a slice to open those files.
.pt5.1 GB ยท 100%
From the Hugging Face model README
A novel transformer architecture that unifies episodic, semantic, and working memory systems for long-context understanding.
๐ค Hugging Face โข ๐ Model Card
</div>EidosFormer (pronounced eye-dos-former) is a memory-augmented language model that integrates four independently validated research mechanisms into a unified, end-to-end trainable architecture. It addresses the long-context problem by maintaining three parallel memory subsystems:
| Memory System | Capacity | Update Rule | Retrieval Mechanism |
|---|---|---|---|
| Episodic | Dynamic (FAISS-backed) | STE kNN append | Cosine similarity retrieval |
| Semantic | Fixed centroid slots | Soft-gated EMA consolidation | Attention-based recall |
| Working | Window-size bounded | Standard transformer attention | Direct positional access |
Input Tokens
โ
โโโบ Token Embedding + Temporal Encoding (wall-clock aware)
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Episodic Memory Store โ โ FAISS ANN index, STE kNN retrieval
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ retrieved_kv
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Semantic Patterns โ โ EMA-updated centroids (consolidated from episodic)
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ merged with kv
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Memory Cross-Attn โ โ Layer 0: connects all memory streams
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ unified representation
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ EidosBlock ร N layers โ โ CausalSelfAttention + SwiGLU blocks
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ MemoryWriteHead โ โ gated write-back to episodic store
โโโโโโโโโโโโโโโโโโโโโโโโโ
Side channels (trainer-driven, no-grad):
- model.append_episodic(x) โ FAISS vector store
- model.write_to_semantic() โ soft-gated EMA update
- model.apply_consolidation() โ weakest-slot compression
- model.resize_semantic(n) โ memory curriculum (grow/shrink)
pip install transformers torch faiss-cpu accelerate sentencepiece
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"Himan-de/EidosFormer",
trust_remote_code=True,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(
"Himan-de/EidosFormer",
trust_remote_code=True
)
# Generate text
inputs = tokenizer("The future of AI is driven by memory systems that enable:", return_tensors="pt")
outputs = model.generate(**inputs.to(model.device), max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Access via huggingface-cli
huggingface-cli login # Enter your token when prompted
huggingface-cli download Himan-de/EidosFormer --local-dir ./eidosformer
| Parameter | Value |
|---|---|
| Parameters | ~1 Billion (1B) |
| Architecture | Custom Transformer with Memory Modules |
| Hidden Size | 2048 |
| Layers | 24 EidosBlocks |
| Attention Heads | 16 (Grouped Query Attention) |
| Intermediate FFN | 5632 (SwiGLU) |
| Position Encoding | RoPE with NTK/Instruct Scaling + Temporal Tokens |
| Max Context Length | 8192 tokens |
| Embedding Dim | 2048 (tied to LM head) |
| Memory Stores | Episodic (FAISS) + Semantic (EMA centroids) |
1b_final.pt (recommended for inference)1b_ckpt_*pt) for reproducibilityEidosFormer synthesizes mechanisms from:
If you use EidosFormer in your research:
@misc{eidosformer2026,
title={EidosFormer: Memory-Native Transformers with Multi-Store Consolidation},
author={Dixit, Himanshu},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/Himan-de/EidosFormer}
}
Proprietary โ Contact Author for Commercial Use
This model is released under a custom license. For commercial usage, licensing inquiries, or collaboration opportunities, please reach out via the discussions tab on Hugging Face.
For academic research use, please request access through the gated repo link above.
For questions, collaboration, or licensing inquiries: