CoolFace
Modelpublic

hotdogs/frankenmoe

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
1likes53downloads
Model Card

๐Ÿงช 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:

  1. 1.The router uses (no training)
  2. 2.Experts were fine-tuned with only ~5K samples each
  3. 3.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

DiscoveryDetail
mergekit 0.1.4 bugparam incompatible with transformers >= 4.40 โ€” must patch
QwenMoE requirementsExactly 1 shared expert + 2^n routed experts (2, 4, 8)
Tied embeddings fixQwen2.5 uses tied embeddings โ†’ must clone โ†’ before GGUF conversion, set
LoRA must be mergedAdapters 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

bash
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