Instructions to use hotdogs/frankenmoe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use hotdogs/frankenmoe with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="hotdogs/frankenmoe", filename="chat/frankenmoe_chat-Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use hotdogs/frankenmoe with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf hotdogs/frankenmoe:Q4_K_M # Run inference directly in the terminal: llama-cli -hf hotdogs/frankenmoe:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf hotdogs/frankenmoe:Q4_K_M # Run inference directly in the terminal: llama-cli -hf hotdogs/frankenmoe:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf hotdogs/frankenmoe:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf hotdogs/frankenmoe:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf hotdogs/frankenmoe:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf hotdogs/frankenmoe:Q4_K_M
Use Docker
docker model run hf.co/hotdogs/frankenmoe:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use hotdogs/frankenmoe with Ollama:
ollama run hf.co/hotdogs/frankenmoe:Q4_K_M
- Unsloth Studio new
How to use hotdogs/frankenmoe with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hotdogs/frankenmoe to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for hotdogs/frankenmoe to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for hotdogs/frankenmoe to start chatting
- Docker Model Runner
How to use hotdogs/frankenmoe with Docker Model Runner:
docker model run hf.co/hotdogs/frankenmoe:Q4_K_M
- Lemonade
How to use hotdogs/frankenmoe with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hotdogs/frankenmoe:Q4_K_M
Run and chat with the model
lemonade run user.frankenmoe-Q4_K_M
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)π§ͺ FrankenMoE β Proof of Concept (NOT production)
This is a technical experiment, not a useful model.
β οΈ Important Warning
This repository documents a proof-of-concept MoE pipeline. The model quality is NOT good β it produces incoherent / random outputs because:
- The router uses (no training)
- Experts were fine-tuned with only ~5K samples each
- Base model is only Qwen2.5-1.5B-Instruct
Do NOT use this model for anything serious. It exists purely to demonstrate that the FrankenMoE pipeline can be built end-to-end.
What We Actually Built
A working MoE pipeline from dense LoRA experts β GGUF:
Qwen2.5-1.5B-Instruct (base)
βββ Expert 0: Coding (LoRA fine-tuned)
βββ Expert 1: Math (LoRA fine-tuned)
βββ Shared Expert: Base model
Key Technical Discoveries
| Discovery | Detail |
|---|---|
| mergekit 0.1.4 bug | param incompatible with transformers >= 4.40 β must patch |
| QwenMoE requirements | Exactly 1 shared expert + 2^n routed experts (2, 4, 8) |
| Tied embeddings fix | Qwen2.5 uses tied embeddings β must clone β before GGUF conversion, set |
| LoRA must be merged | Adapters must be before MoE assembly |
Repository Structure
π¦ frankenmoe_moe_v2-F16.gguf β MoE GGUF (fixed, has output.weight)
π moe_full/ β Full safetensors model
π coding/ math/ chat/ β Individual dense experts (LoRA + GGUF)
π FrankenMoE_Academic_Paper.pdf β Research paper
π simple_router.py β Keyword-based router (functional alternative)
Quick Test
wget https://huggingface.co/hotdogs/frankenmoe/resolve/main/frankenmoe_moe_v2-F16.gguf
llama-cli -m frankenmoe_moe_v2-F16.gguf -p "Write a Python function"
# Output: Random/incoherent β this is expected! See warning above.
Future: Real Model
The pipeline will be re-run with:
- Larger base model (Qwen2.5-7B/14B)
- Trained router (classification loss)
- More training data per domain
- 4 experts for proper 2^n routing
Stay tuned β the real model is coming.
Built by UKA πΉπ | May 2026
- Downloads last month
- 241
4-bit
16-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="hotdogs/frankenmoe", filename="", )