TR-HASH-MoE-50M-4B-Pretraining
An AETHORIA-AI causal language model with 51,522,048 parameters, exported after 122,070 pretraining optimizer updates over 3,999,989,760 training tokens. The repository name rounds the parameter and token counts to 50M and 4B.
This checkpoint contains the pretraining stage only, before refinement/refit or supervised fine-tuning.
Architecture
| Property | Value |
|---|---|
| Transformer layers | 8 |
| Hidden size | 512 |
| Vocabulary size | 32,000 |
| Attention | Grouped-query attention, 4 query heads / 1 key-value head |
| Maximum configured sequence length | 2,048 tokens |
| Feed-forward implementation | tr_hash_engine |
| Routing strategy | token_id_composed_modulo |
| Routed experts | 4 |
| Selected experts per token | 2 |
| Shared expert | Enabled; intermediate size 1,024 |
| Configured intermediate size | 1,408 |
| Intermediate size per routed expert | 352 |
| Position encoding | RoPE; theta 10,000 |
| Normalization | RMSNorm |
| Input/output embeddings | Tied |
The checkpoint uses composed-modulo routing and the corresponding inference code provided in this repository.
Training
The training source was the tokenized TR-HASH Pretraining 125B Agentic 32K dataset, revision fc738b3a10c5c093e3b34b48bcf1cb7066184706. This run used a selected approximately 4B-token prefix through its pretraining replay plan. The dataset name describes the larger source collection, not the number of tokens consumed by this model.
| Setting | Value |
|---|---|
| Training stage | Pretraining |
| Optimizer updates | 122,070 |
| Sequence length | 2,048 |
| Data-parallel workers | 8 |
| Sequences per worker per update | 2 |
| Gradient accumulation | 1 |
| Global tokens per update | 32,768 |
| Training tokens | 122,070 × 32,768 = 3,999,989,760 |
| Optimizer | AdamW |
| Peak learning rate | 0.0003 |
| Learning-rate schedule | Cosine; 1,000 warmup updates |
| Weight decay | 0.1 |
| Training precision | bfloat16 |
The training-token count matches the final metrics.jsonl record and the completed update count multiplied by the configured global batch. The last recorded training loss is 3.652127 at update 122,070. This is a training-log value, not a held-out evaluation score. No benchmark scores are reported for this checkpoint.
Loading
Install torch, transformers, and safetensors. The inference implementation is included in the repository; a Complexity Framework installation is not required.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "AETHORIA-AI/TR-HASH-MoE-50M-4B-Pretraining"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.float32,
).eval()