Downloads · 30 days
29
1% of all-time downloads
arnomatic/german-moe-gpt-v8-pretrained
german-moe-gpt-v8-pretrained is a text generation model from arnomatic. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
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…
Downloads · 30 days
29
1% of all-time downloads
All-time downloads
4K
Public
Parameters
150M
598 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors598 MB · 98%
From the Hugging Face model README
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.
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.
transformers library| 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) |
The model was trained on a 17.4 GB curated German corpus consisting of:
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.
| Metric | Initial | Final | Improvement |
|---|---|---|---|
| Training Loss | 12.0 | 2.55 | 79% ↓ |
| Validation Loss | 4.58 | 2.40 | 48% ↓ |
| Perplexity | - | 11.0 | - |
pip install transformers torch
check -> inference.py
# Generate with custom parameters
outputs = model.generate(
**inputs,
max_new_tokens=200,
temperature=0.7, # Lower = more deterministic
top_k=40, # Top-k sampling
top_p=0.95, # Nucleus sampling
repetition_penalty=1.1, # Reduce repetition
do_sample=True
)
The model uses a Noisy Top-k Router with the following components:
The training loss combines three components:
L_total = L_ce + α * L_aux + β * L_z
This model is a language model and can generate text that may be:
Users should:
If you use this model in your research, please cite:
@misc{german-moe-gpt-v8,
title={German MoE GPT v8: A Research-Grade Mixture-of-Experts Language Model},
author={[Your Name]},
year={2025},
howpublished={\url{https://huggingface.co/arnomatic/german-moe-gpt-v8-pretrained}}
}
This implementation is based on:
MIT License - See LICENSE file for details
For questions or feedback, please open an issue in the GitHub repository.