Instructions to use FlameF0X/TinyMoE-100m-2x8-retrained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FlameF0X/TinyMoE-100m-2x8-retrained with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FlameF0X/TinyMoE-100m-2x8-retrained")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FlameF0X/TinyMoE-100m-2x8-retrained") model = AutoModelForCausalLM.from_pretrained("FlameF0X/TinyMoE-100m-2x8-retrained") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FlameF0X/TinyMoE-100m-2x8-retrained with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FlameF0X/TinyMoE-100m-2x8-retrained" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FlameF0X/TinyMoE-100m-2x8-retrained", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FlameF0X/TinyMoE-100m-2x8-retrained
- SGLang
How to use FlameF0X/TinyMoE-100m-2x8-retrained 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 "FlameF0X/TinyMoE-100m-2x8-retrained" \ --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": "FlameF0X/TinyMoE-100m-2x8-retrained", "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 "FlameF0X/TinyMoE-100m-2x8-retrained" \ --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": "FlameF0X/TinyMoE-100m-2x8-retrained", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FlameF0X/TinyMoE-100m-2x8-retrained with Docker Model Runner:
docker model run hf.co/FlameF0X/TinyMoE-100m-2x8-retrained
TinyMoE-100M-2x8
TinyMoE-100M-2x8 is a compact, highly efficient Sparse Mixture of Experts (MoE) language model built upon the Mixtral/Mistral architecture. Designed for research, edge applications, and resource-constrained environments, this model leverages an expert-routing mechanism to balance a larger total parameter capacity with ultra-low computational overhead during inference.
On 05 July 2026 i update the weights with new ones. Pleace change the old weights with the new ones.
Model Details
- Architecture: Sparse Mixture of Experts (MoE)
- Total Parameters: 99,809,280 (~100M total parameters)
- Active Parameters per Token: 22,544,640 (~22.5M active parameters)
- Expert Configuration: 8 total local experts, 2 active experts routed per token (
num_experts_per_tok": 2) - Context Length: 1024 tokens
- Base Architecture: Mixtral / Mistral For Causal LM
- License: MIT
Parameter Breakdown
Unlike a standard dense model, an MoE model stores a larger footprint of parameters on disk but selectively activates only a subset for any given token during a forward pass:
| Component | Total Parameters | Status During Inference |
|---|---|---|
| Embeddings (Input + LM Head) | 24,576,000 | Always Active |
| Attention Blocks (10 Layers) | 4,423,680 | Always Active |
| MoE Routers (10 Layers) | 30,720 | Always Active |
| Experts (8 Total across 10 Layers) | 70,778,880 | 2 of 8 Active per Layer (~17.6M active) |
| Overall Footprint | 99,809,280 | 22,544,640 Active per Token |
Training Data
This model was trained on a HuggingFaceTB/smollm-corpus subsets cosmopedia-v2 and fineweb-edu-dedup
Quick Start
You can load and experiment with this model using the Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "FlameF0X/TinyMoE-100m-2x8-retrained"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
input_text = "Wikipedia is a free"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
> Wikipedia is a free, open source of information about the world. It is a great resource for anyone who has been able to read and write in a way that is easy to read.
The first thing that is in the world of the internet is that it is not
- Downloads last month
- 670



