Instructions to use greyAll/mimo-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use greyAll/mimo-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="greyAll/mimo-v2", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("greyAll/mimo-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use greyAll/mimo-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "greyAll/mimo-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "greyAll/mimo-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/greyAll/mimo-v2
- SGLang
How to use greyAll/mimo-v2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "greyAll/mimo-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "greyAll/mimo-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "greyAll/mimo-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "greyAll/mimo-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use greyAll/mimo-v2 with Docker Model Runner:
docker model run hf.co/greyAll/mimo-v2
Teutonic-II 110B Genesis
Teutonic-II 110B Genesis is an open-weight, compute-efficient sparse Mixture-of-Experts (MoE) language model with approximately 110B total parameters and an estimated ~7.3B activated parameters per token. The Genesis checkpoint is initialized with random weights and has not yet undergone pretraining, providing a clean starting point for continued pretraining and decentralized model improvement through Teutonic on Bittensor Subnet 3.
The model is built on a modified MiMoV2-style architecture, combining sparse MoE layers with hybrid Global and Sliding Window Attention, Grouped Query Attention, asymmetric QK/V head dimensions, partial Rotary Position Embeddings, and attention-sink mechanisms. In addition to adopting MiMoV2 architectural concepts, the Teutonic team introduces a modification to the MoE implementation that enables expert sharing.
1. Introduction
Teutonic-II 110B Genesis is designed as a compute-efficient large-scale sparse language model architecture for continued pretraining and decentralized model improvement.
The model uses a custom MiMoV2-style architecture with several efficiency-oriented components:
- Sparse Mixture-of-Experts (MoE): 256 routed experts are available in each MoE layer, while only 8 routed experts are selected per token.
- Shared Expert: Each MoE layer additionally includes one shared expert.
- Expert Sharing: Teutonic introduces an architectural modification that enables expert sharing within the MoE implementation.
- Hybrid Attention: The network combines Global Attention with local Sliding Window Attention.
- Sliding Window Attention: SWA operates with a local window of 128 tokens.
- Grouped Query Attention: 48 query heads share 8 key/value heads.
- Asymmetric QK/V Dimensions: Query/Key heads use 192 dimensions while Value heads use 128 dimensions.
- Partial Rotary Position Embeddings: RoPE is applied to a fraction of the attention dimensions.
- Attention Sink Bias: Enabled for Sliding Window Attention layers.
- Sparse Activation: Only a small subset of the model's expert parameters is used for each token.
- BF16 Precision: The checkpoint configuration uses
bfloat16. - Long-Context Architecture: The configuration declares up to 1,048,576 positional embeddings.
The declared maximum position length is an architectural configuration value. It should not by itself be interpreted as evidence that this checkpoint has been trained or validated at the full 1M-token sequence length.
2. Model Summary
| Component | Teutonic-II 110B Genesis |
|---|---|
| Architecture | MiMoV2ForCausalLM |
| Total Parameters | ~110B |
| Estimated Activated Parameters / Token | ~7.3B |
| Precision | BF16 |
| Hidden Size | 3,072 |
| Number of Layers | 45 |
| Dense Layers | 1 |
| MoE Layers | 44 |
| Global / Full Attention Layers | 9 |
| Sliding Window Attention Layers | 36 |
| Attention Heads | 48 |
| Key / Value Heads | 4 |
| Q/K Head Dimension | 192 |
| Value Head Dimension | 128 |
| Dense FFN Intermediate Size | 16,384 |
| MoE Expert Intermediate Size | 1,024 |
| Routed Experts | 256 |
| Shared Experts | 1 |
| Expert Sharing | Enabled via Teutonic architectural modification |
| Routed Experts per Token | 8 |
| Router Scoring Function | Sigmoid |
| Expert Selection | Top-K |
| Top-K Method | noaux_tc |
| Sliding Window Size | 128 |
| Attention Chunk Size | 128 |
| Standard RoPE Theta | 10,000,000 |
| SWA RoPE Theta | 10,000 |
| Partial Rotary Factor | 0.334 |
| Vocabulary Size | 152,576 |
| Configured Max Positions | 1,048,576 |
| Input / Output Embeddings Tied | No |
| Attention Dropout | 0.0 |
| Activation Function | SiLU |
- Downloads last month
- 6