Downloads · 30 days
0
HROMEK-Industries/HROM-M1
HROM-M1 is a machine learning model from HROMEK-Industries. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
HROM-M1 is a transformer-based Mixture-of-Experts (MoE) language model built entirely in PyTorch by me, Timur Hromek, a 15-year-old self-taught developer. It's designed for multi-turn, persona-aware dialogue with a fo…
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2025
Repo size
8.9 GB
Likes
3
Public
Click a slice to open those files.
.pt4.4 GB · 100%
From the Hugging Face model README
HROM-M1 is a transformer-based Mixture-of-Experts (MoE) language model built entirely in PyTorch by me, Timur Hromek, a 15-year-old self-taught developer. It's designed for multi-turn, persona-aware dialogue with a focus on safety, modularity, and extensibility.
This implementation includes top-k expert routing, rotary position embeddings, SwiGLU activations, and a custom tokenizer, along with built-in safety filters and checkpoint management.
daily_dialogempathetic_dialoguesblended_skill_talkpersona-chatpapahawk/conversational-01SafetyManager for blocking unsafe generations using token-level filtering.CheckpointManager with rotating save slots and auto-recovery.| Hyperparameter | Value |
|---|---|
| Model Parameters | 370.46M |
| Embedding Size (dim) | 768 |
| Layers | 8 |
| Attention Heads | 8 |
| Expert FF Dim | 2048 |
| Number of Experts | 8 |
| Top-k Experts | 2 |
| Vocabulary Size | 32,000 |
| Max Sequence Length | 512 tokens |
| Dropout | 0.1 |
| Batch Size | 16 |
| Learning Rate | 2e-5 |
| Optimizer | AdamW |
| Epochs | 30 |
| Grad Accumulation Steps | 8 |
HROMBlock: Transformer block with attention and MoE feedforward.MoELayer: Routes tokens to top-k experts and applies load balancing loss.Expert: Lightweight FFN with SwiGLU nonlinearity.SafetyManager: Filters generations using predefined token patterns.TokenizerTrainer: Builds a BPE tokenizer from dialogue data.CheckpointManager: Rotates and auto-recovers checkpoints.The model includes a basic content filter that blocks sequences containing unsafe keywords by checking token IDs. Unsafe generations are interrupted before completion.
git clone https://github.com/yourusername/HROM-M1.git
cd HROM-M1
pip install -r requirements.txt
python HROM-M1.py
The tokenizer will auto-train if not found. Dialogue datasets are pulled via HuggingFace datasets.Dialogue datasets are pulled via HuggingFace datasets.