Instructions to use shibatch/tinymoe2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shibatch/tinymoe2m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shibatch/tinymoe2m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use shibatch/tinymoe2m with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf shibatch/tinymoe2m:Q4_K_M # Run inference directly in the terminal: llama cli -hf shibatch/tinymoe2m:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf shibatch/tinymoe2m:Q4_K_M # Run inference directly in the terminal: llama cli -hf shibatch/tinymoe2m:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf shibatch/tinymoe2m:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf shibatch/tinymoe2m:Q4_K_M
Use Docker
docker model run hf.co/shibatch/tinymoe2m:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use shibatch/tinymoe2m with Ollama:
ollama run hf.co/shibatch/tinymoe2m:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use shibatch/tinymoe2m with Docker Model Runner:
docker model run hf.co/shibatch/tinymoe2m:Q4_K_M
- Lemonade
How to use shibatch/tinymoe2m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull shibatch/tinymoe2m:Q4_K_M
Run and chat with the model
lemonade run user.tinymoe2m-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -13,11 +13,11 @@ tags:
|
|
| 13 |
|
| 14 |
# TinyStories Mixtral 2M Top-2 MoE (tinymoe2m) GGUF & HF Validation Suite (4k Context)
|
| 15 |
|
| 16 |
-
This repository provides an ultra-lightweight Mixtral model variant (a Mixture-of-Experts architecture utilizing the Llama 2 compute topology) scaled down to a
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
It is designed specifically for debugging custom inference engines, and native tensor compilers against MoE-specific runtime features. These include Gating network weight allocation, token distribution/gathering (Scatter/Gather loops), and the weighted addition combining multiple independent expert outputs.
|
| 21 |
|
| 22 |
---
|
| 23 |
|
|
|
|
| 13 |
|
| 14 |
# TinyStories Mixtral 2M Top-2 MoE (tinymoe2m) GGUF & HF Validation Suite (4k Context)
|
| 15 |
|
| 16 |
+
This repository provides an ultra-lightweight Mixtral model variant (a Mixture-of-Experts architecture utilizing the Llama 2 compute topology) scaled down to a 1.95M total parameter footprint and a 1.14M active parameter execution frame. It is trained on the TinyStories dataset and optimized as a precise validation asset.
|
| 17 |
|
| 18 |
+
This asset is calibrated to a 4,096 token context window (4k) with an adjusted RoPE base frequency (`rope_theta`) of 15,000.0 to maintain sharp localized attention coordinates.
|
| 19 |
|
| 20 |
+
It is **designed specifically for debugging** custom inference engines, and native tensor compilers against MoE-specific runtime features. These include Gating network weight allocation, token distribution/gathering (Scatter/Gather loops), and the weighted addition combining multiple independent expert outputs.
|
| 21 |
|
| 22 |
---
|
| 23 |
|