fuse-1 Lite — Coding-Enhanced Mixture-of-Experts (5.72B)
A 5.72B parameter Mixture-of-Experts model that fuses LiquidAI's LFM2.5-2.6B host with 960 coding experts extracted from Qwen3.6-35B-A3B. Designed for efficient coding assistance, agentic workflows, and on-device inference.
Overview
fuse-1 Lite is a novel fusion model that combines the speed and efficiency of a small language model (LFM2.5-2.6B, 2.70B params) with the coding expertise of a large MoE model (Qwen3.6-35B-A3B). Rather than distilling knowledge or fine-tuning from scratch, fuse-1 Lite transplants actual expert weights from the donor model and trains a lightweight router to selectively activate them only when coding-related tokens are encountered.
Full fine-tuning (expensive, risks catastrophic forgetting)
fuse-1 Lite takes a different approach: surgical expert transplantation with learned routing. The 960 coding-specialized experts from Qwen3.6-35B-A3B are extracted, normalized, and integrated as residual augmentations to LFM2.5's decoder layers. A per-layer router learns which experts to activate for each token, and a learned scale factor controls how much each layer's experts contribute.
Phase 2 — Assembly ($0.50, L4): Load LFM2.5-2.6B, wrap decoder layers with Fuse3AugmentedLayer, load extracted expert weights. Verify base model output coherence.
Phase 3 — Router Training ($0.60, L4): Train router + expert_scale on coding and general examples. Router learns to activate experts only for coding-related tokens.
Stability Mechanisms
Std normalization: Expert outputs are rescaled to match host layer activation std (ratio clamped to 2.0)
Scale clamping: Expert scale clamped to max=0.1 during forward pass
SwiGLU clamping: Expert intermediate activations clamped to [-10, 10]
Frozen host + experts: Only 2.0M parameters are trainable (router weights + per-layer scale)
Usage
Installation
pip install transformers torch
Quick Start
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
34model_id ="Akahsizrr/fuse-1-Lite"56tokenizer = AutoTokenizer.from_pretrained(model_id)7model = AutoModelForCausalLM.from_pretrained(8 model_id,9 torch_dtype=torch.bfloat16,10 device_map="auto",11 trust_remote_code=True,12)1314messages =[{"role":"user","content":"Write a Python function to check if a number is prime."}]15text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)16inputs = tokenizer(text, return_tensors="pt").to(model.device)1718with torch.no_grad():19 outputs = model.generate(20**inputs,21 max_new_tokens=1024,22 do_sample=True,23 temperature=0.1,24 top_k=50,25 repetition_penalty=1.1,26 pad_token_id=tokenizer.pad_token_id,27)2829response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)30print(response)
1# The model includes a coding toggle — disable experts for pure LFM2 inference2model.set_coding_enabled(False)34# Re-enable for coding tasks5model.set_coding_enabled(True)
vLLM — High-Throughput Serving
fuse-1 Lite is supported in vLLM via a plugin that extends vLLM's native LFM2
implementation with expert augmentation layers.
1# Install the plugin2pip install git+https://huggingface.co/Akahsizrr/fuse-1-Lite-vLLM
34# Serve with vLLM5vllm serve Akahsizrr/fuse-1-Lite \6 --mamba-cache-mode align \7 --max-model-len 4096
python
1from vllm import LLM
23llm = LLM(4 model="Akahsizrr/fuse-1-Lite",5 mamba_cache_mode="align",6 max_model_len=4096,7)8output = llm.generate("Write a Python function to check if a number is prime.")
The plugin registers Fuse3ForCausalLM with vLLM's ModelRegistry via the
vllm.general_plugins entry point. It reuses vLLM's native LFM2 attention
and short-conv layers, adding the expert MoE block after each augmented
layer's FFN.
MLX (Apple Silicon)
fuse-1 Lite is available in MLX format for Apple Silicon (M1+).
1from mlx_lm import load, generate
23model, tokenizer = load("Akahsizrr/fuse-1-Lite-MLX", trust_remote_code=True)45prompt = tokenizer.apply_chat_template(6[{"role":"user","content":"Write a Python function to check if a number is prime."}],7 tokenize=False, add_generation_prompt=True,8)910response = generate(model, tokenizer, prompt=prompt, max_tokens=512)11print(response)
bash
1# CLI2mlx_lm.generate --model Akahsizrr/fuse-1-Lite-MLX --trust-remote-code --prompt "Write a Python fizzbuzz"
The MLX model file (fuse3_mlx.py) extends MLX's native LFM2 implementation
with the same expert MoE augmentation. It uses model_file in config.json
with trust_remote_code=True for loading.
GGUF / llama.cpp
fuse-1 Lite is available in GGUF format for llama.cpp.
Note: The GGUF uses the custom fuse3 architecture. Stock llama.cpp
cannot load it — you need a llama.cpp fork with Fuse3 support. The GGUF
repo includes the C++ graph builder (src/models/fuse3.cpp), Python
converter (conversion/fuse3.py), and integration guide (INTEGRATION.md).
bash
1# Build llama.cpp with Fuse3 support (see INTEGRATION.md in the GGUF repo)2./llama-cli -m fuse-1-Lite-f16.gguf \3 -p "Write a Python function to check if a number is prime."\4 -n 512 --temp 0.1
The C++ implementation reuses LFM2's attention and short-conv graph builders,
adding the expert MoE block (router → top-k → SwiGLU experts → scale → add)
after each augmented layer's dense FFN.
Transformers (Universal)
The recommended way to run fuse-1 Lite on any platform:
Prompt: "Write a Python function to check if a string is a palindrome."
Output (excerpt):
python
1defis_palindrome(s:str)->bool:2"""
3 Return True if *s* reads the same forwards and backwards,
4 ignoring case and non-alphanumeric characters.
5 """6 cleaned =''.join(ch.lower()for ch in s if ch.isalnum())7return cleaned == cleaned[::-1]
The model produces complete implementations with docstrings, type hints, complexity analysis, and test cases.
Limitations
Custom architecture: Requires trust_remote_code=True — the model includes custom Fuse3ForCausalLM code
No vLLM support: The custom MoE augmentation is not yet supported by vLLM's optimized inference engine
No GGUF/MLX conversion: The custom architecture cannot be directly converted to GGUF or MLX format
Training data was small: Only 55 examples were used for router training — the router may not generalize perfectly to all coding tasks
Expert compatibility: Qwen3.6 experts operate on LFM2's activation space with std normalization — some expert knowledge may be lost in translation
use_cache=False during training: Augmented layers don't propagate KV cache correctly during training; generation uses the standard cache
bitsandbytes quantization: 4-bit and 8-bit quantization work at runtime via BitsAndBytesConfig — pre-quantized saved versions are not available as separate repos