A research-grade language model with state-of-the-art Mixture-of-Experts (MoE) architecture, trained on consumer hardware (RTX 4090). This implementation follows best practices from recent MoE research (ST-MoE, Switch Transformer) while maintaining full cross-platform compatibility.
Note: While this model was trained on German data, the architecture is language-agnostic and can be used for any language dataset. Simply replace the training corpus with your target language data.
Model Description
This is a 149.6M parameter Mixture-of-Experts (MoE) language model trained on high-quality German text data. The model uses a hybrid architecture combining dense and sparse (MoE) layers for optimal parameter efficiency.
Key Features
🏗️ Hybrid Dense + MoE Architecture: Every 2nd layer uses MoE for efficiency
🔬 Research-Backed: Implements ST-MoE and Switch Transformer best practices
⚡ Efficient: Only ~33% of parameters active per token
🖥️ Cross-Platform: Pure PyTorch, runs on Windows/Linux/macOS
🤗 HuggingFace Compatible: Full integration with transformers library
Model Specifications
Specification
Value
Total Parameters
149.6M
Active Parameters per Token
~49.9M (~33%)
Vocabulary Size
128,256 (Llama 3.2 Tokenizer)
Context Length
2048 tokens
Architecture
Hybrid Dense + MoE Transformer
Layers
12
Hidden Size
768
Attention Heads
12
Experts per MoE Layer
32
Active Experts (Top-k)
2
Position Embeddings
RoPE (Rotary Position Embeddings)
Training Data
The model was trained on a 17.4 GB curated German corpus consisting of:
Clean German Wikipedia (~11 GB): Encyclopedic knowledge
OpenSubtitles (German): Natural dialog and conversational language
Belletristik: German literature for style and creativity
Data Quality: Deduplicated and SEO spam filtered for high-quality training signal.
Adapting to other languages: The architecture is language-agnostic. Replace the dataset with your target language corpus and retrain.